summaryrefslogtreecommitdiff
path: root/include/sot/object.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-26 12:24:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-26 12:24:58 +0100
commit622e9d9030d436b1f1be4aeb7facb9553a3f63f5 (patch)
tree9dfd9f2b3e7afb02150740ecfa9e3e5942c82640 /include/sot/object.hxx
parent5fb78604c1c3e91beb867c352928af9e1ef57a26 (diff)
Expand uses of SO2_DECL_BASIC_CLASS_DLL macro
Change-Id: I6bee19954e930248058128c9e01cc23b3395bf20
Diffstat (limited to 'include/sot/object.hxx')
-rw-r--r--include/sot/object.hxx23
1 files changed, 9 insertions, 14 deletions
diff --git a/include/sot/object.hxx b/include/sot/object.hxx
index 7360789ff6c3..734ea3e97218 100644
--- a/include/sot/object.hxx
+++ b/include/sot/object.hxx
@@ -25,19 +25,6 @@
#include <tools/ref.hxx>
#include <sot/sotdllapi.h>
-/*************************************************************************
-*************************************************************************/
-
-#define SO2_DECL_BASIC_CLASS_DLL(ClassName,FacName) \
-private: \
- static SotFactory ** GetFactoryAdress() \
- { return &(FacName->p##ClassName##Factory); } \
-public: \
- static void * CreateInstance( SotObject ** = NULL ); \
- static SotFactory * ClassFactory(); \
- virtual const SotFactory * GetSvFactory() const; \
- virtual void * Cast( const SotFactory * );
-
#define SO2_DECL_BASIC_CLASS(ClassName) \
private: \
static SotFactory * pFactory; \
@@ -280,7 +267,15 @@ protected:
virtual bool Close();
public:
SotObject();
- SO2_DECL_BASIC_CLASS_DLL(SotObject,SOTDATA())
+
+private:
+ static SotFactory ** GetFactoryAdress()
+ { return &(SOTDATA()->pSotObjectFactory); }
+public:
+ static void * CreateInstance( SotObject ** = NULL );
+ static SotFactory * ClassFactory();
+ virtual const SotFactory * GetSvFactory() const;
+ virtual void * Cast( const SotFactory * );
// Nur damit die Makros in So3 nicht ganz ausufern
virtual IUnknown * GetInterface( const SvGlobalName & );