summaryrefslogtreecommitdiff
path: root/include/basic/sbxcore.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/basic/sbxcore.hxx')
-rw-r--r--include/basic/sbxcore.hxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/basic/sbxcore.hxx b/include/basic/sbxcore.hxx
index 6ce2e2c493c1..45cf9361a137 100644
--- a/include/basic/sbxcore.hxx
+++ b/include/basic/sbxcore.hxx
@@ -39,14 +39,6 @@ class SvStream;
virtual sal_uInt16 GetVersion() const SAL_OVERRIDE { return nVer; } \
virtual sal_uInt16 GetSbxId() const SAL_OVERRIDE { return nSbxId; }
-// This version of the macro defines Load/StorePrivateData()-methods
-#define SBX_DECL_PERSIST( nCre, nSbxId, nVer ) \
- virtual bool LoadPrivateData( SvStream&, sal_uInt16 ); \
- virtual bool StorePrivateData( SvStream& ) const; \
- virtual sal_uInt32 GetCreator() const { return nCre; } \
- virtual sal_uInt16 GetVersion() const { return nVer; } \
- virtual sal_uInt16 GetSbxId() const { return nSbxId; }
-
class SbxBase;
class SbxFactory;
class SbxObject;
@@ -62,7 +54,13 @@ protected:
SbxBase( const SbxBase& );
SbxBase& operator=( const SbxBase& );
virtual ~SbxBase();
- SBX_DECL_PERSIST(0,0,0);
+
+ virtual bool LoadPrivateData( SvStream&, sal_uInt16 );
+ virtual bool StorePrivateData( SvStream& ) const;
+ virtual sal_uInt32 GetCreator() const { return 0; }
+ virtual sal_uInt16 GetVersion() const { return 0; }
+ virtual sal_uInt16 GetSbxId() const { return 0; }
+
public:
TYPEINFO();
inline void SetFlags( SbxFlagBits n );