1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir #ifndef _MODOPT_HXX 28*cdf0e10cSrcweir #define _MODOPT_HXX 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir #include <tools/string.hxx> 31*cdf0e10cSrcweir #include <tools/wintypes.hxx> 32*cdf0e10cSrcweir #include <vcl/field.hxx> 33*cdf0e10cSrcweir #include <svl/svarray.hxx> 34*cdf0e10cSrcweir #include <unotools/configitem.hxx> 35*cdf0e10cSrcweir #include "swdllapi.h" 36*cdf0e10cSrcweir #include "authratr.hxx" 37*cdf0e10cSrcweir #include <SwCapObjType.hxx> 38*cdf0e10cSrcweir #include "tblenum.hxx" 39*cdf0e10cSrcweir #include "itabenum.hxx" 40*cdf0e10cSrcweir #include <tools/globname.hxx> 41*cdf0e10cSrcweir class SwModuleOptions; 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir //----------------------------------------------------------------------------- 44*cdf0e10cSrcweir class InsCaptionOpt; 45*cdf0e10cSrcweir typedef InsCaptionOpt* InsCaptionOptPtr; 46*cdf0e10cSrcweir SV_DECL_PTRARR_SORT_DEL(InsCapOptArr, InsCaptionOptPtr, 0, 5) 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir class InsCaptionOptArr : public InsCapOptArr 49*cdf0e10cSrcweir { 50*cdf0e10cSrcweir friend class SwModuleOptions; 51*cdf0e10cSrcweir friend class SwInsertConfig; 52*cdf0e10cSrcweir protected: 53*cdf0e10cSrcweir InsCaptionOpt* Find(const SwCapObjType eType, const SvGlobalName *pOleId = 0) const; 54*cdf0e10cSrcweir }; 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir /* -----------------------------10.10.00 16:14-------------------------------- 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 59*cdf0e10cSrcweir class SwRevisionConfig : public utl::ConfigItem 60*cdf0e10cSrcweir { 61*cdf0e10cSrcweir friend class SwModuleOptions; 62*cdf0e10cSrcweir 63*cdf0e10cSrcweir AuthorCharAttr aInsertAttr; //Revision/TextDisplay/Insert/Attribute // Redlining: Author-Zeichenattribute 64*cdf0e10cSrcweir //Revision/TextDisplay/Insert/Color 65*cdf0e10cSrcweir AuthorCharAttr aDeletedAttr; //Revision/TextDisplay/Delete/Attribute 66*cdf0e10cSrcweir //Revision/TextDisplay/Delete/Color 67*cdf0e10cSrcweir AuthorCharAttr aFormatAttr; //Revision/TextDisplay/ChangeAttribute/Attribute 68*cdf0e10cSrcweir //Revision/TextDisplay/ChangeAttribute/Color 69*cdf0e10cSrcweir sal_uInt16 nMarkAlign; //Revision/LinesChanged/Mark 70*cdf0e10cSrcweir Color aMarkColor; //Revision/LinesChanged/Color 71*cdf0e10cSrcweir 72*cdf0e10cSrcweir const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames(); 73*cdf0e10cSrcweir public: 74*cdf0e10cSrcweir SwRevisionConfig(); 75*cdf0e10cSrcweir ~SwRevisionConfig(); 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir virtual void Commit(); 78*cdf0e10cSrcweir virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); 79*cdf0e10cSrcweir void Load(); 80*cdf0e10cSrcweir void SetModified(){ConfigItem::SetModified();} 81*cdf0e10cSrcweir }; 82*cdf0e10cSrcweir /* -----------------------------11.10.00 09:00-------------------------------- 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 85*cdf0e10cSrcweir class SwInsertConfig : public utl::ConfigItem 86*cdf0e10cSrcweir { 87*cdf0e10cSrcweir friend class SwModuleOptions; 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir InsCaptionOptArr* pCapOptions; 90*cdf0e10cSrcweir InsCaptionOpt* pOLEMiscOpt; 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir SvGlobalName aGlobalNames[5]; 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir sal_Bool bInsWithCaption; //Insert/Caption/Automatic // Objekte beschriftet einfuegen 95*cdf0e10cSrcweir sal_Bool bCaptionOrderNumberingFirst; //#i61007# caption order starting with numbering 96*cdf0e10cSrcweir // sal_uInt16 nInsTblFlags; //Insert/Table/Header // Flags fuer Tabellen einfuegen 97*cdf0e10cSrcweir //Insert/Table/RepeatHeader 98*cdf0e10cSrcweir //Insert/Table/Split 99*cdf0e10cSrcweir //Insert/Table/Border 100*cdf0e10cSrcweir SwInsertTableOptions aInsTblOpts; 101*cdf0e10cSrcweir sal_Bool bIsWeb; 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames(); 104*cdf0e10cSrcweir public: 105*cdf0e10cSrcweir SwInsertConfig(sal_Bool bWeb); 106*cdf0e10cSrcweir ~SwInsertConfig(); 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir virtual void Commit(); 109*cdf0e10cSrcweir virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); 110*cdf0e10cSrcweir void Load(); 111*cdf0e10cSrcweir void SetModified(){ConfigItem::SetModified();} 112*cdf0e10cSrcweir }; 113*cdf0e10cSrcweir /* -----------------------------11.10.00 09:00-------------------------------- 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 116*cdf0e10cSrcweir class SwTableConfig : public utl::ConfigItem 117*cdf0e10cSrcweir { 118*cdf0e10cSrcweir friend class SwModuleOptions; 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir sal_uInt16 nTblHMove; //int Table/Shift/Row 121*cdf0e10cSrcweir sal_uInt16 nTblVMove; //int Table/Shift/Column 122*cdf0e10cSrcweir sal_uInt16 nTblHInsert; //int Table/Insert/Row 123*cdf0e10cSrcweir sal_uInt16 nTblVInsert; //int Table/Insert/Column 124*cdf0e10cSrcweir TblChgMode eTblChgMode; //int Table/Change/Effect 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir sal_Bool bInsTblFormatNum; // Table/Input/NumberRecognition // Automatische Zahlenerkennung 127*cdf0e10cSrcweir sal_Bool bInsTblChangeNumFormat; // Table/Input/NumberFormatRecognition // Automatische Zahlenformaterkennung 128*cdf0e10cSrcweir sal_Bool bInsTblAlignNum; // Table/Input/Alignment // Zahlen ausrichten 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames(); 131*cdf0e10cSrcweir public: 132*cdf0e10cSrcweir SwTableConfig(sal_Bool bWeb); 133*cdf0e10cSrcweir ~SwTableConfig(); 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir virtual void Commit(); 136*cdf0e10cSrcweir virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); 137*cdf0e10cSrcweir void Load(); 138*cdf0e10cSrcweir void SetModified(){ConfigItem::SetModified();} 139*cdf0e10cSrcweir }; 140*cdf0e10cSrcweir /* -----------------------------18.01.01 16:57-------------------------------- 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 143*cdf0e10cSrcweir class SwMiscConfig : public utl::ConfigItem 144*cdf0e10cSrcweir { 145*cdf0e10cSrcweir friend class SwModuleOptions; 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir String sWordDelimiter; // Statistics/WordNumber/Delimiter 148*cdf0e10cSrcweir sal_Bool bDefaultFontsInCurrDocOnly; // DefaultFont/Document 149*cdf0e10cSrcweir sal_Bool bShowIndexPreview ; // Index/ShowPreview 150*cdf0e10cSrcweir sal_Bool bGrfToGalleryAsLnk; // Misc/GraphicToGalleryAsLink 151*cdf0e10cSrcweir sal_Bool bNumAlignSize; // Numbering/Graphic/KeepRatio 152*cdf0e10cSrcweir sal_Bool bSinglePrintJob; // FormLetter/PrintOutput/SinglePrintJobs 153*cdf0e10cSrcweir sal_Bool bIsNameFromColumn; // FormLetter/FileOutput/FileName/Generation 154*cdf0e10cSrcweir sal_Bool bAskForMailMergeInPrint; // Ask if documents containing fields should be 'mailmerged' 155*cdf0e10cSrcweir sal_Int16 nMailingFormats; // FormLetter/MailingOutput/Formats 156*cdf0e10cSrcweir String sNameFromColumn; // FormLetter/FileOutput/FileName/FromDatabaseField (string!) 157*cdf0e10cSrcweir String sMailingPath; // FormLetter/FileOutput/Path 158*cdf0e10cSrcweir String sMailName; // FormLetter/FileOutput/FileName/FromManualSetting (string!) 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames(); 161*cdf0e10cSrcweir public: 162*cdf0e10cSrcweir SwMiscConfig(); 163*cdf0e10cSrcweir ~SwMiscConfig(); 164*cdf0e10cSrcweir 165*cdf0e10cSrcweir virtual void Commit(); 166*cdf0e10cSrcweir virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames ); 167*cdf0e10cSrcweir void Load(); 168*cdf0e10cSrcweir void SetModified(){ConfigItem::SetModified();} 169*cdf0e10cSrcweir }; 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir /* --------------------------------------------------------------------------- 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir ---------------------------------------------------------------------------*/ 174*cdf0e10cSrcweir class SW_DLLPUBLIC SwModuleOptions 175*cdf0e10cSrcweir { 176*cdf0e10cSrcweir SwRevisionConfig aRevisionConfig; 177*cdf0e10cSrcweir SwInsertConfig aInsertConfig; 178*cdf0e10cSrcweir SwInsertConfig aWebInsertConfig; 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir SwTableConfig aTableConfig; 181*cdf0e10cSrcweir SwTableConfig aWebTableConfig; 182*cdf0e10cSrcweir 183*cdf0e10cSrcweir SwMiscConfig aMiscConfig; 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir //fiscus: don't show tips of text fields - it's not part of the configuration! 186*cdf0e10cSrcweir sal_Bool bHideFieldTips : 1; 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir public: 189*cdf0e10cSrcweir SwModuleOptions(); 190*cdf0e10cSrcweir 191*cdf0e10cSrcweir TblChgMode GetTblMode() const { return aTableConfig.eTblChgMode;} 192*cdf0e10cSrcweir void SetTblMode( TblChgMode eSet ) { aTableConfig.eTblChgMode = eSet; 193*cdf0e10cSrcweir aTableConfig.SetModified();} 194*cdf0e10cSrcweir 195*cdf0e10cSrcweir sal_uInt16 GetTblHMove() const { return aTableConfig.nTblHMove;} 196*cdf0e10cSrcweir void SetTblHMove( sal_uInt16 nSet ) { aTableConfig.nTblHMove = nSet; 197*cdf0e10cSrcweir aTableConfig.SetModified();} 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir sal_uInt16 GetTblVMove() const { return aTableConfig.nTblVMove;} 200*cdf0e10cSrcweir void SetTblVMove( sal_uInt16 nSet ) { aTableConfig.nTblVMove = nSet; 201*cdf0e10cSrcweir aTableConfig.SetModified();} 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir sal_uInt16 GetTblHInsert() const {return aTableConfig.nTblHInsert;} 204*cdf0e10cSrcweir void SetTblHInsert( sal_uInt16 nSet ) { aTableConfig.nTblHInsert = nSet; 205*cdf0e10cSrcweir aTableConfig.SetModified();} 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir sal_uInt16 GetTblVInsert() const {return aTableConfig.nTblVInsert;} 208*cdf0e10cSrcweir void SetTblVInsert( sal_uInt16 nSet ) { aTableConfig.nTblVInsert = nSet; 209*cdf0e10cSrcweir aTableConfig.SetModified();} 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir const AuthorCharAttr &GetInsertAuthorAttr() const { return aRevisionConfig.aInsertAttr; } 212*cdf0e10cSrcweir void SetInsertAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aInsertAttr = rAttr; 213*cdf0e10cSrcweir aRevisionConfig.SetModified();} 214*cdf0e10cSrcweir 215*cdf0e10cSrcweir const AuthorCharAttr &GetDeletedAuthorAttr() const { return aRevisionConfig.aDeletedAttr; } 216*cdf0e10cSrcweir void SetDeletedAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aDeletedAttr = rAttr; 217*cdf0e10cSrcweir aRevisionConfig.SetModified();} 218*cdf0e10cSrcweir 219*cdf0e10cSrcweir const AuthorCharAttr &GetFormatAuthorAttr() const { return aRevisionConfig.aFormatAttr; } 220*cdf0e10cSrcweir void SetFormatAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aFormatAttr = rAttr; 221*cdf0e10cSrcweir aRevisionConfig.SetModified();} 222*cdf0e10cSrcweir 223*cdf0e10cSrcweir sal_uInt16 GetMarkAlignMode() const { return aRevisionConfig.nMarkAlign; } 224*cdf0e10cSrcweir void SetMarkAlignMode(sal_uInt16 nMode) { aRevisionConfig.nMarkAlign = nMode; 225*cdf0e10cSrcweir aRevisionConfig.SetModified();} 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir const Color& GetMarkAlignColor() const { return aRevisionConfig.aMarkColor; } 228*cdf0e10cSrcweir void SetMarkAlignColor(const Color &rColor) { aRevisionConfig.aMarkColor = rColor; 229*cdf0e10cSrcweir aRevisionConfig.SetModified();} 230*cdf0e10cSrcweir 231*cdf0e10cSrcweir sal_Bool IsInsWithCaption(sal_Bool bHTML) const 232*cdf0e10cSrcweir { return bHTML ? sal_False : aInsertConfig.bInsWithCaption; } 233*cdf0e10cSrcweir void SetInsWithCaption( sal_Bool bHTML, sal_Bool b ) 234*cdf0e10cSrcweir { if(!bHTML) 235*cdf0e10cSrcweir aInsertConfig.bInsWithCaption = b; 236*cdf0e10cSrcweir aInsertConfig.SetModified();} 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir sal_Bool IsCaptionOrderNumberingFirst() const { return aInsertConfig.bCaptionOrderNumberingFirst; } 239*cdf0e10cSrcweir void SetCaptionOrderNumberingFirst( sal_Bool bSet ) 240*cdf0e10cSrcweir { 241*cdf0e10cSrcweir if(aInsertConfig.bCaptionOrderNumberingFirst != bSet) 242*cdf0e10cSrcweir { 243*cdf0e10cSrcweir aInsertConfig.bCaptionOrderNumberingFirst = bSet; 244*cdf0e10cSrcweir aInsertConfig.SetModified(); 245*cdf0e10cSrcweir } 246*cdf0e10cSrcweir } 247*cdf0e10cSrcweir 248*cdf0e10cSrcweir sal_Bool IsInsTblFormatNum(sal_Bool bHTML) const 249*cdf0e10cSrcweir { return bHTML ? aWebTableConfig.bInsTblFormatNum : aTableConfig.bInsTblFormatNum; } 250*cdf0e10cSrcweir void SetInsTblFormatNum( sal_Bool bHTML, sal_Bool b ) 251*cdf0e10cSrcweir { bHTML ? (aWebTableConfig.bInsTblFormatNum = b) : (aTableConfig.bInsTblFormatNum = b); 252*cdf0e10cSrcweir bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();} 253*cdf0e10cSrcweir 254*cdf0e10cSrcweir sal_Bool IsInsTblChangeNumFormat(sal_Bool bHTML) const 255*cdf0e10cSrcweir { return bHTML ? aWebTableConfig.bInsTblChangeNumFormat : aTableConfig.bInsTblChangeNumFormat; } 256*cdf0e10cSrcweir void SetInsTblChangeNumFormat( sal_Bool bHTML, sal_Bool b ) 257*cdf0e10cSrcweir { bHTML ? (aWebTableConfig.bInsTblChangeNumFormat = b) : (aTableConfig.bInsTblChangeNumFormat = b); 258*cdf0e10cSrcweir bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();} 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir sal_Bool IsInsTblAlignNum(sal_Bool bHTML) const 262*cdf0e10cSrcweir { return bHTML ? aWebTableConfig.bInsTblAlignNum : aTableConfig.bInsTblAlignNum; } 263*cdf0e10cSrcweir void SetInsTblAlignNum( sal_Bool bHTML, sal_Bool b ) 264*cdf0e10cSrcweir { bHTML ? (aWebTableConfig.bInsTblAlignNum = b) : (aTableConfig.bInsTblAlignNum = b); 265*cdf0e10cSrcweir bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();;} 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir SwInsertTableOptions GetInsTblFlags(sal_Bool bHTML) const 268*cdf0e10cSrcweir { return bHTML ? aWebInsertConfig.aInsTblOpts : aInsertConfig.aInsTblOpts;} 269*cdf0e10cSrcweir void SetInsTblFlags( sal_Bool bHTML, const SwInsertTableOptions& rOpts ) { 270*cdf0e10cSrcweir bHTML ? (aWebInsertConfig.aInsTblOpts = rOpts) : (aInsertConfig.aInsTblOpts = rOpts); 271*cdf0e10cSrcweir bHTML ? aWebInsertConfig.SetModified() : aInsertConfig.SetModified();} 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir const InsCaptionOpt* GetCapOption(sal_Bool bHTML, const SwCapObjType eType, const SvGlobalName *pOleId); 274*cdf0e10cSrcweir sal_Bool SetCapOption(sal_Bool bHTML, const InsCaptionOpt* pOpt); 275*cdf0e10cSrcweir 276*cdf0e10cSrcweir 277*cdf0e10cSrcweir sal_Bool IsGrfToGalleryAsLnk() const { return aMiscConfig.bGrfToGalleryAsLnk; } 278*cdf0e10cSrcweir void SetGrfToGalleryAsLnk( sal_Bool b ) { aMiscConfig.bGrfToGalleryAsLnk = b; 279*cdf0e10cSrcweir aMiscConfig.SetModified();} 280*cdf0e10cSrcweir 281*cdf0e10cSrcweir sal_Int16 GetMailingFormats() const { return aMiscConfig.nMailingFormats;} 282*cdf0e10cSrcweir void SetMailingFormats( sal_Int16 nSet ) { aMiscConfig.nMailingFormats = nSet; 283*cdf0e10cSrcweir aMiscConfig.SetModified();} 284*cdf0e10cSrcweir 285*cdf0e10cSrcweir sal_Bool IsSinglePrintJob() const { return aMiscConfig.bSinglePrintJob; } 286*cdf0e10cSrcweir void SetSinglePrintJob( sal_Bool b ) { aMiscConfig.bSinglePrintJob = b; 287*cdf0e10cSrcweir aMiscConfig.SetModified();} 288*cdf0e10cSrcweir 289*cdf0e10cSrcweir sal_Bool IsNumAlignSize() const { return aMiscConfig.bNumAlignSize; } 290*cdf0e10cSrcweir void SetNumAlignSize( sal_Bool b ) { aMiscConfig.bNumAlignSize = b; 291*cdf0e10cSrcweir aMiscConfig.SetModified();} 292*cdf0e10cSrcweir 293*cdf0e10cSrcweir sal_Bool IsNameFromColumn() const { return aMiscConfig.bIsNameFromColumn; } 294*cdf0e10cSrcweir void SetIsNameFromColumn( sal_Bool bSet ) 295*cdf0e10cSrcweir { 296*cdf0e10cSrcweir aMiscConfig.SetModified(); 297*cdf0e10cSrcweir aMiscConfig.bIsNameFromColumn = bSet; 298*cdf0e10cSrcweir } 299*cdf0e10cSrcweir 300*cdf0e10cSrcweir sal_Bool IsAskForMailMerge() const { return aMiscConfig.bAskForMailMergeInPrint;} 301*cdf0e10cSrcweir void SetAskForMailMerge(sal_Bool bSet) 302*cdf0e10cSrcweir { 303*cdf0e10cSrcweir aMiscConfig.SetModified(); 304*cdf0e10cSrcweir aMiscConfig.bAskForMailMergeInPrint = bSet; 305*cdf0e10cSrcweir } 306*cdf0e10cSrcweir 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir const String& GetNameFromColumn() const { return aMiscConfig.sNameFromColumn; } 309*cdf0e10cSrcweir void SetNameFromColumn( const String& rSet ) { aMiscConfig.sNameFromColumn = rSet; 310*cdf0e10cSrcweir aMiscConfig.SetModified();} 311*cdf0e10cSrcweir 312*cdf0e10cSrcweir String GetMailingPath() const { return aMiscConfig.sMailingPath; } 313*cdf0e10cSrcweir void SetMailingPath(const String& sPath) { aMiscConfig.sMailingPath = sPath; 314*cdf0e10cSrcweir aMiscConfig.SetModified();} 315*cdf0e10cSrcweir 316*cdf0e10cSrcweir String GetMailName() const { return aMiscConfig.sMailName; } 317*cdf0e10cSrcweir void SetMailName(const String& sName){ aMiscConfig.sMailName = sName; 318*cdf0e10cSrcweir aMiscConfig.SetModified();} 319*cdf0e10cSrcweir 320*cdf0e10cSrcweir const String &GetWordDelimiter() const { return aMiscConfig.sWordDelimiter; } 321*cdf0e10cSrcweir void SetWordDelimiter(const String& sDelim) { aMiscConfig.sWordDelimiter = sDelim; 322*cdf0e10cSrcweir aMiscConfig.SetModified();} 323*cdf0e10cSrcweir 324*cdf0e10cSrcweir //convert word delimiter from or to user interface 325*cdf0e10cSrcweir static String ConvertWordDelimiter(const String& rDelim, sal_Bool bFromUI); 326*cdf0e10cSrcweir 327*cdf0e10cSrcweir sal_Bool IsShowIndexPreview() const {return aMiscConfig.bShowIndexPreview;} 328*cdf0e10cSrcweir void SetShowIndexPreview(sal_Bool bSet) 329*cdf0e10cSrcweir {aMiscConfig.bShowIndexPreview = bSet; 330*cdf0e10cSrcweir aMiscConfig.SetModified();} 331*cdf0e10cSrcweir 332*cdf0e10cSrcweir sal_Bool IsDefaultFontInCurrDocOnly() const { return aMiscConfig.bDefaultFontsInCurrDocOnly;} 333*cdf0e10cSrcweir void SetDefaultFontInCurrDocOnly(sal_Bool bSet) 334*cdf0e10cSrcweir { 335*cdf0e10cSrcweir aMiscConfig.bDefaultFontsInCurrDocOnly = bSet; 336*cdf0e10cSrcweir aMiscConfig.SetModified(); 337*cdf0e10cSrcweir } 338*cdf0e10cSrcweir 339*cdf0e10cSrcweir sal_Bool IsHideFieldTips() const {return bHideFieldTips;} 340*cdf0e10cSrcweir void SetHideFieldTips(sal_Bool bSet) {bHideFieldTips = bSet;} 341*cdf0e10cSrcweir }; 342*cdf0e10cSrcweir #endif 343*cdf0e10cSrcweir 344