diff options
author | Niklas Nebel <nn@openoffice.org> | 2000-09-22 06:56:13 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2000-09-22 06:56:13 +0000 |
commit | f870daae838459cdd69dc00c456e27b3c2da0cf6 (patch) | |
tree | 7cff44aaf592c1453078b2ed7e96029e51c14459 /sc/inc/docoptio.hxx | |
parent | 78b78c7a503331872af684d56585a0ba4cddef9d (diff) |
use configuration service
Diffstat (limited to 'sc/inc/docoptio.hxx')
-rw-r--r-- | sc/inc/docoptio.hxx | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/sc/inc/docoptio.hxx b/sc/inc/docoptio.hxx index e200e4f24132..5a3c0349f0d9 100644 --- a/sc/inc/docoptio.hxx +++ b/sc/inc/docoptio.hxx @@ -2,9 +2,9 @@ * * $RCSfile: docoptio.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:44:48 $ + * last change: $Author: nn $ $Date: 2000-09-22 07:55:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -63,14 +63,19 @@ #define SC_DOCOPTIO_HXX -#ifndef _SFXCFGITEM_HXX //autogen -#include <sfx2/cfgitem.hxx> +#ifndef _UTL_CONFIGITEM_HXX_ +#include <unotools/configitem.hxx> #endif #ifndef _SFXPOOLITEM_HXX //autogen #include <svtools/poolitem.hxx> #endif +#ifndef SC_VIEWOPTI_HXX +#include "viewopti.hxx" //! move ScLinkConfigItem to separate header! +#endif + + class ScDocOptions { @@ -224,21 +229,24 @@ private: }; //================================================================== -// CfgItem fuer Doc-Optionen +// Config Item containing document options //================================================================== -class ScDocCfg : public ScDocOptions, - public SfxConfigItem +class ScDocCfg : public ScDocOptions { + ScLinkConfigItem aCalcItem; + ScLinkConfigItem aLayoutItem; + + DECL_LINK( CalcCommitHdl, void* ); + DECL_LINK( LayoutCommitHdl, void* ); + + com::sun::star::uno::Sequence<rtl::OUString> GetCalcPropertyNames(); + com::sun::star::uno::Sequence<rtl::OUString> GetLayoutPropertyNames(); + public: ScDocCfg(); - virtual String GetName() const; - -protected: - virtual int Load (SvStream& rStream); - virtual BOOL Store (SvStream& rStream); - virtual void UseDefault (); + void SetOptions( const ScDocOptions& rNew ); }; |