Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / uibase / inc / titlepage.hxx
blob9e8c58984652af6562705e0aa7c8c813bb3cd9fa
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/.
8 */
10 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_TITLEPAGE_HXX
11 #define INCLUDED_SW_SOURCE_UIBASE_INC_TITLEPAGE_HXX
13 #include <sfx2/basedlgs.hxx>
15 #include <fmtpdsc.hxx>
17 namespace vcl
19 class Window;
21 class SwWrtShell;
22 class SwPageDesc;
24 class SwTitlePageDlg final : public SfxDialogController
26 private:
27 std::unique_ptr<const SwFormatPageDesc> mpPageFormatDesc;
29 SwPageDesc* mpTitleDesc;
30 const SwPageDesc* mpIndexDesc;
31 const SwPageDesc* mpNormalDesc;
33 std::unique_ptr<weld::RadioButton> m_xUseExistingPagesRB;
34 std::unique_ptr<weld::SpinButton> m_xPageCountNF;
35 std::unique_ptr<weld::RadioButton> m_xDocumentStartRB;
36 std::unique_ptr<weld::RadioButton> m_xPageStartRB;
37 std::unique_ptr<weld::SpinButton> m_xPageStartNF;
38 std::unique_ptr<weld::CheckButton> m_xRestartNumberingCB;
39 std::unique_ptr<weld::SpinButton> m_xRestartNumberingNF;
40 std::unique_ptr<weld::CheckButton> m_xSetPageNumberCB;
41 std::unique_ptr<weld::SpinButton> m_xSetPageNumberNF;
42 std::unique_ptr<weld::ComboBox> m_xPagePropertiesLB;
43 std::unique_ptr<weld::Button> m_xPagePropertiesPB;
44 std::unique_ptr<weld::Button> m_xOkPB;
46 void FillList();
48 sal_uInt16 GetInsertPosition() const;
50 DECL_LINK(OKHdl, weld::Button&, void);
51 DECL_LINK(EditHdl, weld::Button&, void);
52 DECL_LINK(RestartNumberingHdl, weld::Toggleable&, void);
53 DECL_LINK(SetPageNumberHdl, weld::Toggleable&, void);
54 DECL_LINK(ValueChangeHdl, weld::SpinButton&, void);
55 DECL_LINK(StartPageHdl, weld::Toggleable&, void);
57 public:
58 SwTitlePageDlg(weld::Window* pParent);
59 virtual ~SwTitlePageDlg() override;
62 #endif
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */