1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SD_HEADERFOOTER_DIALOG_HXX
20 #define _SD_HEADERFOOTER_DIALOG_HXX
22 #include <vcl/tabdlg.hxx>
23 #include <vcl/button.hxx>
24 #include <vcl/tabctrl.hxx>
25 #include <vcl/tabpage.hxx>
27 #include "headerfooterdlg.hrc"
36 class HeaderFooterTabPage
;
38 class HeaderFooterDialog
: public TabDialog
41 DECL_LINK( ActivatePageHdl
, TabControl
* );
42 DECL_LINK( DeactivatePageHdl
, void * );
46 HeaderFooterTabPage
* mpSlideTabPage
;
47 HeaderFooterTabPage
* mpNotesHandoutsTabPage
;
49 HeaderFooterSettings maSlideSettings
;
50 HeaderFooterSettings maNotesHandoutSettings
;
52 SdDrawDocument
* mpDoc
;
53 SdPage
* mpCurrentPage
;
54 ViewShell
* mpViewShell
;
56 void apply( bool bToAll
, bool bForceSlides
);
57 void change( SdUndoGroup
* pUndoGroup
, SdPage
* pPage
, const HeaderFooterSettings
& rNewSettings
);
60 HeaderFooterDialog( ViewShell
* pViewShell
, ::Window
* pParent
, SdDrawDocument
* pDoc
, SdPage
* pCurrentPage
);
61 ~HeaderFooterDialog();
63 void ApplyToAll( TabPage
* pPage
);
64 void Apply( TabPage
* pPage
);
65 void Cancel( TabPage
* pPage
);
67 virtual short Execute();
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */