bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / headerfooterdlg.hxx
blob64165760a9e367e0205f5673bd9f4db4b0c3017a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 INCLUDED_SD_SOURCE_UI_INC_HEADERFOOTERDLG_HXX
20 #define INCLUDED_SD_SOURCE_UI_INC_HEADERFOOTERDLG_HXX
22 #include <vcl/tabdlg.hxx>
23 #include <vcl/button.hxx>
24 #include <vcl/tabctrl.hxx>
25 #include <vcl/tabpage.hxx>
27 #include "sdpage.hxx"
29 class SdUndoGroup;
31 namespace sd
33 class ViewShell;
35 class HeaderFooterTabPage;
37 class HeaderFooterDialog : public TabDialog
39 private:
40 DECL_LINK( ActivatePageHdl, TabControl * );
41 DECL_STATIC_LINK_TYPED( HeaderFooterDialog, DeactivatePageHdl, TabControl *, bool );
43 DECL_LINK( ClickApplyToAllHdl, void * );
44 DECL_LINK( ClickApplyHdl, void * );
45 DECL_LINK( ClickCancelHdl, void * );
47 VclPtr<TabControl> mpTabCtrl;
49 VclPtr<HeaderFooterTabPage> mpSlideTabPage;
50 VclPtr<HeaderFooterTabPage> mpNotesHandoutsTabPage;
52 sal_uInt16 mnSlidesId;
53 sal_uInt16 mnNotesId;
55 VclPtr<PushButton> maPBApplyToAll;
56 VclPtr<PushButton> maPBApply;
57 VclPtr<CancelButton> maPBCancel;
59 HeaderFooterSettings maSlideSettings;
60 HeaderFooterSettings maNotesHandoutSettings;
62 SdDrawDocument* mpDoc;
63 SdPage* mpCurrentPage;
64 ViewShell* mpViewShell;
66 void apply( bool bToAll, bool bForceSlides );
67 void change( SdUndoGroup* pUndoGroup, SdPage* pPage, const HeaderFooterSettings& rNewSettings );
69 public:
70 HeaderFooterDialog( ViewShell* pViewShell, vcl::Window* pParent, SdDrawDocument* pDoc, SdPage* pCurrentPage );
71 virtual ~HeaderFooterDialog();
72 virtual void dispose() SAL_OVERRIDE;
74 void ApplyToAll();
75 void Apply();
76 void Cancel();
78 virtual short Execute() SAL_OVERRIDE;
83 #endif
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */