xref: /aoo41x/main/sd/source/ui/inc/headerfooterdlg.hxx (revision 67e470da)
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 _SD_HEADERFOOTER_DIALOG_HXX
24 #define _SD_HEADERFOOTER_DIALOG_HXX
25 
26 #include <vcl/tabdlg.hxx>
27 #ifndef _SV_BUTTON_HXX //autogen
28 #include <vcl/button.hxx>
29 #endif
30 #include <vcl/tabctrl.hxx>
31 #include <vcl/tabpage.hxx>
32 
33 #include "headerfooterdlg.hrc"
34 #include "sdpage.hxx"
35 
36 class SfxObjectShell;
37 class SdUndoGroup;
38 
39 namespace sd
40 {
41 class ViewShell;
42 
43 class HeaderFooterTabPage;
44 
45 class HeaderFooterDialog : public TabDialog
46 {
47 private:
48 	DECL_LINK( ActivatePageHdl, TabControl * );
49 	DECL_LINK( DeactivatePageHdl, TabControl * );
50 
51 	TabControl		maTabCtrl;
52 
53 	HeaderFooterTabPage*	mpSlideTabPage;
54 	HeaderFooterTabPage*	mpNotesHandoutsTabPage;
55 
56 	HeaderFooterSettings	maSlideSettings;
57 	HeaderFooterSettings	maNotesHandoutSettings;
58 	bool					mbNotOnTitle;
59 
60 	SdDrawDocument*			mpDoc;
61 	SdPage*					mpCurrentPage;
62 	ViewShell*				mpViewShell;
63 
64 	void apply( bool bToAll, bool bForceSlides );
65 	void change( SdUndoGroup* pUndoGroup, SdPage* pPage, const HeaderFooterSettings& rNewSettings );
66 
67 public:
68 	HeaderFooterDialog( ViewShell* pViewShell, ::Window* pParent, SdDrawDocument* pDoc, SdPage* pCurrentPage );
69 	~HeaderFooterDialog();
70 
71 	void ApplyToAll( TabPage* pPage );
72 	void Apply( TabPage* pPage );
73 	void Cancel( TabPage* pPage );
74 
75 	virtual short Execute();
76 };
77 
78 }
79 
80 #endif
81 
82