Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sch / schdll0.hxx
blob41eae4b646c6a563a4405c7ced3fde0bcb3268b0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: schdll0.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SCHDLL0_HXX
32 #define _SCHDLL0_HXX
34 #include <bf_so3/pseudo.hxx>
36 #ifndef _SFXMODULE_HXX //autogen
37 #include <bf_sfx2/module.hxx>
38 #endif
39 #ifndef _TOOLS_RESMGR_HXX //autogen
40 #include <tools/resmgr.hxx>
41 #endif
43 class SotFactory;
44 class SvFactory;
45 namespace binfilter {
47 /*************************************************************************
49 |* This tricky class keeps pointers to the SvFactories while
50 |* the DLL isn`t loaded. A pointer to the one instance is available
51 |* through SD_MOD() (shared-lib-app-data).
53 \************************************************************************/
55 class SchModuleDummy : public SfxModule
57 public:
58 TYPEINFO();
60 // SvFactory name convention:
61 // 'p' + SfxObjectShell-subclass + 'Factory'
62 SotFactory *pSchChartDocShellFactory; // Namensaufbau zwingend!!
64 SchModuleDummy(ResMgr *pResMgr,
65 BOOL bDummy,
66 SotFactory *pObjFact) :
67 SfxModule(pResMgr, bDummy, (SfxObjectFactory*) pObjFact, NULL),
68 pSchChartDocShellFactory(pObjFact)
72 virtual SfxModule *Load ();
74 static const SvGlobalName GetID(USHORT nFileFormat);
75 static USHORT HasID (const SvGlobalName& rID);
79 #ifndef _SCH_DLL // Das define muss im Draw gesetzt werden
80 #define SCH_MOD() ( *(SchModuleDummy**) GetAppData(BF_SHL_SCH) )
81 #endif
83 } //namespace binfilter
84 #endif