diff options
author | Tzvetelina Tzeneva <tzvetelina@gmail.com> | 2011-12-22 17:27:32 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2011-12-22 17:53:53 +0100 |
commit | 062eaeffe7cb986255063bb9b0a5f3fb3fc8e34c (patch) | |
tree | 0f065352d000a11131203cf6832354bde597ff50 /sw/inc/modcfg.hxx | |
parent | 61329db01af7fd7c5915a4d81896d52fda7168db (diff) |
sw: Improved document comparison based on RSIDs.
Diffstat (limited to 'sw/inc/modcfg.hxx')
-rw-r--r-- | sw/inc/modcfg.hxx | 46 |
1 files changed, 43 insertions, 3 deletions
diff --git a/sw/inc/modcfg.hxx b/sw/inc/modcfg.hxx index 14a3b2ac2f7e..b1fb71325b07 100644 --- a/sw/inc/modcfg.hxx +++ b/sw/inc/modcfg.hxx @@ -39,6 +39,7 @@ #include "tblenum.hxx" #include "itabenum.hxx" #include <tools/globname.hxx> +#include <editeng/svxenum.hxx> class SwModuleOptions; class InsCaptionOpt; @@ -77,6 +78,26 @@ class SwRevisionConfig : public utl::ConfigItem void SetModified(){ConfigItem::SetModified();} }; +class SwCompareConfig : public utl::ConfigItem +{ + friend class SwModuleOptions; + + sal_uInt16 eCmpMode; //Compare/CompareDocuments; + sal_Bool bUseRsid; //Compare/Settings/Use RSID + sal_Bool bIgnorePieces; //Compare/Settings/Ignore pieces of length + sal_uInt16 nPieceLen; //Compare/Settings/Ignore pieces of length + + const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames(); + public: + SwCompareConfig(); + ~SwCompareConfig(); + + virtual void Commit(); + virtual void Notify( const ::com::sun::star::uno::Sequence< rtl::OUString >& ){ }; + void Load(); + void SetModified() {ConfigItem::SetModified(); } +}; + class SwInsertConfig : public utl::ConfigItem { friend class SwModuleOptions; @@ -167,6 +188,8 @@ class SW_DLLPUBLIC SwModuleOptions SwMiscConfig aMiscConfig; + SwCompareConfig aCompareConfig; + //fiscus: don't show tips of text fields - it's not part of the configuration! sal_Bool bHideFieldTips : 1; @@ -309,20 +332,37 @@ public: //convert word delimiter from or to user interface static String ConvertWordDelimiter(const String& rDelim, sal_Bool bFromUI); - sal_Bool IsShowIndexPreview() const {return aMiscConfig.bShowIndexPreview;} + sal_Bool IsShowIndexPreview() const {return aMiscConfig.bShowIndexPreview;} void SetShowIndexPreview(sal_Bool bSet) {aMiscConfig.bShowIndexPreview = bSet; aMiscConfig.SetModified();} - sal_Bool IsDefaultFontInCurrDocOnly() const { return aMiscConfig.bDefaultFontsInCurrDocOnly;} + sal_Bool IsDefaultFontInCurrDocOnly() const { return aMiscConfig.bDefaultFontsInCurrDocOnly;} void SetDefaultFontInCurrDocOnly(sal_Bool bSet) { aMiscConfig.bDefaultFontsInCurrDocOnly = bSet; aMiscConfig.SetModified(); } - sal_Bool IsHideFieldTips() const {return bHideFieldTips;} + sal_Bool IsHideFieldTips() const {return bHideFieldTips;} void SetHideFieldTips(sal_Bool bSet) {bHideFieldTips = bSet;} + + SvxCompareMode GetCompareMode() const { return (SvxCompareMode)aCompareConfig.eCmpMode; } + void SetCompareMode( SvxCompareMode eMode ) { aCompareConfig.eCmpMode = eMode; + aCompareConfig.SetModified(); } + + sal_Bool IsUseRsid() const { return aCompareConfig.bUseRsid; } + void SetUseRsid( sal_Bool b ) { aCompareConfig.bUseRsid = b; + aCompareConfig.SetModified(); } + + sal_Bool IsIgnorePieces() const { return aCompareConfig.bIgnorePieces; } + void SetIgnorePieces( sal_Bool b ) { aCompareConfig.bIgnorePieces = b; + aCompareConfig.SetModified(); } + + sal_uInt16 GetPieceLen() const { return aCompareConfig.nPieceLen; } + void SetPieceLen( sal_uInt16 nLen ) { aCompareConfig.nPieceLen = nLen; + aCompareConfig.SetModified(); } + }; #endif |