xref: /trunk/main/sw/inc/modcfg.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
1*1d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1d2dbeb0SAndrew Rist  * distributed with this work for additional information
6*1d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
9*1d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*1d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*1d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
15*1d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
18*1d2dbeb0SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*1d2dbeb0SAndrew Rist  *************************************************************/
21*1d2dbeb0SAndrew Rist 
22*1d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _MODOPT_HXX
24cdf0e10cSrcweir #define _MODOPT_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <tools/string.hxx>
27cdf0e10cSrcweir #include <tools/wintypes.hxx>
28cdf0e10cSrcweir #include <vcl/field.hxx>
29cdf0e10cSrcweir #include <svl/svarray.hxx>
30cdf0e10cSrcweir #include <unotools/configitem.hxx>
31cdf0e10cSrcweir #include "swdllapi.h"
32cdf0e10cSrcweir #include "authratr.hxx"
33cdf0e10cSrcweir #include <SwCapObjType.hxx>
34cdf0e10cSrcweir #include "tblenum.hxx"
35cdf0e10cSrcweir #include "itabenum.hxx"
36cdf0e10cSrcweir #include <tools/globname.hxx>
37cdf0e10cSrcweir class SwModuleOptions;
38cdf0e10cSrcweir 
39cdf0e10cSrcweir //-----------------------------------------------------------------------------
40cdf0e10cSrcweir class InsCaptionOpt;
41cdf0e10cSrcweir typedef InsCaptionOpt* InsCaptionOptPtr;
42cdf0e10cSrcweir SV_DECL_PTRARR_SORT_DEL(InsCapOptArr, InsCaptionOptPtr, 0, 5)
43cdf0e10cSrcweir 
44cdf0e10cSrcweir class InsCaptionOptArr : public InsCapOptArr
45cdf0e10cSrcweir {
46cdf0e10cSrcweir     friend class SwModuleOptions;
47cdf0e10cSrcweir     friend class SwInsertConfig;
48cdf0e10cSrcweir protected:
49cdf0e10cSrcweir     InsCaptionOpt* Find(const SwCapObjType eType, const SvGlobalName *pOleId = 0) const;
50cdf0e10cSrcweir };
51cdf0e10cSrcweir 
52cdf0e10cSrcweir /* -----------------------------10.10.00 16:14--------------------------------
53cdf0e10cSrcweir 
54cdf0e10cSrcweir  ---------------------------------------------------------------------------*/
55cdf0e10cSrcweir class SwRevisionConfig : public utl::ConfigItem
56cdf0e10cSrcweir {
57cdf0e10cSrcweir     friend class SwModuleOptions;
58cdf0e10cSrcweir 
59cdf0e10cSrcweir     AuthorCharAttr  aInsertAttr;    //Revision/TextDisplay/Insert/Attribute  // Redlining: Author-Zeichenattribute
60cdf0e10cSrcweir                                     //Revision/TextDisplay/Insert/Color
61cdf0e10cSrcweir     AuthorCharAttr  aDeletedAttr;   //Revision/TextDisplay/Delete/Attribute
62cdf0e10cSrcweir                                     //Revision/TextDisplay/Delete/Color
63cdf0e10cSrcweir     AuthorCharAttr  aFormatAttr;    //Revision/TextDisplay/ChangeAttribute/Attribute
64cdf0e10cSrcweir                                     //Revision/TextDisplay/ChangeAttribute/Color
65cdf0e10cSrcweir     sal_uInt16          nMarkAlign;     //Revision/LinesChanged/Mark
66cdf0e10cSrcweir     Color           aMarkColor;     //Revision/LinesChanged/Color
67cdf0e10cSrcweir 
68cdf0e10cSrcweir     const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
69cdf0e10cSrcweir     public:
70cdf0e10cSrcweir         SwRevisionConfig();
71cdf0e10cSrcweir         ~SwRevisionConfig();
72cdf0e10cSrcweir 
73cdf0e10cSrcweir     virtual void            Commit();
74cdf0e10cSrcweir     virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
75cdf0e10cSrcweir     void                    Load();
SetModified()76cdf0e10cSrcweir     void                    SetModified(){ConfigItem::SetModified();}
77cdf0e10cSrcweir };
78cdf0e10cSrcweir /* -----------------------------11.10.00 09:00--------------------------------
79cdf0e10cSrcweir 
80cdf0e10cSrcweir  ---------------------------------------------------------------------------*/
81cdf0e10cSrcweir class SwInsertConfig : public utl::ConfigItem
82cdf0e10cSrcweir {
83cdf0e10cSrcweir     friend class SwModuleOptions;
84cdf0e10cSrcweir 
85cdf0e10cSrcweir     InsCaptionOptArr*   pCapOptions;
86cdf0e10cSrcweir     InsCaptionOpt*      pOLEMiscOpt;
87cdf0e10cSrcweir 
88cdf0e10cSrcweir     SvGlobalName        aGlobalNames[5];
89cdf0e10cSrcweir 
90cdf0e10cSrcweir     sal_Bool            bInsWithCaption;       //Insert/Caption/Automatic   // Objekte beschriftet einfuegen
91cdf0e10cSrcweir     sal_Bool            bCaptionOrderNumberingFirst; //#i61007# caption order starting with numbering
92cdf0e10cSrcweir //  sal_uInt16          nInsTblFlags;           //Insert/Table/Header       // Flags fuer Tabellen einfuegen
93cdf0e10cSrcweir                                                 //Insert/Table/RepeatHeader
94cdf0e10cSrcweir                                                 //Insert/Table/Split
95cdf0e10cSrcweir                                                 //Insert/Table/Border
96cdf0e10cSrcweir     SwInsertTableOptions    aInsTblOpts;
97cdf0e10cSrcweir     sal_Bool            bIsWeb;
98cdf0e10cSrcweir 
99cdf0e10cSrcweir     const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
100cdf0e10cSrcweir     public:
101cdf0e10cSrcweir         SwInsertConfig(sal_Bool bWeb);
102cdf0e10cSrcweir         ~SwInsertConfig();
103cdf0e10cSrcweir 
104cdf0e10cSrcweir     virtual void            Commit();
105cdf0e10cSrcweir     virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
106cdf0e10cSrcweir     void                    Load();
SetModified()107cdf0e10cSrcweir     void                    SetModified(){ConfigItem::SetModified();}
108cdf0e10cSrcweir };
109cdf0e10cSrcweir /* -----------------------------11.10.00 09:00--------------------------------
110cdf0e10cSrcweir 
111cdf0e10cSrcweir  ---------------------------------------------------------------------------*/
112cdf0e10cSrcweir class SwTableConfig : public utl::ConfigItem
113cdf0e10cSrcweir {
114cdf0e10cSrcweir     friend class SwModuleOptions;
115cdf0e10cSrcweir 
116cdf0e10cSrcweir     sal_uInt16      nTblHMove;          //int Table/Shift/Row
117cdf0e10cSrcweir     sal_uInt16      nTblVMove;          //int Table/Shift/Column
118cdf0e10cSrcweir     sal_uInt16      nTblHInsert;        //int Table/Insert/Row
119cdf0e10cSrcweir     sal_uInt16      nTblVInsert;        //int Table/Insert/Column
120cdf0e10cSrcweir     TblChgMode  eTblChgMode;        //int Table/Change/Effect
121cdf0e10cSrcweir 
122cdf0e10cSrcweir     sal_Bool    bInsTblFormatNum;       // Table/Input/NumberRecognition        // Automatische Zahlenerkennung
123cdf0e10cSrcweir     sal_Bool    bInsTblChangeNumFormat; // Table/Input/NumberFormatRecognition  // Automatische Zahlenformaterkennung
124cdf0e10cSrcweir     sal_Bool    bInsTblAlignNum;        // Table/Input/Alignment                // Zahlen ausrichten
125cdf0e10cSrcweir 
126cdf0e10cSrcweir     const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
127cdf0e10cSrcweir     public:
128cdf0e10cSrcweir         SwTableConfig(sal_Bool bWeb);
129cdf0e10cSrcweir         ~SwTableConfig();
130cdf0e10cSrcweir 
131cdf0e10cSrcweir     virtual void            Commit();
132cdf0e10cSrcweir     virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
133cdf0e10cSrcweir     void                    Load();
SetModified()134cdf0e10cSrcweir     void                    SetModified(){ConfigItem::SetModified();}
135cdf0e10cSrcweir };
136cdf0e10cSrcweir /* -----------------------------18.01.01 16:57--------------------------------
137cdf0e10cSrcweir 
138cdf0e10cSrcweir  ---------------------------------------------------------------------------*/
139cdf0e10cSrcweir class SwMiscConfig : public utl::ConfigItem
140cdf0e10cSrcweir {
141cdf0e10cSrcweir     friend class SwModuleOptions;
142cdf0e10cSrcweir 
143cdf0e10cSrcweir     String      sWordDelimiter;             // Statistics/WordNumber/Delimiter
144cdf0e10cSrcweir     sal_Bool        bDefaultFontsInCurrDocOnly; // DefaultFont/Document
145cdf0e10cSrcweir     sal_Bool        bShowIndexPreview ;         // Index/ShowPreview
146cdf0e10cSrcweir     sal_Bool        bGrfToGalleryAsLnk;         // Misc/GraphicToGalleryAsLink
147cdf0e10cSrcweir     sal_Bool        bNumAlignSize;              // Numbering/Graphic/KeepRatio
148cdf0e10cSrcweir     sal_Bool        bSinglePrintJob;            // FormLetter/PrintOutput/SinglePrintJobs
149cdf0e10cSrcweir     sal_Bool        bIsNameFromColumn;          // FormLetter/FileOutput/FileName/Generation
150cdf0e10cSrcweir     sal_Bool        bAskForMailMergeInPrint;    // Ask if documents containing fields should be 'mailmerged'
151cdf0e10cSrcweir     sal_Int16   nMailingFormats;            // FormLetter/MailingOutput/Formats
152cdf0e10cSrcweir     String      sNameFromColumn;            // FormLetter/FileOutput/FileName/FromDatabaseField (string!)
153cdf0e10cSrcweir     String      sMailingPath;               // FormLetter/FileOutput/Path
154cdf0e10cSrcweir     String      sMailName;                  // FormLetter/FileOutput/FileName/FromManualSetting (string!)
155cdf0e10cSrcweir 
156cdf0e10cSrcweir     const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
157cdf0e10cSrcweir     public:
158cdf0e10cSrcweir         SwMiscConfig();
159cdf0e10cSrcweir         ~SwMiscConfig();
160cdf0e10cSrcweir 
161cdf0e10cSrcweir     virtual void            Commit();
162cdf0e10cSrcweir     virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
163cdf0e10cSrcweir     void                    Load();
SetModified()164cdf0e10cSrcweir     void                    SetModified(){ConfigItem::SetModified();}
165cdf0e10cSrcweir };
166cdf0e10cSrcweir 
167cdf0e10cSrcweir /* ---------------------------------------------------------------------------
168cdf0e10cSrcweir 
169cdf0e10cSrcweir  ---------------------------------------------------------------------------*/
170cdf0e10cSrcweir class SW_DLLPUBLIC SwModuleOptions
171cdf0e10cSrcweir {
172cdf0e10cSrcweir     SwRevisionConfig                aRevisionConfig;
173cdf0e10cSrcweir     SwInsertConfig                  aInsertConfig;
174cdf0e10cSrcweir     SwInsertConfig                  aWebInsertConfig;
175cdf0e10cSrcweir 
176cdf0e10cSrcweir     SwTableConfig                   aTableConfig;
177cdf0e10cSrcweir     SwTableConfig                   aWebTableConfig;
178cdf0e10cSrcweir 
179cdf0e10cSrcweir     SwMiscConfig                    aMiscConfig;
180cdf0e10cSrcweir 
181cdf0e10cSrcweir     //fiscus: don't show tips of text fields - it's not part of the configuration!
182cdf0e10cSrcweir     sal_Bool        bHideFieldTips : 1;
183cdf0e10cSrcweir 
184cdf0e10cSrcweir public:
185cdf0e10cSrcweir     SwModuleOptions();
186cdf0e10cSrcweir 
GetTblMode() const187cdf0e10cSrcweir     TblChgMode  GetTblMode() const { return aTableConfig.eTblChgMode;}
SetTblMode(TblChgMode eSet)188cdf0e10cSrcweir     void        SetTblMode( TblChgMode  eSet ) { aTableConfig.eTblChgMode = eSet;
189cdf0e10cSrcweir                                                 aTableConfig.SetModified();}
190cdf0e10cSrcweir 
GetTblHMove() const191cdf0e10cSrcweir     sal_uInt16      GetTblHMove() const { return aTableConfig.nTblHMove;}
SetTblHMove(sal_uInt16 nSet)192cdf0e10cSrcweir     void        SetTblHMove( sal_uInt16 nSet ) {    aTableConfig.nTblHMove = nSet;
193cdf0e10cSrcweir                                                 aTableConfig.SetModified();}
194cdf0e10cSrcweir 
GetTblVMove() const195cdf0e10cSrcweir     sal_uInt16      GetTblVMove() const { return aTableConfig.nTblVMove;}
SetTblVMove(sal_uInt16 nSet)196cdf0e10cSrcweir     void        SetTblVMove( sal_uInt16 nSet ) {    aTableConfig.nTblVMove = nSet;
197cdf0e10cSrcweir                                                 aTableConfig.SetModified();}
198cdf0e10cSrcweir 
GetTblHInsert() const199cdf0e10cSrcweir     sal_uInt16      GetTblHInsert() const {return aTableConfig.nTblHInsert;}
SetTblHInsert(sal_uInt16 nSet)200cdf0e10cSrcweir     void        SetTblHInsert( sal_uInt16 nSet ) {  aTableConfig.nTblHInsert = nSet;
201cdf0e10cSrcweir                                                 aTableConfig.SetModified();}
202cdf0e10cSrcweir 
GetTblVInsert() const203cdf0e10cSrcweir     sal_uInt16      GetTblVInsert() const {return aTableConfig.nTblVInsert;}
SetTblVInsert(sal_uInt16 nSet)204cdf0e10cSrcweir     void        SetTblVInsert( sal_uInt16 nSet ) {  aTableConfig.nTblVInsert = nSet;
205cdf0e10cSrcweir                                                 aTableConfig.SetModified();}
206cdf0e10cSrcweir 
GetInsertAuthorAttr() const207cdf0e10cSrcweir     const AuthorCharAttr    &GetInsertAuthorAttr() const { return aRevisionConfig.aInsertAttr; }
SetInsertAuthorAttr(AuthorCharAttr & rAttr)208cdf0e10cSrcweir     void        SetInsertAuthorAttr( AuthorCharAttr &rAttr ) {  aRevisionConfig.aInsertAttr = rAttr;
209cdf0e10cSrcweir                                                                 aRevisionConfig.SetModified();}
210cdf0e10cSrcweir 
GetDeletedAuthorAttr() const211cdf0e10cSrcweir     const AuthorCharAttr    &GetDeletedAuthorAttr() const { return aRevisionConfig.aDeletedAttr; }
SetDeletedAuthorAttr(AuthorCharAttr & rAttr)212cdf0e10cSrcweir     void        SetDeletedAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aDeletedAttr = rAttr;
213cdf0e10cSrcweir                                                                 aRevisionConfig.SetModified();}
214cdf0e10cSrcweir 
GetFormatAuthorAttr() const215cdf0e10cSrcweir     const AuthorCharAttr    &GetFormatAuthorAttr() const { return aRevisionConfig.aFormatAttr; }
SetFormatAuthorAttr(AuthorCharAttr & rAttr)216cdf0e10cSrcweir     void        SetFormatAuthorAttr( AuthorCharAttr &rAttr ) {  aRevisionConfig.aFormatAttr = rAttr;
217cdf0e10cSrcweir                                                                 aRevisionConfig.SetModified();}
218cdf0e10cSrcweir 
GetMarkAlignMode() const219cdf0e10cSrcweir     sal_uInt16          GetMarkAlignMode()  const               { return aRevisionConfig.nMarkAlign; }
SetMarkAlignMode(sal_uInt16 nMode)220cdf0e10cSrcweir     void            SetMarkAlignMode(sal_uInt16 nMode)          { aRevisionConfig.nMarkAlign = nMode;
221cdf0e10cSrcweir                                                               aRevisionConfig.SetModified();}
222cdf0e10cSrcweir 
GetMarkAlignColor() const223cdf0e10cSrcweir     const Color&    GetMarkAlignColor() const               { return aRevisionConfig.aMarkColor; }
SetMarkAlignColor(const Color & rColor)224cdf0e10cSrcweir     void            SetMarkAlignColor(const Color &rColor)  { aRevisionConfig.aMarkColor = rColor;
225cdf0e10cSrcweir                                                               aRevisionConfig.SetModified();}
226cdf0e10cSrcweir 
IsInsWithCaption(sal_Bool bHTML) const227cdf0e10cSrcweir     sal_Bool        IsInsWithCaption(sal_Bool bHTML) const
228cdf0e10cSrcweir                         { return bHTML ? sal_False : aInsertConfig.bInsWithCaption; }
SetInsWithCaption(sal_Bool bHTML,sal_Bool b)229cdf0e10cSrcweir     void        SetInsWithCaption( sal_Bool bHTML, sal_Bool b )
230cdf0e10cSrcweir                     {   if(!bHTML)
231cdf0e10cSrcweir                             aInsertConfig.bInsWithCaption = b;
232cdf0e10cSrcweir                         aInsertConfig.SetModified();}
233cdf0e10cSrcweir 
IsCaptionOrderNumberingFirst() const234cdf0e10cSrcweir     sal_Bool    IsCaptionOrderNumberingFirst() const { return aInsertConfig.bCaptionOrderNumberingFirst; }
SetCaptionOrderNumberingFirst(sal_Bool bSet)235cdf0e10cSrcweir     void        SetCaptionOrderNumberingFirst( sal_Bool bSet )
236cdf0e10cSrcweir                 {
237cdf0e10cSrcweir                     if(aInsertConfig.bCaptionOrderNumberingFirst != bSet)
238cdf0e10cSrcweir                     {
239cdf0e10cSrcweir                         aInsertConfig.bCaptionOrderNumberingFirst = bSet;
240cdf0e10cSrcweir                         aInsertConfig.SetModified();
241cdf0e10cSrcweir                     }
242cdf0e10cSrcweir                 }
243cdf0e10cSrcweir 
IsInsTblFormatNum(sal_Bool bHTML) const244cdf0e10cSrcweir     sal_Bool        IsInsTblFormatNum(sal_Bool bHTML) const
245cdf0e10cSrcweir                     { return bHTML ? aWebTableConfig.bInsTblFormatNum : aTableConfig.bInsTblFormatNum; }
SetInsTblFormatNum(sal_Bool bHTML,sal_Bool b)246cdf0e10cSrcweir     void        SetInsTblFormatNum( sal_Bool bHTML, sal_Bool b )
247cdf0e10cSrcweir                     { bHTML ? (aWebTableConfig.bInsTblFormatNum = b) : (aTableConfig.bInsTblFormatNum = b);
248cdf0e10cSrcweir                       bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();}
249cdf0e10cSrcweir 
IsInsTblChangeNumFormat(sal_Bool bHTML) const250cdf0e10cSrcweir     sal_Bool        IsInsTblChangeNumFormat(sal_Bool bHTML) const
251cdf0e10cSrcweir                     { return bHTML ? aWebTableConfig.bInsTblChangeNumFormat : aTableConfig.bInsTblChangeNumFormat; }
SetInsTblChangeNumFormat(sal_Bool bHTML,sal_Bool b)252cdf0e10cSrcweir     void        SetInsTblChangeNumFormat( sal_Bool bHTML, sal_Bool b )
253cdf0e10cSrcweir                     { bHTML ? (aWebTableConfig.bInsTblChangeNumFormat = b) : (aTableConfig.bInsTblChangeNumFormat = b);
254cdf0e10cSrcweir                       bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();}
255cdf0e10cSrcweir 
256cdf0e10cSrcweir 
IsInsTblAlignNum(sal_Bool bHTML) const257cdf0e10cSrcweir     sal_Bool        IsInsTblAlignNum(sal_Bool bHTML) const
258cdf0e10cSrcweir                     { return bHTML ? aWebTableConfig.bInsTblAlignNum : aTableConfig.bInsTblAlignNum; }
SetInsTblAlignNum(sal_Bool bHTML,sal_Bool b)259cdf0e10cSrcweir     void        SetInsTblAlignNum( sal_Bool bHTML, sal_Bool b )
260cdf0e10cSrcweir                     { bHTML ? (aWebTableConfig.bInsTblAlignNum = b) : (aTableConfig.bInsTblAlignNum = b);
261cdf0e10cSrcweir                         bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();;}
262cdf0e10cSrcweir 
GetInsTblFlags(sal_Bool bHTML) const263cdf0e10cSrcweir     SwInsertTableOptions GetInsTblFlags(sal_Bool bHTML) const
264cdf0e10cSrcweir                     { return bHTML ? aWebInsertConfig.aInsTblOpts : aInsertConfig.aInsTblOpts;}
SetInsTblFlags(sal_Bool bHTML,const SwInsertTableOptions & rOpts)265cdf0e10cSrcweir     void        SetInsTblFlags( sal_Bool bHTML, const SwInsertTableOptions& rOpts ) {
266cdf0e10cSrcweir                     bHTML ? (aWebInsertConfig.aInsTblOpts = rOpts) : (aInsertConfig.aInsTblOpts = rOpts);
267cdf0e10cSrcweir                     bHTML ? aWebInsertConfig.SetModified() : aInsertConfig.SetModified();}
268cdf0e10cSrcweir 
269cdf0e10cSrcweir     const InsCaptionOpt* GetCapOption(sal_Bool bHTML, const SwCapObjType eType, const SvGlobalName *pOleId);
270cdf0e10cSrcweir     sal_Bool        SetCapOption(sal_Bool bHTML, const InsCaptionOpt* pOpt);
271cdf0e10cSrcweir 
272cdf0e10cSrcweir 
IsGrfToGalleryAsLnk() const273cdf0e10cSrcweir     sal_Bool        IsGrfToGalleryAsLnk() const     { return aMiscConfig.bGrfToGalleryAsLnk; }
SetGrfToGalleryAsLnk(sal_Bool b)274cdf0e10cSrcweir     void        SetGrfToGalleryAsLnk( sal_Bool b )  { aMiscConfig.bGrfToGalleryAsLnk = b;
275cdf0e10cSrcweir                                                   aMiscConfig.SetModified();}
276cdf0e10cSrcweir 
GetMailingFormats() const277cdf0e10cSrcweir     sal_Int16   GetMailingFormats() const       { return aMiscConfig.nMailingFormats;}
SetMailingFormats(sal_Int16 nSet)278cdf0e10cSrcweir     void        SetMailingFormats( sal_Int16 nSet ) { aMiscConfig.nMailingFormats = nSet;
279cdf0e10cSrcweir                                                   aMiscConfig.SetModified();}
280cdf0e10cSrcweir 
IsSinglePrintJob() const281cdf0e10cSrcweir     sal_Bool        IsSinglePrintJob() const        { return aMiscConfig.bSinglePrintJob; }
SetSinglePrintJob(sal_Bool b)282cdf0e10cSrcweir     void        SetSinglePrintJob( sal_Bool b )     { aMiscConfig.bSinglePrintJob = b;
283cdf0e10cSrcweir                                                   aMiscConfig.SetModified();}
284cdf0e10cSrcweir 
IsNumAlignSize() const285cdf0e10cSrcweir     sal_Bool        IsNumAlignSize() const          { return aMiscConfig.bNumAlignSize; }
SetNumAlignSize(sal_Bool b)286cdf0e10cSrcweir     void        SetNumAlignSize( sal_Bool b )       { aMiscConfig.bNumAlignSize = b;
287cdf0e10cSrcweir                                                   aMiscConfig.SetModified();}
288cdf0e10cSrcweir 
IsNameFromColumn() const289cdf0e10cSrcweir     sal_Bool        IsNameFromColumn() const        { return aMiscConfig.bIsNameFromColumn; }
SetIsNameFromColumn(sal_Bool bSet)290cdf0e10cSrcweir     void        SetIsNameFromColumn( sal_Bool bSet )
291cdf0e10cSrcweir                         {
292cdf0e10cSrcweir                             aMiscConfig.SetModified();
293cdf0e10cSrcweir                             aMiscConfig.bIsNameFromColumn = bSet;
294cdf0e10cSrcweir                         }
295cdf0e10cSrcweir 
IsAskForMailMerge() const296cdf0e10cSrcweir     sal_Bool        IsAskForMailMerge() const       { return aMiscConfig.bAskForMailMergeInPrint;}
SetAskForMailMerge(sal_Bool bSet)297cdf0e10cSrcweir     void        SetAskForMailMerge(sal_Bool bSet)
298cdf0e10cSrcweir                     {
299cdf0e10cSrcweir                         aMiscConfig.SetModified();
300cdf0e10cSrcweir                         aMiscConfig.bAskForMailMergeInPrint = bSet;
301cdf0e10cSrcweir                     }
302cdf0e10cSrcweir 
303cdf0e10cSrcweir 
GetNameFromColumn() const304cdf0e10cSrcweir     const String&   GetNameFromColumn() const       { return aMiscConfig.sNameFromColumn; }
SetNameFromColumn(const String & rSet)305cdf0e10cSrcweir     void            SetNameFromColumn( const String& rSet )     { aMiscConfig.sNameFromColumn = rSet;
306cdf0e10cSrcweir                                                                 aMiscConfig.SetModified();}
307cdf0e10cSrcweir 
GetMailingPath() const308cdf0e10cSrcweir     String      GetMailingPath() const          { return aMiscConfig.sMailingPath; }
SetMailingPath(const String & sPath)309cdf0e10cSrcweir     void        SetMailingPath(const String& sPath) { aMiscConfig.sMailingPath = sPath;
310cdf0e10cSrcweir                                                       aMiscConfig.SetModified();}
311cdf0e10cSrcweir 
GetMailName() const312cdf0e10cSrcweir     String      GetMailName() const             { return aMiscConfig.sMailName; }
SetMailName(const String & sName)313cdf0e10cSrcweir     void        SetMailName(const String& sName){ aMiscConfig.sMailName = sName;
314cdf0e10cSrcweir                                                   aMiscConfig.SetModified();}
315cdf0e10cSrcweir 
GetWordDelimiter() const316cdf0e10cSrcweir     const String    &GetWordDelimiter() const           { return aMiscConfig.sWordDelimiter; }
SetWordDelimiter(const String & sDelim)317cdf0e10cSrcweir     void        SetWordDelimiter(const String& sDelim)  { aMiscConfig.sWordDelimiter = sDelim;
318cdf0e10cSrcweir                                                           aMiscConfig.SetModified();}
319cdf0e10cSrcweir 
320cdf0e10cSrcweir     //convert word delimiter from or to user interface
321cdf0e10cSrcweir     static String ConvertWordDelimiter(const String& rDelim, sal_Bool bFromUI);
322cdf0e10cSrcweir 
IsShowIndexPreview() const323cdf0e10cSrcweir     sal_Bool        IsShowIndexPreview() const {return  aMiscConfig.bShowIndexPreview;}
SetShowIndexPreview(sal_Bool bSet)324cdf0e10cSrcweir     void        SetShowIndexPreview(sal_Bool bSet)
325cdf0e10cSrcweir                     {aMiscConfig.bShowIndexPreview = bSet;
326cdf0e10cSrcweir                     aMiscConfig.SetModified();}
327cdf0e10cSrcweir 
IsDefaultFontInCurrDocOnly() const328cdf0e10cSrcweir     sal_Bool        IsDefaultFontInCurrDocOnly() const { return aMiscConfig.bDefaultFontsInCurrDocOnly;}
SetDefaultFontInCurrDocOnly(sal_Bool bSet)329cdf0e10cSrcweir     void        SetDefaultFontInCurrDocOnly(sal_Bool bSet)
330cdf0e10cSrcweir                     {
331cdf0e10cSrcweir                         aMiscConfig.bDefaultFontsInCurrDocOnly = bSet;
332cdf0e10cSrcweir                         aMiscConfig.SetModified();
333cdf0e10cSrcweir                     }
334cdf0e10cSrcweir 
IsHideFieldTips() const335cdf0e10cSrcweir     sal_Bool        IsHideFieldTips() const {return bHideFieldTips;}
SetHideFieldTips(sal_Bool bSet)336cdf0e10cSrcweir     void        SetHideFieldTips(sal_Bool bSet) {bHideFieldTips = bSet;}
337cdf0e10cSrcweir };
338cdf0e10cSrcweir #endif
339