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: sdmod.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 ************************************************************************/
36 #define _SD_DLL // fuer SD_MOD()
37 #include "sddll.hxx" // fuer SdModuleDummy
42 #ifndef _PRESENTATION_HXX
46 #include <bf_so3/svstor.hxx>
48 #ifndef _SFXLSTNER_HXX
49 #include <bf_svtools/lstner.hxx>
51 #ifndef _COM_SUN_STAR_TEXT_WRITINGMODE_HPP_
52 #include <com/sun/star/text/WritingMode.hpp>
59 class SfxErrorHandler
;
60 class SvNumberFormatter
;
63 class SdAppLinkHdl
; //STRIP008 ;
64 class SvxErrorHandler
;
70 // ----------------------
71 // - SdOptionStreamMode -
72 // ----------------------
74 enum SdOptionStreamMode
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
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
96 SdOptions
* pImpressOptions
;
97 SdOptions
* pDrawOptions
;
98 SvStorageRef xOptionStorage
;
100 SfxErrorHandler
* mpErrorHdl
;
101 OutputDevice
* mpVirtualRefDevice
;
103 virtual void Notify( SfxBroadcaster
& rBC
, const SfxHint
& rHint
);
108 DECL_LINK( CalcFieldValueHdl
, EditFieldInfo
* );
110 SdModule(SvFactory
* pDrawObjFact
, SvFactory
* pGraphicObjFact
);
113 virtual SfxModule
* Load();
117 SdOptions
* GetSdOptions(DocumentType eDocType
);
119 OutputDevice
* GetVirtualRefDevice (void);
121 OutputDevice
* GetRefDevice (SdDrawDocShell
& rDocShell
);
122 ::com::sun::star::text::WritingMode
GetDefaultWritingMode() const;
129 #define SD_MOD() ( *(SdModule**) GetAppData(BF_SHL_DRAW) )
132 } //namespace binfilter