LibreOffice Module sw (master) 1
numpara.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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_NUMPARA_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_NUMPARA_HXX
21
22#include <sfx2/tabdlg.hxx>
23#include <svl/style.hxx>
24
25// with this TabPage numbering settings at the paragraph / paragraph style
26// are performed.
28{
29 // #outlinelevel#
30 const OUString msOutlineNumbering;
31
32 bool m_bModified : 1;
33 bool m_bCurNumrule : 1;
34
35 std::unique_ptr<weld::Widget> m_xOutlineStartBX;
36 std::unique_ptr<weld::ComboBox> m_xOutlineLvLB;
37 std::unique_ptr<weld::Widget> m_xNumberStyleBX;
38 std::unique_ptr<weld::ComboBox> m_xNumberStyleLB;
39 std::unique_ptr<weld::Button> m_xEditNumStyleBtn;
40
41 std::unique_ptr<weld::Widget> m_xListLvBX;
42 std::unique_ptr<weld::ComboBox> m_xListLvLB;
43
44 std::unique_ptr<weld::CheckButton> m_xNewStartCB;
45 std::unique_ptr<weld::Widget> m_xNewStartBX;
46 std::unique_ptr<weld::CheckButton> m_xNewStartNumberCB;
47 std::unique_ptr<weld::SpinButton> m_xNewStartNF;
48
49 std::unique_ptr<weld::Widget> m_xCountParaFram;
50 std::unique_ptr<weld::CheckButton> m_xCountParaCB;
51 std::unique_ptr<weld::CheckButton> m_xRestartParaCountCB;
52
53 std::unique_ptr<weld::Widget> m_xRestartBX;
54 std::unique_ptr<weld::SpinButton> m_xRestartNF;
55
56 DECL_LINK(NewStartHdl_Impl, weld::Toggleable&, void);
57 DECL_LINK(StyleHdl_Impl, weld::ComboBox&,void);
58 DECL_LINK(LineCountHdl_Impl, weld::Toggleable&, void);
59 DECL_LINK(EditNumStyleHdl_Impl, weld::Button&, void);
60 DECL_LINK(EditNumStyleSelectHdl_Impl, weld::ComboBox&, void);
61
63
64 void ExecuteEditNumStyle_Impl(sal_uInt16 nId, const OUString& rStr,
65 SfxStyleFamily nFamily);
66
67public:
69 virtual ~SwParagraphNumTabPage() override;
70
71 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
72 const SfxItemSet* rSet );
74
75 virtual bool FillItemSet( SfxItemSet* rSet ) override;
76 virtual void Reset( const SfxItemSet* rSet ) override;
77 virtual void ChangesApplied() override;
78
79 void EnableNewStart();
80 void DisableOutline();
81 void DisableNumbering();
82
84};
85
86#endif
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Widget > m_xOutlineStartBX
Definition: numpara.hxx:35
std::unique_ptr< weld::ComboBox > m_xNumberStyleLB
Definition: numpara.hxx:38
std::unique_ptr< weld::Widget > m_xRestartBX
Definition: numpara.hxx:53
std::unique_ptr< weld::SpinButton > m_xNewStartNF
Definition: numpara.hxx:47
static WhichRangesContainer GetRanges()
Definition: numpara.hxx:73
std::unique_ptr< weld::Widget > m_xCountParaFram
Definition: numpara.hxx:49
std::unique_ptr< weld::CheckButton > m_xCountParaCB
Definition: numpara.hxx:50
DECL_LINK(EditNumStyleHdl_Impl, weld::Button &, void)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: numpara.cxx:99
std::unique_ptr< weld::CheckButton > m_xNewStartCB
Definition: numpara.hxx:44
std::unique_ptr< weld::ComboBox > m_xOutlineLvLB
Definition: numpara.hxx:36
DECL_LINK(NewStartHdl_Impl, weld::Toggleable &, void)
DECL_LINK(StyleHdl_Impl, weld::ComboBox &, void)
virtual ~SwParagraphNumTabPage() override
Definition: numpara.cxx:95
virtual void Reset(const SfxItemSet *rSet) override
Definition: numpara.cxx:197
std::unique_ptr< weld::Widget > m_xNumberStyleBX
Definition: numpara.hxx:37
std::unique_ptr< weld::CheckButton > m_xNewStartNumberCB
Definition: numpara.hxx:46
weld::ComboBox & GetStyleBox()
Definition: numpara.hxx:83
std::unique_ptr< weld::CheckButton > m_xRestartParaCountCB
Definition: numpara.hxx:51
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: numpara.cxx:104
DECL_LINK(LineCountHdl_Impl, weld::Toggleable &, void)
void ExecuteEditNumStyle_Impl(sal_uInt16 nId, const OUString &rStr, SfxStyleFamily nFamily)
Definition: numpara.cxx:375
DECL_LINK(EditNumStyleSelectHdl_Impl, weld::ComboBox &, void)
static const WhichRangesContainer s_aPageRg
Definition: numpara.hxx:62
const OUString msOutlineNumbering
Definition: numpara.hxx:30
std::unique_ptr< weld::Button > m_xEditNumStyleBtn
Definition: numpara.hxx:39
std::unique_ptr< weld::ComboBox > m_xListLvLB
Definition: numpara.hxx:42
std::unique_ptr< weld::Widget > m_xListLvBX
Definition: numpara.hxx:41
virtual void ChangesApplied() override
Definition: numpara.cxx:185
std::unique_ptr< weld::Widget > m_xNewStartBX
Definition: numpara.hxx:45
std::unique_ptr< weld::SpinButton > m_xRestartNF
Definition: numpara.hxx:54
SwParagraphNumTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: numpara.cxx:39
SfxStyleFamily