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: schmod.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 ************************************************************************/
34 #ifndef _SFXLSTNER_HXX
35 #include <bf_svtools/lstner.hxx>
38 #include "schdll0.hxx" // fuer SchModuleDummy
47 class SvxErrorHandler
;
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
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
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
;
82 SchModule(SvFactory
* pObjFact
);
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
);
112 #define SCH_MOD1() ( *(SchModule**) GetAppData(BF_SHL_SCH) )
115 } //namespace binfilter
116 #endif // _SCHMOD_HXX