summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2000-11-16 12:56:58 +0000
committerNiklas Nebel <nn@openoffice.org>2000-11-16 12:56:58 +0000
commit8c55690406da6797cee4f18549805fcd87c3b398 (patch)
tree60635a17afa759303ab81bd7022101f59c21b954
parent0cef03631ec00d23ac697a4eac03a20aacd86ed9 (diff)
no ConfigItem
-rw-r--r--sc/inc/navicfg.hxx18
-rw-r--r--sc/source/core/tool/navicfg.cxx72
2 files changed, 15 insertions, 75 deletions
diff --git a/sc/inc/navicfg.hxx b/sc/inc/navicfg.hxx
index 943e3a91a..7c0358daf 100644
--- a/sc/inc/navicfg.hxx
+++ b/sc/inc/navicfg.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: navicfg.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:44:49 $
+ * last change: $Author: nn $ $Date: 2000-11-16 13:55:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,15 +62,16 @@
#ifndef SC_NAVICFG_HXX
#define SC_NAVICFG_HXX
-#ifndef _SFXCFGITEM_HXX //autogen
-#include <sfx2/cfgitem.hxx>
+#ifndef _SOLAR_H
+#include <tools/solar.h>
#endif
+
//==================================================================
// CfgItem fuer Navigator-Zustand
//==================================================================
-class ScNavipiCfg : public SfxConfigItem
+class ScNavipiCfg
{
private:
USHORT nListMode;
@@ -80,19 +81,12 @@ private:
public:
ScNavipiCfg();
- virtual String GetName() const;
-
void SetListMode(USHORT nNew);
USHORT GetListMode() const { return nListMode; }
void SetDragMode(USHORT nNew);
USHORT GetDragMode() const { return nDragMode; }
void SetRootType(USHORT nNew);
USHORT GetRootType() const { return nRootType; }
-
-protected:
- virtual int Load(SvStream& rStream);
- virtual BOOL Store(SvStream& rStream);
- virtual void UseDefault();
};
diff --git a/sc/source/core/tool/navicfg.cxx b/sc/source/core/tool/navicfg.cxx
index 1bfc28cb1..90678fd94 100644
--- a/sc/source/core/tool/navicfg.cxx
+++ b/sc/source/core/tool/navicfg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: navicfg.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-19 00:16:18 $
+ * last change: $Author: nn $ $Date: 2000-11-16 13:56:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -67,19 +67,16 @@
//------------------------------------------------------------------
-#include <tools/stream.hxx>
-
#include "navicfg.hxx"
-#include "cfgids.hxx"
-#include "scresid.hxx"
-#include "sc.hrc"
-#define SC_NAVICFG_VERSION 0
+//------------------------------------------------------------------
+
+//! #define CFGPATH_NAVIPI "Office.Calc/Navigator"
//------------------------------------------------------------------
ScNavipiCfg::ScNavipiCfg() :
- SfxConfigItem( SCCFG_NAVIPI ),
+//! ConfigItem( OUString::createFromAscii( CFGPATH_NAVIPI ) ),
nListMode(0),
nDragMode(0),
nRootType(0)
@@ -88,54 +85,12 @@ ScNavipiCfg::ScNavipiCfg() :
//------------------------------------------------------------------------
-int __EXPORT ScNavipiCfg::Load( SvStream& rStream )
-{
- SetDefault(FALSE);
-
- USHORT nVer;
- rStream >> nVer;
- if ( nVer != SC_NAVICFG_VERSION )
- return SfxConfigItem::WARNING_VERSION;
-
- rStream >> nListMode;
- rStream >> nDragMode;
- rStream >> nRootType;
-
- return SfxConfigItem::ERR_OK;
-}
-
-//------------------------------------------------------------------------
-
-BOOL __EXPORT ScNavipiCfg::Store( SvStream& rStream)
-{
- rStream << (USHORT) SC_NAVICFG_VERSION;
-
- rStream << nListMode;
- rStream << nDragMode;
- rStream << nRootType;
-
-//? SetDefault( FALSE );
- return SfxConfigItem::ERR_OK;
-}
-
-//------------------------------------------------------------------------
-
-void __EXPORT ScNavipiCfg::UseDefault()
-{
- nListMode = nDragMode = nRootType = 0;
-
- SetDefault( TRUE );
-}
-
-
-//------------------------------------------------------------------------
-
void ScNavipiCfg::SetListMode(USHORT nNew)
{
if ( nListMode != nNew )
{
nListMode = nNew;
- SetDefault(FALSE);
+//! SetModified();
}
}
@@ -144,7 +99,7 @@ void ScNavipiCfg::SetDragMode(USHORT nNew)
if ( nDragMode != nNew )
{
nDragMode = nNew;
- SetDefault(FALSE);
+//! SetModified();
}
}
@@ -153,17 +108,8 @@ void ScNavipiCfg::SetRootType(USHORT nNew)
if ( nRootType != nNew )
{
nRootType = nNew;
- SetDefault(FALSE);
+//! SetModified();
}
}
-//------------------------------------------------------------------------
-
-String __EXPORT ScNavipiCfg::GetName() const
-{
- return String( ScResId( SCSTR_CFG_NAVIPI ) );
-}
-
-
-