diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-09-17 12:55:34 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-09-17 12:55:34 +0000 |
commit | bbc2232511e4f1f9a9644bc747c8cf3f08f18812 (patch) | |
tree | 448a2a9d0d6112de981ad0f3ed4ddd6371f3fb23 /sc | |
parent | 363b5ba12e13b8995bc1017f55ab28373d1ee651 (diff) |
INTEGRATION: CWS os34 (1.24.14); FILE MERGED
2004/08/06 15:11:51 tl 1.24.14.2: RESYNC: (1.24-1.25); FILE MERGED
2004/08/04 13:47:12 tl 1.24.14.1: #i30302# simplified/traditional Chinese conversion
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfun4.cxx | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx index 66befcbd0591..5b7a1fbb8cfa 100644 --- a/sc/source/ui/view/viewfun4.cxx +++ b/sc/source/ui/view/viewfun4.cxx @@ -2,9 +2,9 @@ * * $RCSfile: viewfun4.cxx,v $ * - * $Revision: 1.25 $ + * $Revision: 1.26 $ * - * last change: $Author: obo $ $Date: 2004-06-04 13:41:30 $ + * last change: $Author: rt $ $Date: 2004-09-17 13:55:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -379,7 +379,12 @@ void ScViewFunc::DoHangulHanjaConversion( BOOL bRecord ) DoSheetConversion( SC_CONVERSION_HANGULHANJA, bRecord ); } -void ScViewFunc::DoSheetConversion( ScConversionType eConvType, BOOL bRecord ) +void ScViewFunc::DoChineseTranslation( const ChineseTranslationParams &rParams, BOOL bRecord ) +{ + DoSheetConversion( SC_CONVERSION_CHINESE_TRANSLATION, bRecord, &rParams ); +} + +void ScViewFunc::DoSheetConversion( ScConversionType eConvType, BOOL bRecord, const ChineseTranslationParams *pChParams ) { SCCOL nCol; SCROW nRow; @@ -461,7 +466,21 @@ void ScViewFunc::DoSheetConversion( ScConversionType eConvType, BOOL bRecord ) case SC_CONVERSION_HANGULHANJA: pEngine = new ScTextConversionEngine( pDoc->GetEnginePool(), rViewData, pUndoDoc, pRedoDoc, pEditSel, - nCol, nRow, nTab, bMarked, LANGUAGE_KOREAN ); + nCol, nRow, nTab, bMarked, + LANGUAGE_KOREAN, LANGUAGE_KOREAN, NULL, 0, sal_True ); + break; + case SC_CONVERSION_CHINESE_TRANSLATION: + { + DBG_ASSERT( pChParams, "paramter for Chinese translation missing" ); + if (pChParams) + { + pEngine = new ScTextConversionEngine( + pDoc->GetEnginePool(), rViewData, pUndoDoc, pRedoDoc, pEditSel, + nCol, nRow, nTab, bMarked, + pChParams->nSourceLang, pChParams->nTargetLang, &pChParams->aTargetFont, + pChParams->nOptions, sal_False ); + } + } break; default: DBG_ERRORFILE( "ScViewFunc::DoSheetConversion - unknown conversion type" ); |