sync master with lastest vba changes
[ooovba.git] / sc / inc / scdll.hxx
blob3f2cd509f0d4c8a205f8ad99e8dae9e7d8a81efd
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: scdll.hxx,v $
10 * $Revision: 1.5.32.2 $
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 SC_SCDLL_HXX
32 #define SC_SCDLL_HXX
34 class ResMgr;
35 class SvFactory;
36 class SotFactory;
37 class StatusBar;
38 class SfxMedium;
39 class SfxFilter;
41 #include <sfx2/sfxdefs.hxx>
42 #include <sfx2/module.hxx>
43 #include <sfx2/docfac.hxx>
45 //-------------------------------------------------------------------------
47 class ScDLL
49 /* [Description]
51 This class is a wrapper for a Load-On-Demand-DLL. One instance
52 per SfxApplication will be created for the runtime of
53 SfxApplication-subclass::Main().
55 Remember: Do export this class! It is used by the application.
59 public:
60 // Ctor/Dtor must be linked to the application
61 ScDLL();
62 ~ScDLL();
64 // static-init/exit-code must be linked to the application
65 static void LibInit(); // called from SfxApplication-subclass::Init()
66 static void LibExit(); // called from SfxApplication-subclass::Exit()
67 static void PreExit(); // muss vor LibExit gerufen werden
69 // DLL-init/exit-code must be linked to the DLL only
70 static void Init(); // called directly after loading the DLL
71 static void Exit(); // called directly befor unloading the DLL
73 //UNUSED2008-05 static void FillStatusBar(StatusBar &rBar);
74 static ULONG DetectFilter( SfxMedium& rMedium, const SfxFilter** ppFilter,
75 SfxFilterFlags nMust, SfxFilterFlags nDont );
78 #define SC_DLL() ( *(ScModule**) GetAppData(SHL_CALC) )
80 #endif