summaryrefslogtreecommitdiff
path: root/sd/inc/sddll.hxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2003-09-19 07:14:30 +0000
committerRüdiger Timm <rt@openoffice.org>2003-09-19 07:14:30 +0000
commita574e8ec6b0dd9385c0e8c61648c1c7ed4c691e6 (patch)
tree73f54ba69745cf29d939ba41d64dc820f057de1e /sd/inc/sddll.hxx
parentfcdd59d027537c37cdf875a15399e6cb8a2c68ba (diff)
INTEGRATION: CWS fwkq1 (1.2.186); FILE MERGED
2003/07/14 17:52:00 mba 1.2.186.1: #110843#: get rid of factories
Diffstat (limited to 'sd/inc/sddll.hxx')
-rw-r--r--sd/inc/sddll.hxx40
1 files changed, 7 insertions, 33 deletions
diff --git a/sd/inc/sddll.hxx b/sd/inc/sddll.hxx
index c4e4415f6536..5a1155ff2914 100644
--- a/sd/inc/sddll.hxx
+++ b/sd/inc/sddll.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sddll.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: kz $ $Date: 2001-10-16 16:01:03 $
+ * last change: $Author: rt $ $Date: 2003-09-19 08:14:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,6 +62,10 @@
#ifndef _SDDLL_HXX
#define _SDDLL_HXX
+#ifndef _SDMOD_HXX
+#include "sdmod.hxx"
+#endif
+
#ifndef _SFXMODULE_HXX //autogen
#include <sfx2/module.hxx>
#endif
@@ -120,38 +124,8 @@ public:
|*
\************************************************************************/
-class SdModuleDummy : public SfxModule
-{
-public:
- TYPEINFO();
-
- // SvFactory name convention:
- // 'p' + SfxObjectShell-subclass + 'Factory'
- SotFactory* pSdDrawDocShellFactory;
- SotFactory* pSdGraphicDocShellFactory;
-
- SdModuleDummy(ResMgr* pResMgr, BOOL bDummy,
- SotFactory* pDrawObjFact, SotFactory* pGraphicObjFact)
- : SfxModule(pResMgr, bDummy,
- // Der erste Factory-Pointer muss gueltig sein!
- (SfxObjectFactory*) (pDrawObjFact ? pDrawObjFact : pGraphicObjFact),
- (SfxObjectFactory*) (pDrawObjFact ? pGraphicObjFact : pDrawObjFact),
- 0L),
- pSdDrawDocShellFactory( pDrawObjFact ),
- pSdGraphicDocShellFactory( pGraphicObjFact )
- {}
-
- virtual SfxModule* Load();
-
- static SvGlobalName GetID(USHORT nFileFormat);
- static USHORT HasID(const SvGlobalName& rName);
-};
-
-
-
-
#ifndef _SD_DLL // Das define muss im Draw gesetzt werden
-#define SD_MOD() ( *(SdModuleDummy**) GetAppData(SHL_DRAW) )
+#define SD_MOD() ( *(SdModule**) GetAppData(SHL_DRAW) )
#endif
#endif // _SDDLL_HXX