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
commite99603666613dfc038c1220d161c723d2b8a7e88 (patch)
tree51cddcd02df0ba6ce603b8350152c85e4e8fa7e2 /sd/inc/sddll.hxx
parent2270d8f3f5e8a0968185cb61162ad7fc559d03a0 (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 e669a1741..c2c638289 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