nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / uibase / inc / pgfnote.hxx
blob36f2bdfb4ea0cd686eb3c6d7f4cf6cb67b989bf6
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_PGFNOTE_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_PGFNOTE_HXX
22 #include <sfx2/tabdlg.hxx>
24 #include <svtools/ctrlbox.hxx>
25 #include <svx/colorbox.hxx>
27 // footnote settings TabPage
28 class SwFootNotePage: public SfxTabPage
30 static const sal_uInt16 aPageRg[];
31 public:
32 SwFootNotePage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet &rSet);
33 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet);
34 virtual ~SwFootNotePage() override;
36 static const sal_uInt16* GetRanges() { return aPageRg; }
38 virtual bool FillItemSet(SfxItemSet *rSet) override;
39 virtual void Reset(const SfxItemSet *rSet) override;
41 private:
43 tools::Long lMaxHeight;
45 std::unique_ptr<weld::RadioButton> m_xMaxHeightPageBtn;
46 std::unique_ptr<weld::RadioButton> m_xMaxHeightBtn;
47 std::unique_ptr<weld::MetricSpinButton> m_xMaxHeightEdit;
48 std::unique_ptr<weld::MetricSpinButton> m_xDistEdit;
49 std::unique_ptr<weld::ComboBox> m_xLinePosBox;
50 std::unique_ptr<SvtLineListBox> m_xLineTypeBox;
51 std::unique_ptr<weld::MetricSpinButton> m_xLineWidthEdit;
52 std::unique_ptr<ColorListBox> m_xLineColorBox;
53 std::unique_ptr<weld::MetricSpinButton> m_xLineLengthEdit;
54 std::unique_ptr<weld::MetricSpinButton> m_xLineDistEdit;
56 DECL_LINK(HeightPage, weld::ToggleButton&, void);
57 DECL_LINK(HeightMetric, weld::ToggleButton&, void);
58 DECL_LINK(HeightModify, weld::MetricSpinButton&, void);
59 DECL_LINK(LineWidthChanged_Impl, weld::MetricSpinButton&, void);
60 DECL_LINK(LineColorSelected_Impl, ColorListBox&, void);
62 virtual void ActivatePage( const SfxItemSet& rSet ) override;
63 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
67 #endif
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */