2 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 * This file is part of the LibreOffice project.
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/.
10 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_BREAK_HXX
21 #define INCLUDED_SW_SOURCE_UIBASE_INC_BREAK_HXX
23 #include <vcl/weld.hxx>
28 class SwBreakDlg
: public weld::GenericDialogController
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
;
42 ::std::optional
<sal_uInt16
> oPgNum
;
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);
53 void rememberResult();
56 SwBreakDlg(weld::Window
* pParent
, SwWrtShell
& rSh
);
57 const OUString
& GetTemplateName() const { return m_aTemplate
; }
58 sal_uInt16
GetKind() const { return nKind
; }
59 const ::std::optional
<sal_uInt16
>& GetPageNumber() const { return oPgNum
; }
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */