diff options
author | Oliver Specht <os@openoffice.org> | 2001-02-13 08:52:11 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-02-13 08:52:11 +0000 |
commit | 3a72d9620319574798857c94ff2d4b2160ebbfd8 (patch) | |
tree | 0ed7d0230251447f0208a65fdbcad4798e02fb0d /sw/source/ui/inc/usrpref.hxx | |
parent | 98ed3cc9baa4de0ba503b0708542f7b2af8a50ec (diff) |
#83813# Web background added
Diffstat (limited to 'sw/source/ui/inc/usrpref.hxx')
-rw-r--r-- | sw/source/ui/inc/usrpref.hxx | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/sw/source/ui/inc/usrpref.hxx b/sw/source/ui/inc/usrpref.hxx index 77676ac0558b..8f22099e2ed1 100644 --- a/sw/source/ui/inc/usrpref.hxx +++ b/sw/source/ui/inc/usrpref.hxx @@ -2,9 +2,9 @@ * * $RCSfile: usrpref.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: os $ $Date: 2001-01-24 16:07:14 $ + * last change: $Author: os $ $Date: 2001-02-13 09:52:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -71,6 +71,10 @@ #endif #include "viewopt.hxx" +#ifndef _VCL_FLDUNIT_HXX +#include <vcl/fldunit.hxx> +#endif + /* -----------------------------28.09.00 09:45-------------------------------- ---------------------------------------------------------------------------*/ @@ -146,17 +150,36 @@ class SwCursorConfig : public utl::ConfigItem /* -----------------------------28.09.00 09:45-------------------------------- ---------------------------------------------------------------------------*/ +class SwWebColorConfig : public utl::ConfigItem +{ + SwMasterUsrPref& rParent; + com::sun::star::uno::Sequence<rtl::OUString> aPropNames; + + public: + SwWebColorConfig(SwMasterUsrPref& rParent); + ~SwWebColorConfig(); + + virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames); + virtual void Commit(); + void Load(); + void SetModified(){ConfigItem::SetModified();} +}; +/* -----------------------------28.09.00 09:45-------------------------------- + + ---------------------------------------------------------------------------*/ class SwMasterUsrPref : public SwViewOption { friend class SwContentViewConfig; friend class SwLayoutViewConfig; friend class SwGridConfig; friend class SwCursorConfig; + friend class SwWebColorConfig; SwContentViewConfig aContentConfig; SwLayoutViewConfig aLayoutConfig; SwGridConfig aGridConfig; SwCursorConfig aCursorConfig; + SwWebColorConfig* pWebColorConfig; sal_Int32 nFldUpdateFlags; //udpate of fields and charts sal_Bool bFldUpdateInCurrDoc; @@ -168,6 +191,7 @@ class SwMasterUsrPref : public SwViewOption public: SwMasterUsrPref(BOOL bWeb); + ~SwMasterUsrPref(); void SetUsrPref(const SwViewOption &rCopy); @@ -177,6 +201,8 @@ public: aLayoutConfig.Commit(); aGridConfig.Commit(); aCursorConfig.Commit(); + if(pWebColorConfig) + pWebColorConfig->Commit(); } void SetModified() { @@ -184,6 +210,8 @@ public: aLayoutConfig.SetModified(); aGridConfig.SetModified(); aCursorConfig.SetModified(); + if(pWebColorConfig) + pWebColorConfig->SetModified(); } void SetUpdateLinkMode(sal_Int32 nSet) {nLinkUpdateMode = nSet; SetModified();} @@ -234,6 +262,7 @@ public: sal_Int32 GetDefTab() const { return nDefTab;} void SetDefTab( sal_Int32 nSet ) { nDefTab = nSet; SetModified();} + }; #endif |