docthemes: Save themes def. to a file when added to ColorSets
[LibreOffice.git] / sw / source / uibase / inc / pgfnote.hxx
blob77b367230c670ad6533480bd649533da74e3bc2e
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 #pragma once
21 #include <sfx2/tabdlg.hxx>
23 #include <svtools/ctrlbox.hxx>
24 #include <svx/colorbox.hxx>
26 // footnote settings TabPage
27 class SwFootNotePage final : public SfxTabPage
29 static const WhichRangesContainer s_aPageRg;
30 public:
31 SwFootNotePage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet &rSet);
32 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet);
33 virtual ~SwFootNotePage() override;
35 static const WhichRangesContainer & GetRanges() { return s_aPageRg; }
37 virtual bool FillItemSet(SfxItemSet *rSet) override;
38 virtual void Reset(const SfxItemSet *rSet) override;
40 private:
42 tools::Long m_lMaxHeight;
44 std::unique_ptr<weld::RadioButton> m_xMaxHeightPageBtn;
45 std::unique_ptr<weld::RadioButton> m_xMaxHeightBtn;
46 std::unique_ptr<weld::MetricSpinButton> m_xMaxHeightEdit;
47 std::unique_ptr<weld::Label> m_xDistLabel;
48 std::unique_ptr<weld::MetricSpinButton> m_xDistEdit;
49 std::unique_ptr<weld::Label> m_xLinePosLabel;
50 std::unique_ptr<weld::ComboBox> m_xLinePosBox;
51 std::unique_ptr<SvtLineListBox> m_xLineTypeBox;
52 std::unique_ptr<weld::MetricSpinButton> m_xLineWidthEdit;
53 std::unique_ptr<ColorListBox> m_xLineColorBox;
54 std::unique_ptr<weld::Label> m_xLineLengthLabel;
55 std::unique_ptr<weld::MetricSpinButton> m_xLineLengthEdit;
56 std::unique_ptr<weld::Label> m_xLineDistLabel;
57 std::unique_ptr<weld::MetricSpinButton> m_xLineDistEdit;
59 DECL_LINK(HeightPage, weld::Toggleable&, void);
60 DECL_LINK(HeightMetric, weld::Toggleable&, void);
61 DECL_LINK(HeightModify, weld::MetricSpinButton&, void);
62 DECL_LINK(LineWidthChanged_Impl, weld::MetricSpinButton&, void);
63 DECL_LINK(LineColorSelected_Impl, ColorListBox&, void);
65 virtual void ActivatePage( const SfxItemSet& rSet ) override;
66 virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */