update dev300-m57
[ooovba.git] / binfilter / inc / bf_sd / sdmod.hxx
blob06cbfa252c11a6f5d74cf0b43b4ded534c5020be
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: sdmod.hxx,v $
10 * $Revision: 1.9 $
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 _SDMOD_HXX
32 #define _SDMOD_HXX
35 #ifndef _SDDLL_HXX
36 #define _SD_DLL // fuer SD_MOD()
37 #include "sddll.hxx" // fuer SdModuleDummy
38 #endif
39 #ifndef _SD_GLOB_HXX
40 #include "glob.hxx"
41 #endif
42 #ifndef _PRESENTATION_HXX
43 #include "pres.hxx"
44 #endif
45 #ifndef _SVSTOR_HXX
46 #include <bf_so3/svstor.hxx>
47 #endif
48 #ifndef _SFXLSTNER_HXX
49 #include <bf_svtools/lstner.hxx>
50 #endif
51 #ifndef _COM_SUN_STAR_TEXT_WRITINGMODE_HPP_
52 #include <com/sun/star/text/WritingMode.hpp>
53 #endif
54 class SvFactory;
55 class OutputDevice;
57 namespace binfilter {
59 class SfxErrorHandler;
60 class SvNumberFormatter;
61 class SdOptions;
62 class BasicIDE;
63 class SdAppLinkHdl; //STRIP008 ;
64 class SvxErrorHandler;
65 class EditFieldInfo;
66 class SdDrawDocShell;
67 class SdView;
68 class SdPage;
69 class SdDrawDocument;
70 // ----------------------
71 // - SdOptionStreamMode -
72 // ----------------------
74 enum SdOptionStreamMode
76 SD_OPTION_LOAD = 0,
77 SD_OPTION_STORE = 1
80 /*************************************************************************
82 |* This subclass of <SfxModule> (which is a subclass of <SfxShell>) is
83 |* linked to the DLL. One instance of this class exists while the DLL is
84 |* loaded.
86 |* SdModule is like to be compared with the <SfxApplication>-subclass.
88 |* Remember: Don`t export this class! It uses DLL-internal symbols.
90 \************************************************************************/
92 class SdModule : public SdModuleDummy, public SfxListener
94 protected:
96 SdOptions* pImpressOptions;
97 SdOptions* pDrawOptions;
98 SvStorageRef xOptionStorage;
99 BOOL bAutoSave;
100 SfxErrorHandler* mpErrorHdl;
101 OutputDevice* mpVirtualRefDevice;
103 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
105 public:
107 TYPEINFO();
108 DECL_LINK( CalcFieldValueHdl, EditFieldInfo* );
110 SdModule(SvFactory* pDrawObjFact, SvFactory* pGraphicObjFact);
111 virtual ~SdModule();
113 virtual SfxModule* Load();
114 virtual void Free();
117 SdOptions* GetSdOptions(DocumentType eDocType);
119 OutputDevice* GetVirtualRefDevice (void);
121 OutputDevice* GetRefDevice (SdDrawDocShell& rDocShell);
122 ::com::sun::star::text::WritingMode GetDefaultWritingMode() const;
128 #ifndef SD_MOD
129 #define SD_MOD() ( *(SdModule**) GetAppData(BF_SHL_DRAW) )
130 #endif
132 } //namespace binfilter
133 #endif // _SDMOD_HXX