merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_starmath / smdll.hxx
blob511dca8456282aa4c305c115c9c1a702279bee07
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: smdll.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
30 #ifndef SMDLL_HXX
31 #define SMDLL_HXX
33 #define SMDLL 1
35 #ifndef _SMDLL0_HXX
36 #include <bf_starmath/smdll0.hxx>
37 #endif
38 #ifndef _TOOLS_RESID_HXX //autogen
39 #include <tools/resid.hxx>
40 #endif
41 #ifndef _SFXDEFS_HXX
42 #include <bf_sfx2/sfxdefs.hxx>
43 #endif
44 namespace binfilter {
46 class SmData;
47 class SfxMedium;
48 class SfxFilter;
50 class SmDLL
52 static BOOL bInitialized;
53 public:
54 SmDLL();
55 ~SmDLL();
57 static void Init();
58 static void LibInit();
59 static void Exit();
60 static void LibExit();
62 static ULONG DetectFilter( SfxMedium& rMedium, const SfxFilter **ppFilter,
63 SfxFilterFlags nMust, SfxFilterFlags nDont );
66 #ifdef SMDLL
67 class SmResId : public ResId
69 public:
70 SmResId(USHORT nId) :
71 ResId(nId, *SM_MOD()->GetResMgr())
75 #endif
77 } //namespace binfilter
78 #endif