diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2008-06-09 14:34:27 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2008-06-09 14:34:27 +0000 |
commit | 270e1250ba8fedaace4f2a4363e5d1911c426a31 (patch) | |
tree | 38d756de6fdc5107cd2f14e477ea187796ac5f55 /svtools | |
parent | c0dc97221df27a3984ff82dae84785f748285bd5 (diff) |
INTEGRATION: CWS impress141 (1.7.462); FILE MERGED
2008/04/21 09:20:52 cl 1.7.462.3: RESYNC: (1.7-1.8); FILE MERGED
2008/04/15 15:15:45 sj 1.7.462.2: #i67371# added possibility to disable/enable previews when exporting to ppt,excel and or word
2008/04/15 14:51:35 sj 1.7.462.1: #i67371# added possibility to disable/enable previews when exporting to ppt,excel and or word
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/config/fltrcfg.cxx | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/svtools/source/config/fltrcfg.cxx b/svtools/source/config/fltrcfg.cxx index 76fc9ccb2fb8..5aadfb3fa912 100644 --- a/svtools/source/config/fltrcfg.cxx +++ b/svtools/source/config/fltrcfg.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fltrcfg.cxx,v $ - * $Revision: 1.9 $ + * $Revision: 1.10 $ * * This file is part of OpenOffice.org. * @@ -60,6 +60,9 @@ using namespace com::sun::star::uno; #define FILTERCFG_IMPRESS_LOAD 0x4000 #define FILTERCFG_IMPRESS_SAVE 0x8000 #define FILTERCFG_EXCEL_EXECTBL 0x10000 +#define FILTERCFG_ENABLE_PPT_PREVIEW 0x20000 +#define FILTERCFG_ENABLE_EXCEL_PREVIEW 0x40000 +#define FILTERCFG_ENABLE_WORD_PREVIEW 0x80000 static SvtFilterOptions* pOptions=0; @@ -285,7 +288,7 @@ const Sequence<OUString>& SvtFilterOptions::GetPropertyNames() static Sequence<OUString> aNames; if(!aNames.getLength()) { - int nCount = 8; + int nCount = 11; aNames.realloc(nCount); static const char* aPropNames[] = { @@ -296,7 +299,10 @@ const Sequence<OUString>& SvtFilterOptions::GetPropertyNames() "Export/MathToMathType", // 4 "Export/WriterToWinWord", // 5 "Export/ImpressToPowerPoint", // 6 - "Export/CalcToExcel" // 7 + "Export/CalcToExcel", // 7 + "Export/EnablePowerPointPreview", // 8 + "Export/EnableExcelPreview", // 9 + "Export/EnableWordPreview" // 10 }; OUString* pNames = aNames.getArray(); for(int i = 0; i < nCount; i++) @@ -318,6 +324,10 @@ static ULONG lcl_GetFlag(sal_Int32 nProp) case 5: nFlag = FILTERCFG_WRITER_SAVE; break; case 6: nFlag = FILTERCFG_IMPRESS_SAVE; break; case 7: nFlag = FILTERCFG_CALC_SAVE; break; + case 8: nFlag = FILTERCFG_ENABLE_PPT_PREVIEW; break; + case 9: nFlag = FILTERCFG_ENABLE_EXCEL_PREVIEW; break; + case 10: nFlag = FILTERCFG_ENABLE_WORD_PREVIEW; break; + default: DBG_ERROR("illegal value"); } return nFlag; @@ -557,4 +567,23 @@ SvtFilterOptions* SvtFilterOptions::Get() return pOptions; } +// ----------------------------------------------------------------------- + +BOOL SvtFilterOptions::IsEnablePPTPreview() const +{ + return pImp->IsFlag( FILTERCFG_ENABLE_PPT_PREVIEW ); +} + + +BOOL SvtFilterOptions::IsEnableCalcPreview() const +{ + return pImp->IsFlag( FILTERCFG_ENABLE_EXCEL_PREVIEW ); +} + + +BOOL SvtFilterOptions::IsEnableWordPreview() const +{ + return pImp->IsFlag( FILTERCFG_ENABLE_WORD_PREVIEW ); +} + |