xref: /aoo4110/main/cui/source/customize/eventdlg.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _EVENTDLG_HXX
24 #define _EVENTDLG_HXX
25 
26 #include <vcl/menubtn.hxx>
27 
28 #include <vcl/fixed.hxx>
29 #include <sfx2/evntconf.hxx>
30 #include "macropg.hxx"
31 
32 #include <com/sun/star/frame/XFrame.hpp>
33 
34 class Menu;
35 class SfxMacroInfoItem;
36 class SvxMacroItem;
37 
38 class SvxEventConfigPage : public _SvxMacroTabPage
39 {
40     FixedText							aSaveInText;
41 	ListBox								aSaveInListBox;
42 
43     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace >   m_xAppEvents;
44     ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace >   m_xDocumentEvents;
45     ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifiable >         m_xDocumentModifiable;
46 
47 	sal_Bool			bAppConfig;
48 
49 	DECL_LINK(		SelectHdl_Impl, ListBox* );
50 
51 	// Forbidden and not implemented.
52 	SvxEventConfigPage (const SvxEventConfigPage &);
53 	SvxEventConfigPage & operator= (const SvxEventConfigPage &);
54 
55 public:
56                     /// this is only to let callers know that there is a LateInit which *must* be called
57                     struct EarlyInit { };
58 					SvxEventConfigPage( Window *pParent, const SfxItemSet& rSet, EarlyInit );
59 					~SvxEventConfigPage();
60 
61     void            LateInit( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
62 
63 protected:
64 	virtual sal_Bool	FillItemSet( SfxItemSet& );
65 	virtual void	Reset( const SfxItemSet& );
66 	using _SvxMacroTabPage::Reset;
67 
68 private:
69     void    ImplInitDocument();
70 };
71 
72 
73 #endif
74 
75