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/.
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>
24 class SwTitlePageDlg
: public SfxDialogController
29 std::unique_ptr
<const SwFormatPageDesc
> mpPageFormatDesc
;
31 SwPageDesc
* mpTitleDesc
;
32 const SwPageDesc
* mpIndexDesc
;
33 const SwPageDesc
* mpNormalDesc
;
35 std::unique_ptr
<weld::RadioButton
> m_xUseExistingPagesRB
;
36 std::unique_ptr
<weld::SpinButton
> m_xPageCountNF
;
37 std::unique_ptr
<weld::RadioButton
> m_xDocumentStartRB
;
38 std::unique_ptr
<weld::RadioButton
> m_xPageStartRB
;
39 std::unique_ptr
<weld::SpinButton
> m_xPageStartNF
;
40 std::unique_ptr
<weld::CheckButton
> m_xRestartNumberingCB
;
41 std::unique_ptr
<weld::SpinButton
> m_xRestartNumberingNF
;
42 std::unique_ptr
<weld::CheckButton
> m_xSetPageNumberCB
;
43 std::unique_ptr
<weld::SpinButton
> m_xSetPageNumberNF
;
44 std::unique_ptr
<weld::ComboBox
> m_xPagePropertiesLB
;
45 std::unique_ptr
<weld::Button
> m_xPagePropertiesPB
;
46 std::unique_ptr
<weld::Button
> m_xOkPB
;
50 sal_uInt16
GetInsertPosition() const;
52 DECL_LINK(OKHdl
, weld::Button
&, void);
53 DECL_LINK(EditHdl
, weld::Button
&, void);
54 DECL_LINK(RestartNumberingHdl
, weld::ToggleButton
&, void);
55 DECL_LINK(SetPageNumberHdl
, weld::ToggleButton
&, void);
56 DECL_LINK(ValueChangeHdl
, weld::SpinButton
&, void);
57 DECL_LINK(StartPageHdl
, weld::ToggleButton
&, void);
60 SwTitlePageDlg(weld::Window
* pParent
);
61 virtual ~SwTitlePageDlg() override
;
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */