1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: schdll0.hxx,v $
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 ************************************************************************/
34 #include <bf_so3/pseudo.hxx>
36 #ifndef _SFXMODULE_HXX //autogen
37 #include <bf_sfx2/module.hxx>
39 #ifndef _TOOLS_RESMGR_HXX //autogen
40 #include <tools/resmgr.hxx>
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
60 // SvFactory name convention:
61 // 'p' + SfxObjectShell-subclass + 'Factory'
62 SotFactory
*pSchChartDocShellFactory
; // Namensaufbau zwingend!!
64 SchModuleDummy(ResMgr
*pResMgr
,
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) )
83 } //namespace binfilter