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 
17 namespace vcl { class Window; }
18 class SwWrtShell;
19 class SwPageDesc;
20 
22 {
23 private:
25 
26  std::unique_ptr<const SwFormatPageDesc> mpPageFormatDesc;
27 
31 
32  std::unique_ptr<weld::RadioButton> m_xUseExistingPagesRB;
33  std::unique_ptr<weld::SpinButton> m_xPageCountNF;
34  std::unique_ptr<weld::RadioButton> m_xDocumentStartRB;
35  std::unique_ptr<weld::RadioButton> m_xPageStartRB;
36  std::unique_ptr<weld::SpinButton> m_xPageStartNF;
37  std::unique_ptr<weld::CheckButton> m_xRestartNumberingCB;
38  std::unique_ptr<weld::SpinButton> m_xRestartNumberingNF;
39  std::unique_ptr<weld::CheckButton> m_xSetPageNumberCB;
40  std::unique_ptr<weld::SpinButton> m_xSetPageNumberNF;
41  std::unique_ptr<weld::ComboBox> m_xPagePropertiesLB;
42  std::unique_ptr<weld::Button> m_xPagePropertiesPB;
43  std::unique_ptr<weld::Button> m_xOkPB;
44 
45  void FillList();
46 
47  sal_uInt16 GetInsertPosition() const;
48 
49  DECL_LINK(OKHdl, weld::Button&, void);
50  DECL_LINK(EditHdl, weld::Button&, void);
51  DECL_LINK(RestartNumberingHdl, weld::ToggleButton&, void);
52  DECL_LINK(SetPageNumberHdl, weld::ToggleButton&, void);
53  DECL_LINK(ValueChangeHdl, weld::SpinButton&, void);
54  DECL_LINK(StartPageHdl, weld::ToggleButton&, void);
55 public:
56  SwTitlePageDlg(weld::Window *pParent);
57  virtual ~SwTitlePageDlg() override;
58 };
59 
60 #endif
61 
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DECL_LINK(OKHdl, weld::Button &, void)
std::unique_ptr< weld::CheckButton > m_xSetPageNumberCB
Definition: titlepage.hxx:39
SwWrtShell * mpSh
Definition: titlepage.hxx:24
std::unique_ptr< weld::ComboBox > m_xPagePropertiesLB
Definition: titlepage.hxx:41
std::unique_ptr< weld::Button > m_xPagePropertiesPB
Definition: titlepage.hxx:42
std::unique_ptr< weld::SpinButton > m_xPageCountNF
Definition: titlepage.hxx:33
SwTitlePageDlg(weld::Window *pParent)
Definition: titlepage.cxx:150
Used by the UI to modify the document model.
Definition: wrtsh.hxx:90
std::unique_ptr< weld::RadioButton > m_xDocumentStartRB
Definition: titlepage.hxx:34
std::unique_ptr< weld::SpinButton > m_xPageStartNF
Definition: titlepage.hxx:36
sal_uInt16 GetInsertPosition() const
Definition: titlepage.cxx:142
std::unique_ptr< weld::CheckButton > m_xRestartNumberingCB
Definition: titlepage.hxx:37
const SwPageDesc * mpIndexDesc
Definition: titlepage.hxx:29
std::unique_ptr< weld::RadioButton > m_xPageStartRB
Definition: titlepage.hxx:35
const SwPageDesc * mpNormalDesc
Definition: titlepage.hxx:30
std::unique_ptr< weld::SpinButton > m_xSetPageNumberNF
Definition: titlepage.hxx:40
std::unique_ptr< weld::SpinButton > m_xRestartNumberingNF
Definition: titlepage.hxx:38
std::unique_ptr< const SwFormatPageDesc > mpPageFormatDesc
Definition: titlepage.hxx:26
virtual ~SwTitlePageDlg() override
Definition: titlepage.cxx:254
std::unique_ptr< weld::RadioButton > m_xUseExistingPagesRB
Definition: titlepage.hxx:32
std::unique_ptr< weld::Button > m_xOkPB
Definition: titlepage.hxx:43
SwPageDesc * mpTitleDesc
Definition: titlepage.hxx:28