Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / uibase / inc / linenum.hxx
blobeaed161296265e69227af57e3403e8c5ed6b21db
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_LINENUM_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_LINENUM_HXX
22 #include <sfx2/basedlgs.hxx>
23 #include "numberingtypelistbox.hxx"
25 class SwView;
26 class SwWrtShell;
28 class SwLineNumberingDlg final : public SfxDialogController
30 private:
31 SwWrtShell* m_pSh;
32 std::unique_ptr<weld::Widget> m_xBodyContent;
33 std::unique_ptr<weld::Widget> m_xDivIntervalFT;
34 std::unique_ptr<weld::SpinButton> m_xDivIntervalNF;
35 std::unique_ptr<weld::Widget> m_xDivRowsFT;
36 std::unique_ptr<weld::SpinButton> m_xNumIntervalNF;
37 std::unique_ptr<weld::ComboBox> m_xCharStyleLB;
38 std::unique_ptr<SwNumberingTypeListBox> m_xFormatLB;
39 std::unique_ptr<weld::ComboBox> m_xPosLB;
40 std::unique_ptr<weld::MetricSpinButton> m_xOffsetMF;
41 std::unique_ptr<weld::Entry> m_xDivisorED;
42 std::unique_ptr<weld::CheckButton> m_xCountEmptyLinesCB;
43 std::unique_ptr<weld::CheckButton> m_xCountFrameLinesCB;
44 std::unique_ptr<weld::CheckButton> m_xRestartEachPageCB;
45 std::unique_ptr<weld::CheckButton> m_xNumberingOnCB;
46 std::unique_ptr<weld::CheckButton> m_xNumberingOnFooterHeader;
47 std::unique_ptr<weld::Button> m_xOKButton;
48 std::unique_ptr<weld::Widget> m_xNumIntervalFT;
49 std::unique_ptr<weld::Widget> m_xNumRowsFT;
50 DECL_LINK(OKHdl, weld::Button&, void);
51 DECL_LINK(LineOnOffHdl, weld::Toggleable&, void);
52 DECL_LINK(ModifyHdl, weld::Entry&, void);
54 public:
55 SwLineNumberingDlg(const SwView& rVw);
56 virtual ~SwLineNumberingDlg() override;
59 #endif
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */