xref: /trunk/main/cui/source/customize/eventdlg.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _EVENTDLG_HXX
28 #define _EVENTDLG_HXX
29 
30 #include <vcl/menubtn.hxx>
31 
32 #include <vcl/fixed.hxx>
33 #include <sfx2/evntconf.hxx>
34 #include "macropg.hxx"
35 
36 #include <com/sun/star/frame/XFrame.hpp>
37 
38 class Menu;
39 class SfxMacroInfoItem;
40 class SvxMacroItem;
41 
42 class SvxEventConfigPage : public _SvxMacroTabPage
43 {
44     FixedText							aSaveInText;
45 	ListBox								aSaveInListBox;
46 
47     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace >   m_xAppEvents;
48     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace >   m_xDocumentEvents;
49     ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifiable >         m_xDocumentModifiable;
50 
51 	sal_Bool			bAppConfig;
52 
53 	DECL_LINK(		SelectHdl_Impl, ListBox* );
54 
55 	// Forbidden and not implemented.
56 	SvxEventConfigPage (const SvxEventConfigPage &);
57 	SvxEventConfigPage & operator= (const SvxEventConfigPage &);
58 
59 public:
60                     /// this is only to let callers know that there is a LateInit which *must* be called
61                     struct EarlyInit { };
62 					SvxEventConfigPage( Window *pParent, const SfxItemSet& rSet, EarlyInit );
63 					~SvxEventConfigPage();
64 
65     void            LateInit( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
66 
67 protected:
68 	virtual sal_Bool	FillItemSet( SfxItemSet& );
69 	virtual void	Reset( const SfxItemSet& );
70 	using _SvxMacroTabPage::Reset;
71 
72 private:
73     void    ImplInitDocument();
74 };
75 
76 
77 #endif
78 
79