Index: sfx2/source/doc/objcont.cxx =================================================================== RCS file: /cvs/framework/sfx2/source/doc/objcont.cxx,v retrieving revision 1.78 diff -u -p -r1.78 objcont.cxx --- sfx2/source/doc/objcont.cxx 27 Aug 2008 14:42:36 -0000 1.78 +++ sfx2/source/doc/objcont.cxx 12 Sep 2008 03:46:57 -0000 @@ -49,6 +49,7 @@ #include #include #include +#include #include #include #include @@ -171,6 +172,18 @@ SfxObjectShell::CreatePreviewMetaFile_Im "size of first page is 0, overload GetFirstPageSize or set vis-area!" ); pFile->Record( &aDevice ); + + LanguageType eLang; + SvtCTLOptions* pCTLOptions = new SvtCTLOptions; + if ( SvtCTLOptions::NUMERALS_HINDI == pCTLOptions->GetCTLTextNumerals() ) + eLang = LANGUAGE_ARABIC; + else if ( SvtCTLOptions::NUMERALS_ARABIC == pCTLOptions->GetCTLTextNumerals() ) + eLang = LANGUAGE_ENGLISH; + else + eLang = (LanguageType) Application::GetSettings().GetLanguage(); + + aDevice.SetDigitLanguage( eLang ); + ((SfxObjectShell*)this)->DoDraw( &aDevice, Point(0,0), aTmpSize, JobSetup(), nAspect ); pFile->Stop();