nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / uibase / inc / numpara.hxx
blob1589220e6b8be95e7892bdf81037e701a301b9f1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_NUMPARA_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_NUMPARA_HXX
22 #include <sfx2/tabdlg.hxx>
23 #include <svl/style.hxx>
25 // with this TabPage numbering settings at the paragraph / paragraph style
26 // are performed.
27 class SwParagraphNumTabPage final : public SfxTabPage
29 // #outlinelevel#
30 const OUString msOutlineNumbering;
32 bool bModified : 1;
33 bool bCurNumrule : 1;
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;
41 std::unique_ptr<weld::CheckButton> m_xNewStartCB;
42 std::unique_ptr<weld::Widget> m_xNewStartBX;
43 std::unique_ptr<weld::CheckButton> m_xNewStartNumberCB;
44 std::unique_ptr<weld::SpinButton> m_xNewStartNF;
46 std::unique_ptr<weld::Widget> m_xCountParaFram;
47 std::unique_ptr<weld::CheckButton> m_xCountParaCB;
48 std::unique_ptr<weld::CheckButton> m_xRestartParaCountCB;
50 std::unique_ptr<weld::Widget> m_xRestartBX;
51 std::unique_ptr<weld::SpinButton> m_xRestartNF;
53 DECL_LINK(NewStartHdl_Impl, weld::ToggleButton&, void);
54 DECL_LINK(StyleHdl_Impl, weld::ComboBox&,void);
55 DECL_LINK(LineCountHdl_Impl, weld::ToggleButton&, void);
56 DECL_LINK(EditNumStyleHdl_Impl, weld::Button&, void);
57 DECL_LINK(EditNumStyleSelectHdl_Impl, weld::ComboBox&, void);
59 static const sal_uInt16 aPageRg[];
61 static bool ExecuteEditNumStyle_Impl( sal_uInt16 nId, const OUString& rStr,
62 SfxStyleFamily nFamily );
64 public:
65 SwParagraphNumTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet );
66 virtual ~SwParagraphNumTabPage() override;
68 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
69 const SfxItemSet* rSet );
70 static const sal_uInt16* GetRanges() { return aPageRg; }
72 virtual bool FillItemSet( SfxItemSet* rSet ) override;
73 virtual void Reset( const SfxItemSet* rSet ) override;
74 virtual void ChangesApplied() override;
76 void EnableNewStart();
77 void DisableOutline();
78 void DisableNumbering();
80 weld::ComboBox& GetStyleBox() {return *m_xNumberStyleLB;};
83 #endif
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */