merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_sch / schmod.hxx
blob84fd2dd55561d8259928b002df573caf51c97861
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: schmod.hxx,v $
10 * $Revision: 1.7 $
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 _SCHMOD_HXX
32 #define _SCHMOD_HXX
34 #ifndef _SFXLSTNER_HXX
35 #include <bf_svtools/lstner.hxx>
36 #endif
38 #include "schdll0.hxx" // fuer SchModuleDummy
39 #include "schdll.hxx"
40 #include "objfac.hxx"
42 #include "glob.hxx"
43 #include "schopt.hxx"
44 class SvFactory;
45 namespace binfilter {
47 class SvxErrorHandler;
48 class E3dObjFactory;
49 class SchTransferable;
51 /*************************************************************************
53 |* This subclass of <SfxModule> (which is a subclass of <SfxShell>) is
54 |* linked to the DLL. One instance of this class exists while the DLL is
55 |* loaded.
57 |* SdModule is like to be compared with the <SfxApplication>-subclass.
59 |* Remember: Don`t export this class! It uses DLL-internal symbols.
61 \************************************************************************/
63 class SchModule : public SchModuleDummy, public SfxListener
65 protected:
66 XOutdevItemPool* pXOutDevPool;
68 SchDragServer* pDragData;
69 SchDragServer* pClipboardData;
70 // new clipborad format
71 SchTransferable* mpTransferDragDrop;
72 SchTransferable* mpTransferClipboard;
73 SchTransferable* mpTransferSelectionClipbd;
75 SchObjFactory* pSchObjFactory;
76 E3dObjFactory* pE3dFactory;
77 SchOptions* pChartOptions;
79 public:
80 TYPEINFO();
82 SchModule(SvFactory* pObjFact);
83 virtual ~SchModule();
85 SchDragServer *GetDragData() { return pDragData; }
86 void SetDragData(SchDragServer* pData) { pDragData = pData; }
88 SchDragServer *GetClipboardData() { return pClipboardData; }
89 void SetClipboardData(SchDragServer* pData) { pClipboardData = pData; }
91 // new clipboard format
92 SchTransferable* GetDragTransferable() { return mpTransferDragDrop; }
93 void SetDragTransferable( SchTransferable* pTrans ) { mpTransferDragDrop = pTrans; }
95 SchTransferable* GetClipboardTransferable() { return mpTransferClipboard; }
96 void SetClipboardTransferable( SchTransferable* pTrans) { mpTransferClipboard = pTrans; }
98 SchTransferable* GetSelectionClipboardTransferable() { return mpTransferSelectionClipbd; }
99 void SetSelectionClipboardTransferable( SchTransferable* pTrans) { mpTransferSelectionClipbd = pTrans; }
101 SchOptions* GetSchOptions();
103 // virtual methods for options dialog (impl. see appopt.cxx)
105 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
111 #ifndef SCH_MOD1
112 #define SCH_MOD1() ( *(SchModule**) GetAppData(BF_SHL_SCH) )
113 #endif
115 } //namespace binfilter
116 #endif // _SCHMOD_HXX