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:
28
29 std::unique_ptr<const SwFormatPageDesc> mpPageFormatDesc;
30
34
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;
47
48 void FillList();
49
50 sal_uInt16 GetInsertPosition() const;
51
52 DECL_LINK(OKHdl, weld::Button&, void);
53 DECL_LINK(EditHdl, weld::Button&, void);
54 DECL_LINK(RestartNumberingHdl, weld::Toggleable&, void);
55 DECL_LINK(SetPageNumberHdl, weld::Toggleable&, void);
56 DECL_LINK(ValueChangeHdl, weld::SpinButton&, void);
57 DECL_LINK(StartPageHdl, weld::Toggleable&, void);
58
59public:
61 virtual ~SwTitlePageDlg() override;
62};
63
64#endif
65
66/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DECL_LINK(OKHdl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > m_xDocumentStartRB
Definition: titlepage.hxx:37
std::unique_ptr< weld::SpinButton > m_xPageStartNF
Definition: titlepage.hxx:39
const SwPageDesc * mpIndexDesc
Definition: titlepage.hxx:32
std::unique_ptr< weld::RadioButton > m_xUseExistingPagesRB
Definition: titlepage.hxx:35
std::unique_ptr< weld::ComboBox > m_xPagePropertiesLB
Definition: titlepage.hxx:44
DECL_LINK(StartPageHdl, weld::Toggleable &, void)
SwWrtShell & mrSh
Definition: titlepage.hxx:27
DECL_LINK(RestartNumberingHdl, weld::Toggleable &, void)
virtual ~SwTitlePageDlg() override
Definition: titlepage.cxx:252
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:41
std::unique_ptr< weld::CheckButton > m_xSetPageNumberCB
Definition: titlepage.hxx:42
std::unique_ptr< weld::SpinButton > m_xSetPageNumberNF
Definition: titlepage.hxx:43
DECL_LINK(EditHdl, weld::Button &, void)
DECL_LINK(ValueChangeHdl, weld::SpinButton &, void)
std::unique_ptr< weld::CheckButton > m_xRestartNumberingCB
Definition: titlepage.hxx:40
std::unique_ptr< const SwFormatPageDesc > mpPageFormatDesc
Definition: titlepage.hxx:29
std::unique_ptr< weld::RadioButton > m_xPageStartRB
Definition: titlepage.hxx:38
DECL_LINK(SetPageNumberHdl, weld::Toggleable &, void)
SwPageDesc * mpTitleDesc
Definition: titlepage.hxx:31
const SwPageDesc * mpNormalDesc
Definition: titlepage.hxx:33
std::unique_ptr< weld::Button > m_xPagePropertiesPB
Definition: titlepage.hxx:45
std::unique_ptr< weld::Button > m_xOkPB
Definition: titlepage.hxx:46
std::unique_ptr< weld::SpinButton > m_xPageCountNF
Definition: titlepage.hxx:36
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97