summaryrefslogtreecommitdiff
path: root/sw/inc/modcfg.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/modcfg.hxx')
-rw-r--r--sw/inc/modcfg.hxx226
1 files changed, 113 insertions, 113 deletions
diff --git a/sw/inc/modcfg.hxx b/sw/inc/modcfg.hxx
index 6018065b23a4..3c2218d44616 100644
--- a/sw/inc/modcfg.hxx
+++ b/sw/inc/modcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,24 +61,24 @@ class SwRevisionConfig : public utl::ConfigItem
{
friend class SwModuleOptions;
- AuthorCharAttr aInsertAttr; //Revision/TextDisplay/Insert/Attribute // Redlining: Author-Zeichenattribute
+ AuthorCharAttr aInsertAttr; //Revision/TextDisplay/Insert/Attribute // Redlining: Author-Zeichenattribute
//Revision/TextDisplay/Insert/Color
- AuthorCharAttr aDeletedAttr; //Revision/TextDisplay/Delete/Attribute
+ AuthorCharAttr aDeletedAttr; //Revision/TextDisplay/Delete/Attribute
//Revision/TextDisplay/Delete/Color
- AuthorCharAttr aFormatAttr; //Revision/TextDisplay/ChangeAttribute/Attribute
+ AuthorCharAttr aFormatAttr; //Revision/TextDisplay/ChangeAttribute/Attribute
//Revision/TextDisplay/ChangeAttribute/Color
- USHORT nMarkAlign; //Revision/LinesChanged/Mark
- Color aMarkColor; //Revision/LinesChanged/Color
+ USHORT nMarkAlign; //Revision/LinesChanged/Mark
+ Color aMarkColor; //Revision/LinesChanged/Color
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
public:
SwRevisionConfig();
~SwRevisionConfig();
- virtual void Commit();
+ virtual void Commit();
virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
- void Load();
- void SetModified(){ConfigItem::SetModified();}
+ void Load();
+ void SetModified(){ConfigItem::SetModified();}
};
/* -----------------------------11.10.00 09:00--------------------------------
@@ -87,29 +87,29 @@ class SwInsertConfig : public utl::ConfigItem
{
friend class SwModuleOptions;
- InsCaptionOptArr* pCapOptions;
- InsCaptionOpt* pOLEMiscOpt;
+ InsCaptionOptArr* pCapOptions;
+ InsCaptionOpt* pOLEMiscOpt;
- SvGlobalName aGlobalNames[5];
+ SvGlobalName aGlobalNames[5];
- sal_Bool bInsWithCaption; //Insert/Caption/Automatic // Objekte beschriftet einfuegen
+ sal_Bool bInsWithCaption; //Insert/Caption/Automatic // Objekte beschriftet einfuegen
sal_Bool bCaptionOrderNumberingFirst; //#i61007# caption order starting with numbering
-// sal_uInt16 nInsTblFlags; //Insert/Table/Header // Flags fuer Tabellen einfuegen
+// sal_uInt16 nInsTblFlags; //Insert/Table/Header // Flags fuer Tabellen einfuegen
//Insert/Table/RepeatHeader
//Insert/Table/Split
//Insert/Table/Border
- SwInsertTableOptions aInsTblOpts;
- sal_Bool bIsWeb;
+ SwInsertTableOptions aInsTblOpts;
+ sal_Bool bIsWeb;
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
public:
SwInsertConfig(sal_Bool bWeb);
~SwInsertConfig();
- virtual void Commit();
+ virtual void Commit();
virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
- void Load();
- void SetModified(){ConfigItem::SetModified();}
+ void Load();
+ void SetModified(){ConfigItem::SetModified();}
};
/* -----------------------------11.10.00 09:00--------------------------------
@@ -118,25 +118,25 @@ class SwTableConfig : public utl::ConfigItem
{
friend class SwModuleOptions;
- USHORT nTblHMove; //int Table/Shift/Row
- USHORT nTblVMove; //int Table/Shift/Column
- USHORT nTblHInsert; //int Table/Insert/Row
- USHORT nTblVInsert; //int Table/Insert/Column
- TblChgMode eTblChgMode; //int Table/Change/Effect
+ USHORT nTblHMove; //int Table/Shift/Row
+ USHORT nTblVMove; //int Table/Shift/Column
+ USHORT nTblHInsert; //int Table/Insert/Row
+ USHORT nTblVInsert; //int Table/Insert/Column
+ TblChgMode eTblChgMode; //int Table/Change/Effect
- sal_Bool bInsTblFormatNum; // Table/Input/NumberRecognition // Automatische Zahlenerkennung
- sal_Bool bInsTblChangeNumFormat; // Table/Input/NumberFormatRecognition // Automatische Zahlenformaterkennung
- sal_Bool bInsTblAlignNum; // Table/Input/Alignment // Zahlen ausrichten
+ sal_Bool bInsTblFormatNum; // Table/Input/NumberRecognition // Automatische Zahlenerkennung
+ sal_Bool bInsTblChangeNumFormat; // Table/Input/NumberFormatRecognition // Automatische Zahlenformaterkennung
+ sal_Bool bInsTblAlignNum; // Table/Input/Alignment // Zahlen ausrichten
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
public:
SwTableConfig(sal_Bool bWeb);
~SwTableConfig();
- virtual void Commit();
+ virtual void Commit();
virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
- void Load();
- void SetModified(){ConfigItem::SetModified();}
+ void Load();
+ void SetModified(){ConfigItem::SetModified();}
};
/* -----------------------------18.01.01 16:57--------------------------------
@@ -145,28 +145,28 @@ class SwMiscConfig : public utl::ConfigItem
{
friend class SwModuleOptions;
- String sWordDelimiter; // Statistics/WordNumber/Delimiter
- BOOL bDefaultFontsInCurrDocOnly; // DefaultFont/Document
- BOOL bShowIndexPreview ; // Index/ShowPreview
- BOOL bGrfToGalleryAsLnk; // Misc/GraphicToGalleryAsLink
- BOOL bNumAlignSize; // Numbering/Graphic/KeepRatio
- BOOL bSinglePrintJob; // FormLetter/PrintOutput/SinglePrintJobs
- BOOL bIsNameFromColumn; // FormLetter/FileOutput/FileName/Generation
+ String sWordDelimiter; // Statistics/WordNumber/Delimiter
+ BOOL bDefaultFontsInCurrDocOnly; // DefaultFont/Document
+ BOOL bShowIndexPreview ; // Index/ShowPreview
+ BOOL bGrfToGalleryAsLnk; // Misc/GraphicToGalleryAsLink
+ BOOL bNumAlignSize; // Numbering/Graphic/KeepRatio
+ BOOL bSinglePrintJob; // FormLetter/PrintOutput/SinglePrintJobs
+ BOOL bIsNameFromColumn; // FormLetter/FileOutput/FileName/Generation
BOOL bAskForMailMergeInPrint; // Ask if documents containing fields should be 'mailmerged'
- sal_Int16 nMailingFormats; // FormLetter/MailingOutput/Formats
- String sNameFromColumn; // FormLetter/FileOutput/FileName/FromDatabaseField (string!)
- String sMailingPath; // FormLetter/FileOutput/Path
- String sMailName; // FormLetter/FileOutput/FileName/FromManualSetting (string!)
+ sal_Int16 nMailingFormats; // FormLetter/MailingOutput/Formats
+ String sNameFromColumn; // FormLetter/FileOutput/FileName/FromDatabaseField (string!)
+ String sMailingPath; // FormLetter/FileOutput/Path
+ String sMailName; // FormLetter/FileOutput/FileName/FromManualSetting (string!)
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
public:
SwMiscConfig();
~SwMiscConfig();
- virtual void Commit();
+ virtual void Commit();
virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
- void Load();
- void SetModified(){ConfigItem::SetModified();}
+ void Load();
+ void SetModified(){ConfigItem::SetModified();}
};
/* ---------------------------------------------------------------------------
@@ -174,171 +174,171 @@ class SwMiscConfig : public utl::ConfigItem
---------------------------------------------------------------------------*/
class SW_DLLPUBLIC SwModuleOptions
{
- SwRevisionConfig aRevisionConfig;
- SwInsertConfig aInsertConfig;
- SwInsertConfig aWebInsertConfig;
+ SwRevisionConfig aRevisionConfig;
+ SwInsertConfig aInsertConfig;
+ SwInsertConfig aWebInsertConfig;
- SwTableConfig aTableConfig;
- SwTableConfig aWebTableConfig;
+ SwTableConfig aTableConfig;
+ SwTableConfig aWebTableConfig;
- SwMiscConfig aMiscConfig;
+ SwMiscConfig aMiscConfig;
//fiscus: don't show tips of text fields - it's not part of the configuration!
- BOOL bHideFieldTips : 1;
+ BOOL bHideFieldTips : 1;
public:
SwModuleOptions();
- TblChgMode GetTblMode() const { return aTableConfig.eTblChgMode;}
- void SetTblMode( TblChgMode eSet ) { aTableConfig.eTblChgMode = eSet;
+ TblChgMode GetTblMode() const { return aTableConfig.eTblChgMode;}
+ void SetTblMode( TblChgMode eSet ) { aTableConfig.eTblChgMode = eSet;
aTableConfig.SetModified();}
- USHORT GetTblHMove() const { return aTableConfig.nTblHMove;}
- void SetTblHMove( USHORT nSet ) { aTableConfig.nTblHMove = nSet;
+ USHORT GetTblHMove() const { return aTableConfig.nTblHMove;}
+ void SetTblHMove( USHORT nSet ) { aTableConfig.nTblHMove = nSet;
aTableConfig.SetModified();}
- USHORT GetTblVMove() const { return aTableConfig.nTblVMove;}
- void SetTblVMove( USHORT nSet ) { aTableConfig.nTblVMove = nSet;
+ USHORT GetTblVMove() const { return aTableConfig.nTblVMove;}
+ void SetTblVMove( USHORT nSet ) { aTableConfig.nTblVMove = nSet;
aTableConfig.SetModified();}
- USHORT GetTblHInsert() const {return aTableConfig.nTblHInsert;}
- void SetTblHInsert( USHORT nSet ) { aTableConfig.nTblHInsert = nSet;
+ USHORT GetTblHInsert() const {return aTableConfig.nTblHInsert;}
+ void SetTblHInsert( USHORT nSet ) { aTableConfig.nTblHInsert = nSet;
aTableConfig.SetModified();}
- USHORT GetTblVInsert() const {return aTableConfig.nTblVInsert;}
- void SetTblVInsert( USHORT nSet ) { aTableConfig.nTblVInsert = nSet;
+ USHORT GetTblVInsert() const {return aTableConfig.nTblVInsert;}
+ void SetTblVInsert( USHORT nSet ) { aTableConfig.nTblVInsert = nSet;
aTableConfig.SetModified();}
- const AuthorCharAttr &GetInsertAuthorAttr() const { return aRevisionConfig.aInsertAttr; }
- void SetInsertAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aInsertAttr = rAttr;
+ const AuthorCharAttr &GetInsertAuthorAttr() const { return aRevisionConfig.aInsertAttr; }
+ void SetInsertAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aInsertAttr = rAttr;
aRevisionConfig.SetModified();}
- const AuthorCharAttr &GetDeletedAuthorAttr() const { return aRevisionConfig.aDeletedAttr; }
- void SetDeletedAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aDeletedAttr = rAttr;
+ const AuthorCharAttr &GetDeletedAuthorAttr() const { return aRevisionConfig.aDeletedAttr; }
+ void SetDeletedAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aDeletedAttr = rAttr;
aRevisionConfig.SetModified();}
- const AuthorCharAttr &GetFormatAuthorAttr() const { return aRevisionConfig.aFormatAttr; }
- void SetFormatAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aFormatAttr = rAttr;
+ const AuthorCharAttr &GetFormatAuthorAttr() const { return aRevisionConfig.aFormatAttr; }
+ void SetFormatAuthorAttr( AuthorCharAttr &rAttr ) { aRevisionConfig.aFormatAttr = rAttr;
aRevisionConfig.SetModified();}
- USHORT GetMarkAlignMode() const { return aRevisionConfig.nMarkAlign; }
- void SetMarkAlignMode(USHORT nMode) { aRevisionConfig.nMarkAlign = nMode;
+ USHORT GetMarkAlignMode() const { return aRevisionConfig.nMarkAlign; }
+ void SetMarkAlignMode(USHORT nMode) { aRevisionConfig.nMarkAlign = nMode;
aRevisionConfig.SetModified();}
- const Color& GetMarkAlignColor() const { return aRevisionConfig.aMarkColor; }
- void SetMarkAlignColor(const Color &rColor) { aRevisionConfig.aMarkColor = rColor;
+ const Color& GetMarkAlignColor() const { return aRevisionConfig.aMarkColor; }
+ void SetMarkAlignColor(const Color &rColor) { aRevisionConfig.aMarkColor = rColor;
aRevisionConfig.SetModified();}
- BOOL IsInsWithCaption(BOOL bHTML) const
+ BOOL IsInsWithCaption(BOOL bHTML) const
{ return bHTML ? FALSE : aInsertConfig.bInsWithCaption; }
- void SetInsWithCaption( BOOL bHTML, BOOL b )
- { if(!bHTML)
+ void SetInsWithCaption( BOOL bHTML, BOOL b )
+ { if(!bHTML)
aInsertConfig.bInsWithCaption = b;
aInsertConfig.SetModified();}
sal_Bool IsCaptionOrderNumberingFirst() const { return aInsertConfig.bCaptionOrderNumberingFirst; }
- void SetCaptionOrderNumberingFirst( sal_Bool bSet )
- {
+ void SetCaptionOrderNumberingFirst( sal_Bool bSet )
+ {
if(aInsertConfig.bCaptionOrderNumberingFirst != bSet)
{
- aInsertConfig.bCaptionOrderNumberingFirst = bSet;
+ aInsertConfig.bCaptionOrderNumberingFirst = bSet;
aInsertConfig.SetModified();
}
}
- BOOL IsInsTblFormatNum(BOOL bHTML) const
+ BOOL IsInsTblFormatNum(BOOL bHTML) const
{ return bHTML ? aWebTableConfig.bInsTblFormatNum : aTableConfig.bInsTblFormatNum; }
- void SetInsTblFormatNum( BOOL bHTML, BOOL b )
+ void SetInsTblFormatNum( BOOL bHTML, BOOL b )
{ bHTML ? (aWebTableConfig.bInsTblFormatNum = b) : (aTableConfig.bInsTblFormatNum = b);
bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();}
- BOOL IsInsTblChangeNumFormat(BOOL bHTML) const
+ BOOL IsInsTblChangeNumFormat(BOOL bHTML) const
{ return bHTML ? aWebTableConfig.bInsTblChangeNumFormat : aTableConfig.bInsTblChangeNumFormat; }
- void SetInsTblChangeNumFormat( BOOL bHTML, BOOL b )
+ void SetInsTblChangeNumFormat( BOOL bHTML, BOOL b )
{ bHTML ? (aWebTableConfig.bInsTblChangeNumFormat = b) : (aTableConfig.bInsTblChangeNumFormat = b);
bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();}
- BOOL IsInsTblAlignNum(BOOL bHTML) const
+ BOOL IsInsTblAlignNum(BOOL bHTML) const
{ return bHTML ? aWebTableConfig.bInsTblAlignNum : aTableConfig.bInsTblAlignNum; }
- void SetInsTblAlignNum( BOOL bHTML, BOOL b )
+ void SetInsTblAlignNum( BOOL bHTML, BOOL b )
{ bHTML ? (aWebTableConfig.bInsTblAlignNum = b) : (aTableConfig.bInsTblAlignNum = b);
bHTML ? aWebTableConfig.SetModified() : aTableConfig.SetModified();;}
SwInsertTableOptions GetInsTblFlags(BOOL bHTML) const
{ return bHTML ? aWebInsertConfig.aInsTblOpts : aInsertConfig.aInsTblOpts;}
- void SetInsTblFlags( BOOL bHTML, const SwInsertTableOptions& rOpts ) {
+ void SetInsTblFlags( BOOL bHTML, const SwInsertTableOptions& rOpts ) {
bHTML ? (aWebInsertConfig.aInsTblOpts = rOpts) : (aInsertConfig.aInsTblOpts = rOpts);
bHTML ? aWebInsertConfig.SetModified() : aInsertConfig.SetModified();}
const InsCaptionOpt* GetCapOption(BOOL bHTML, const SwCapObjType eType, const SvGlobalName *pOleId);
- BOOL SetCapOption(BOOL bHTML, const InsCaptionOpt* pOpt);
+ BOOL SetCapOption(BOOL bHTML, const InsCaptionOpt* pOpt);
- BOOL IsGrfToGalleryAsLnk() const { return aMiscConfig.bGrfToGalleryAsLnk; }
- void SetGrfToGalleryAsLnk( BOOL b ) { aMiscConfig.bGrfToGalleryAsLnk = b;
+ BOOL IsGrfToGalleryAsLnk() const { return aMiscConfig.bGrfToGalleryAsLnk; }
+ void SetGrfToGalleryAsLnk( BOOL b ) { aMiscConfig.bGrfToGalleryAsLnk = b;
aMiscConfig.SetModified();}
- sal_Int16 GetMailingFormats() const { return aMiscConfig.nMailingFormats;}
- void SetMailingFormats( sal_Int16 nSet ) { aMiscConfig.nMailingFormats = nSet;
+ sal_Int16 GetMailingFormats() const { return aMiscConfig.nMailingFormats;}
+ void SetMailingFormats( sal_Int16 nSet ) { aMiscConfig.nMailingFormats = nSet;
aMiscConfig.SetModified();}
- BOOL IsSinglePrintJob() const { return aMiscConfig.bSinglePrintJob; }
- void SetSinglePrintJob( BOOL b ) { aMiscConfig.bSinglePrintJob = b;
+ BOOL IsSinglePrintJob() const { return aMiscConfig.bSinglePrintJob; }
+ void SetSinglePrintJob( BOOL b ) { aMiscConfig.bSinglePrintJob = b;
aMiscConfig.SetModified();}
- BOOL IsNumAlignSize() const { return aMiscConfig.bNumAlignSize; }
- void SetNumAlignSize( BOOL b ) { aMiscConfig.bNumAlignSize = b;
+ BOOL IsNumAlignSize() const { return aMiscConfig.bNumAlignSize; }
+ void SetNumAlignSize( BOOL b ) { aMiscConfig.bNumAlignSize = b;
aMiscConfig.SetModified();}
- BOOL IsNameFromColumn() const { return aMiscConfig.bIsNameFromColumn; }
- void SetIsNameFromColumn( BOOL bSet )
- {
+ BOOL IsNameFromColumn() const { return aMiscConfig.bIsNameFromColumn; }
+ void SetIsNameFromColumn( BOOL bSet )
+ {
aMiscConfig.SetModified();
aMiscConfig.bIsNameFromColumn = bSet;
}
BOOL IsAskForMailMerge() const { return aMiscConfig.bAskForMailMergeInPrint;}
- void SetAskForMailMerge(BOOL bSet)
- {
+ void SetAskForMailMerge(BOOL bSet)
+ {
aMiscConfig.SetModified();
aMiscConfig.bAskForMailMergeInPrint = bSet;
}
+
-
- const String& GetNameFromColumn() const { return aMiscConfig.sNameFromColumn; }
- void SetNameFromColumn( const String& rSet ) { aMiscConfig.sNameFromColumn = rSet;
+ const String& GetNameFromColumn() const { return aMiscConfig.sNameFromColumn; }
+ void SetNameFromColumn( const String& rSet ) { aMiscConfig.sNameFromColumn = rSet;
aMiscConfig.SetModified();}
- String GetMailingPath() const { return aMiscConfig.sMailingPath; }
- void SetMailingPath(const String& sPath) { aMiscConfig.sMailingPath = sPath;
+ String GetMailingPath() const { return aMiscConfig.sMailingPath; }
+ void SetMailingPath(const String& sPath) { aMiscConfig.sMailingPath = sPath;
aMiscConfig.SetModified();}
- String GetMailName() const { return aMiscConfig.sMailName; }
- void SetMailName(const String& sName){ aMiscConfig.sMailName = sName;
+ String GetMailName() const { return aMiscConfig.sMailName; }
+ void SetMailName(const String& sName){ aMiscConfig.sMailName = sName;
aMiscConfig.SetModified();}
- const String &GetWordDelimiter() const { return aMiscConfig.sWordDelimiter; }
- void SetWordDelimiter(const String& sDelim) { aMiscConfig.sWordDelimiter = sDelim;
+ const String &GetWordDelimiter() const { return aMiscConfig.sWordDelimiter; }
+ void SetWordDelimiter(const String& sDelim) { aMiscConfig.sWordDelimiter = sDelim;
aMiscConfig.SetModified();}
//convert word delimiter from or to user interface
static String ConvertWordDelimiter(const String& rDelim, BOOL bFromUI);
- BOOL IsShowIndexPreview() const {return aMiscConfig.bShowIndexPreview;}
- void SetShowIndexPreview(BOOL bSet)
+ BOOL IsShowIndexPreview() const {return aMiscConfig.bShowIndexPreview;}
+ void SetShowIndexPreview(BOOL bSet)
{aMiscConfig.bShowIndexPreview = bSet;
aMiscConfig.SetModified();}
- BOOL IsDefaultFontInCurrDocOnly() const { return aMiscConfig.bDefaultFontsInCurrDocOnly;}
- void SetDefaultFontInCurrDocOnly(BOOL bSet)
+ BOOL IsDefaultFontInCurrDocOnly() const { return aMiscConfig.bDefaultFontsInCurrDocOnly;}
+ void SetDefaultFontInCurrDocOnly(BOOL bSet)
{
aMiscConfig.bDefaultFontsInCurrDocOnly = bSet;
aMiscConfig.SetModified();
}
- BOOL IsHideFieldTips() const {return bHideFieldTips;}
- void SetHideFieldTips(BOOL bSet) {bHideFieldTips = bSet;}
+ BOOL IsHideFieldTips() const {return bHideFieldTips;}
+ void SetHideFieldTips(BOOL bSet) {bHideFieldTips = bSet;}
};
#endif