summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/viewfunc.hxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-09-17 12:52:46 +0000
committerRüdiger Timm <rt@openoffice.org>2004-09-17 12:52:46 +0000
commit317c18ab71ffb2d79f4e162fa1fe4e049be9c7b7 (patch)
treed1ceb370107a1edb6a79b3aaed1774d7a0773f6a /sc/source/ui/inc/viewfunc.hxx
parent3be99a7cb2fe9fe75eb351f0271758290f55c87a (diff)
INTEGRATION: CWS os34 (1.19.2); FILE MERGED
2004/08/06 14:42:37 tl 1.19.2.2: RESYNC: (1.19-1.20); FILE MERGED 2004/08/04 13:46:22 tl 1.19.2.1: #i30302# simplified/traditional Chinese conversion
Diffstat (limited to 'sc/source/ui/inc/viewfunc.hxx')
-rw-r--r--sc/source/ui/inc/viewfunc.hxx32
1 files changed, 27 insertions, 5 deletions
diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx
index a291f5806cb8..5d8b36e714f6 100644
--- a/sc/source/ui/inc/viewfunc.hxx
+++ b/sc/source/ui/inc/viewfunc.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewfunc.hxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: obo $ $Date: 2004-06-04 11:45:53 $
+ * last change: $Author: rt $ $Date: 2004-09-17 13:52:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -66,8 +66,11 @@
#include "tabview.hxx"
#endif
-#ifndef _SVSTDARR_SHORTS
+#ifndef _LANG_HXX
+#include <tools/lang.hxx>
+#endif
+#ifndef _SVSTDARR_SHORTS
#define _SVSTDARR_SHORTS
#include <svtools/svstdarr.hxx>
@@ -104,7 +107,25 @@ class SvxHyperlinkItem;
namespace com { namespace sun { namespace star { namespace datatransfer { class XTransferable; } } } }
-// ---------------------------------------------------------------------------
+//==================================================================
+
+struct ChineseTranslationParams
+{
+ Font aTargetFont;
+ sal_Int32 nOptions;
+ LanguageType nSourceLang;
+ LanguageType nTargetLang;
+
+ ChineseTranslationParams( LanguageType nSL, LanguageType nTL, const Font &rTF , sal_Int32 nOpt ) :
+ nSourceLang( nSL ),
+ nTargetLang( nTL ),
+ aTargetFont( rTF ),
+ nOptions( nOpt )
+ {
+ }
+};
+
+//==================================================================
class ScViewFunc : public ScTabView
{
@@ -327,11 +348,12 @@ public:
void SetNote( SCCOL nCol, SCROW nRow, SCTAB nTab, const ScPostIt& rNote );
void DoSpellingChecker( BOOL bRecord = TRUE );
void DoHangulHanjaConversion( BOOL bRecord = TRUE );
+ void DoChineseTranslation( const ChineseTranslationParams &rParams, BOOL bRecord = TRUE );
void DoThesaurus( BOOL bRecord = TRUE );
DECL_LINK( SpellError, void * );
/** Generic implementation of sheet conversion functions. */
- void DoSheetConversion( ScConversionType eConvType, BOOL bRecord );
+ void DoSheetConversion( ScConversionType eConvType, BOOL bRecord, const ChineseTranslationParams *pChParams = NULL);
void SetPrintRanges( BOOL bEntireSheet,
const String* pPrint,