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
18 {
19 class Window;
20 }
21 class SwWrtShell;
22 class SwPageDesc;
23 
24 class SwTitlePageDlg final : public SfxDialogController
25 {
26 private:
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 
59 public:
60  SwTitlePageDlg(weld::Window* pParent);
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::CheckButton > m_xSetPageNumberCB
Definition: titlepage.hxx:42
SwWrtShell & mrSh
Definition: titlepage.hxx:27
std::unique_ptr< weld::ComboBox > m_xPagePropertiesLB
Definition: titlepage.hxx:44
std::unique_ptr< weld::Button > m_xPagePropertiesPB
Definition: titlepage.hxx:45
std::unique_ptr< weld::SpinButton > m_xPageCountNF
Definition: titlepage.hxx:36
SwTitlePageDlg(weld::Window *pParent)
Definition: titlepage.cxx:148
Used by the UI to modify the document model.
Definition: wrtsh.hxx:93
std::unique_ptr< weld::RadioButton > m_xDocumentStartRB
Definition: titlepage.hxx:37
std::unique_ptr< weld::SpinButton > m_xPageStartNF
Definition: titlepage.hxx:39
sal_uInt16 GetInsertPosition() const
Definition: titlepage.cxx:140
std::unique_ptr< weld::CheckButton > m_xRestartNumberingCB
Definition: titlepage.hxx:40
const SwPageDesc * mpIndexDesc
Definition: titlepage.hxx:32
std::unique_ptr< weld::RadioButton > m_xPageStartRB
Definition: titlepage.hxx:38
const SwPageDesc * mpNormalDesc
Definition: titlepage.hxx:33
std::unique_ptr< weld::SpinButton > m_xSetPageNumberNF
Definition: titlepage.hxx:43
std::unique_ptr< weld::SpinButton > m_xRestartNumberingNF
Definition: titlepage.hxx:41
std::unique_ptr< const SwFormatPageDesc > mpPageFormatDesc
Definition: titlepage.hxx:29
virtual ~SwTitlePageDlg() override
Definition: titlepage.cxx:253
std::unique_ptr< weld::RadioButton > m_xUseExistingPagesRB
Definition: titlepage.hxx:35
std::unique_ptr< weld::Button > m_xOkPB
Definition: titlepage.hxx:46
SwPageDesc * mpTitleDesc
Definition: titlepage.hxx:31