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