summaryrefslogtreecommitdiff
path: root/sc/inc/appoptio.hxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2000-09-22 06:56:13 +0000
committerNiklas Nebel <nn@openoffice.org>2000-09-22 06:56:13 +0000
commit98058bdae26ef8e55cfe67542cf1d1aae3ae43f5 (patch)
tree648dac48c5ad062a1e89065ee5280d2a5908228e /sc/inc/appoptio.hxx
parent4d3193a9b76597a976e255b7433d5f96f4259618 (diff)
use configuration service
Diffstat (limited to 'sc/inc/appoptio.hxx')
-rw-r--r--sc/inc/appoptio.hxx47
1 files changed, 34 insertions, 13 deletions
diff --git a/sc/inc/appoptio.hxx b/sc/inc/appoptio.hxx
index 489b7d38b..6ca4b2ec9 100644
--- a/sc/inc/appoptio.hxx
+++ b/sc/inc/appoptio.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: appoptio.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:44:47 $
+ * 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
@@ -71,14 +71,19 @@
#include <svx/zoomitem.hxx>
#endif
-#ifndef _SFXCFGITEM_HXX //autogen
-#include <sfx2/cfgitem.hxx>
+#ifndef _UTL_CONFIGITEM_HXX_
+#include <unotools/configitem.hxx>
#endif
#ifndef SC_SCGLOB_HXX
#include "global.hxx"
#endif
+#ifndef SC_VIEWOPTI_HXX
+#include "viewopti.hxx" //! move ScLinkConfigItem to separate header!
+#endif
+
+
class ScAppOptions
{
public:
@@ -140,21 +145,37 @@ private:
//==================================================================
-// CfgItem fuer App-Optionen
+// Config Item containing app options
//==================================================================
-class ScAppCfg : public ScAppOptions,
- public SfxConfigItem
+class ScAppCfg : public ScAppOptions
{
+ // spread about 5 config paths
+ //! split ScAppOptions into different classes
+
+ ScLinkConfigItem aLayoutItem;
+ ScLinkConfigItem aInputItem;
+ ScLinkConfigItem aRevisionItem;
+ ScLinkConfigItem aContentItem;
+ ScLinkConfigItem aSortListItem;
+
+ DECL_LINK( LayoutCommitHdl, void* );
+ DECL_LINK( InputCommitHdl, void* );
+ DECL_LINK( RevisionCommitHdl, void* );
+ DECL_LINK( ContentCommitHdl, void* );
+ DECL_LINK( SortListCommitHdl, void* );
+
+ com::sun::star::uno::Sequence<rtl::OUString> GetLayoutPropertyNames();
+ com::sun::star::uno::Sequence<rtl::OUString> GetInputPropertyNames();
+ com::sun::star::uno::Sequence<rtl::OUString> GetRevisionPropertyNames();
+ com::sun::star::uno::Sequence<rtl::OUString> GetContentPropertyNames();
+ com::sun::star::uno::Sequence<rtl::OUString> GetSortListPropertyNames();
+
public:
ScAppCfg();
- virtual String GetName() const;
-
-protected:
- virtual int Load (SvStream& rStream);
- virtual BOOL Store (SvStream& rStream);
- virtual void UseDefault ();
+ void SetOptions( const ScAppOptions& rNew );
+ void OptionsChanged(); // after direct access to ScAppOptions base class
};