LibreOffice Module sw (master) 1
titlepage.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_TITLEPAGE_HXX
11#define INCLUDED_SW_SOURCE_UIBASE_INC_TITLEPAGE_HXX
12
13#include <sfx2/basedlgs.hxx>
14
15#include <fmtpdsc.hxx>
16
17namespace vcl
18{
19class Window;
20}
21class SwWrtShell;
22class SwPageDesc;
23
25{
26private:
27 std::unique_ptr<const SwFormatPageDesc> mpPageFormatDesc;
28
32
33 std::unique_ptr<weld::RadioButton> m_xUseExistingPagesRB;
34 std::unique_ptr<weld::RadioButton> m_xInsertNewPagesRB; // required by LOK JSDialogs
35 std::unique_ptr<weld::SpinButton> m_xPageCountNF;
36 std::unique_ptr<weld::RadioButton> m_xDocumentStartRB;
37 std::unique_ptr<weld::RadioButton> m_xPageStartRB;
38 std::unique_ptr<weld::SpinButton> m_xPageStartNF;
39 std::unique_ptr<weld::CheckButton> m_xRestartNumberingCB;
40 std::unique_ptr<weld::SpinButton> m_xRestartNumberingNF;
41 std::unique_ptr<weld::CheckButton> m_xSetPageNumberCB;
42 std::unique_ptr<weld::SpinButton> m_xSetPageNumberNF;
43 std::unique_ptr<weld::ComboBox> m_xPagePropertiesLB;
44 std::unique_ptr<weld::Button> m_xPagePropertiesPB;
45 std::unique_ptr<weld::Button> m_xOkPB;
46
47 void FillList();
48
49 sal_uInt16 GetInsertPosition() const;
50
51 DECL_LINK(OKHdl, weld::Button&, void);
52 DECL_LINK(EditHdl, weld::Button&, void);
53 DECL_LINK(RestartNumberingHdl, weld::Toggleable&, void);
54 DECL_LINK(SetPageNumberHdl, weld::Toggleable&, void);
55 DECL_LINK(ValueChangeHdl, weld::SpinButton&, void);
56 DECL_LINK(StartPageHdl, weld::Toggleable&, void);
57
58public:
60 virtual ~SwTitlePageDlg() override;
61};
62
63#endif
64
65/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DECL_LINK(OKHdl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > m_xDocumentStartRB
Definition: titlepage.hxx:36
std::unique_ptr< weld::SpinButton > m_xPageStartNF
Definition: titlepage.hxx:38
const SwPageDesc * mpIndexDesc
Definition: titlepage.hxx:30
std::unique_ptr< weld::RadioButton > m_xUseExistingPagesRB
Definition: titlepage.hxx:33
std::unique_ptr< weld::ComboBox > m_xPagePropertiesLB
Definition: titlepage.hxx:43
DECL_LINK(StartPageHdl, weld::Toggleable &, void)
DECL_LINK(RestartNumberingHdl, weld::Toggleable &, void)
virtual ~SwTitlePageDlg() override
Definition: titlepage.cxx:260
SwTitlePageDlg(weld::Window *pParent)
Definition: titlepage.cxx:147
sal_uInt16 GetInsertPosition() const
Definition: titlepage.cxx:139
std::unique_ptr< weld::SpinButton > m_xRestartNumberingNF
Definition: titlepage.hxx:40
std::unique_ptr< weld::CheckButton > m_xSetPageNumberCB
Definition: titlepage.hxx:41
std::unique_ptr< weld::SpinButton > m_xSetPageNumberNF
Definition: titlepage.hxx:42
std::unique_ptr< weld::RadioButton > m_xInsertNewPagesRB
Definition: titlepage.hxx:34
DECL_LINK(EditHdl, weld::Button &, void)
DECL_LINK(ValueChangeHdl, weld::SpinButton &, void)
std::unique_ptr< weld::CheckButton > m_xRestartNumberingCB
Definition: titlepage.hxx:39
std::unique_ptr< const SwFormatPageDesc > mpPageFormatDesc
Definition: titlepage.hxx:27
std::unique_ptr< weld::RadioButton > m_xPageStartRB
Definition: titlepage.hxx:37
DECL_LINK(SetPageNumberHdl, weld::Toggleable &, void)
SwPageDesc * mpTitleDesc
Definition: titlepage.hxx:29
const SwPageDesc * mpNormalDesc
Definition: titlepage.hxx:31
std::unique_ptr< weld::Button > m_xPagePropertiesPB
Definition: titlepage.hxx:44
std::unique_ptr< weld::Button > m_xOkPB
Definition: titlepage.hxx:45
std::unique_ptr< weld::SpinButton > m_xPageCountNF
Definition: titlepage.hxx:35
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97