LibreOffice Module sw (master)  1
break.hxx
Go to the documentation of this file.
1 
2 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 /*
4  * This file is part of the LibreOffice project.
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0. If a copy of the MPL was not distributed with this
8  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9  *
10  * This file incorporates work covered by the following license notice:
11  *
12  * Licensed to the Apache Software Foundation (ASF) under one or more
13  * contributor license agreements. See the NOTICE file distributed
14  * with this work for additional information regarding copyright
15  * ownership. The ASF licenses this file to you under the Apache
16  * License, Version 2.0 (the "License"); you may not use this file
17  * except in compliance with the License. You may obtain a copy of
18  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19  */
20 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_BREAK_HXX
21 #define INCLUDED_SW_SOURCE_UIBASE_INC_BREAK_HXX
22 
23 #include <vcl/weld.hxx>
24 #include <boost/optional.hpp>
25 
26 class SwWrtShell;
27 
29 {
30  std::unique_ptr<weld::RadioButton> m_xLineBtn;
31  std::unique_ptr<weld::RadioButton> m_xColumnBtn;
32  std::unique_ptr<weld::RadioButton> m_xPageBtn;
33  std::unique_ptr<weld::Label> m_xPageCollText;
34  std::unique_ptr<weld::ComboBox> m_xPageCollBox;
35  std::unique_ptr<weld::CheckButton> m_xPageNumBox;
36  std::unique_ptr<weld::SpinButton> m_xPageNumEdit;
37  std::unique_ptr<weld::Button> m_xOkBtn;
38 
40  OUString m_aTemplate;
41  sal_uInt16 nKind;
43 
44  bool const bHtmlMode;
45 
46  DECL_LINK(ToggleHdl, weld::ToggleButton&, void);
47  DECL_LINK(ChangeHdl, weld::ComboBox&, void);
48  DECL_LINK(PageNumHdl, weld::ToggleButton&, void);
49  DECL_LINK(PageNumModifyHdl, weld::SpinButton&, void);
50  DECL_LINK(OkHdl, weld::Button&, void);
51 
52  void CheckEnable();
53 
54 public:
55  SwBreakDlg(weld::Window *pParent, SwWrtShell &rSh);
56  virtual short run() override;
57  const OUString& GetTemplateName() const { return m_aTemplate; }
58  sal_uInt16 GetKind() const { return nKind; }
59  const ::boost::optional<sal_uInt16>& GetPageNumber() const { return oPgNum; }
60 };
61 
62 #endif
63 
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Label > m_xPageCollText
Definition: break.hxx:33
const OUString & GetTemplateName() const
Definition: break.hxx:57
sal_uInt16 nKind
Definition: break.hxx:41
SwBreakDlg(weld::Window *pParent, SwWrtShell &rSh)
Definition: break.cxx:131
::boost::optional< sal_uInt16 > oPgNum
Definition: break.hxx:42
bool const bHtmlMode
Definition: break.hxx:44
void CheckEnable()
Definition: break.cxx:178
Used by the UI to modify the document model.
Definition: wrtsh.hxx:88
std::unique_ptr< weld::RadioButton > m_xLineBtn
Definition: break.hxx:30
virtual short run() override
Definition: break.cxx:37
std::unique_ptr< weld::RadioButton > m_xColumnBtn
Definition: break.hxx:31
OUString m_aTemplate
Definition: break.hxx:40
std::unique_ptr< weld::SpinButton > m_xPageNumEdit
Definition: break.hxx:36
SwWrtShell & rSh
Definition: break.hxx:39
std::unique_ptr< weld::CheckButton > m_xPageNumBox
Definition: break.hxx:35
const ::boost::optional< sal_uInt16 > & GetPageNumber() const
Definition: break.hxx:59
std::unique_ptr< weld::Button > m_xOkBtn
Definition: break.hxx:37
std::unique_ptr< weld::RadioButton > m_xPageBtn
Definition: break.hxx:32
DECL_LINK(ToggleHdl, weld::ToggleButton &, void)
std::unique_ptr< weld::ComboBox > m_xPageCollBox
Definition: break.hxx:34
sal_uInt16 GetKind() const
Definition: break.hxx:58