LibreOffice Module sw (master)  1
pgfnote.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_PGFNOTE_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_PGFNOTE_HXX
21 
22 #include <sfx2/tabdlg.hxx>
23 
24 #include <svtools/ctrlbox.hxx>
25 #include <svx/colorbox.hxx>
26 
27 // footnote settings TabPage
29 {
30  friend class VclPtr<SwFootNotePage>;
31  static const sal_uInt16 aPageRg[];
32  SwFootNotePage(TabPageParent pParent, const SfxItemSet &rSet);
33 public:
34  static VclPtr<SfxTabPage> Create(TabPageParent pParent, const SfxItemSet *rSet);
35  static const sal_uInt16* GetRanges() { return aPageRg; }
36 
37  virtual bool FillItemSet(SfxItemSet *rSet) override;
38  virtual void Reset(const SfxItemSet *rSet) override;
39 
40  virtual ~SwFootNotePage() override;
41  virtual void dispose() override;
42 private:
43 
44  long lMaxHeight;
45 
46  std::unique_ptr<weld::RadioButton> m_xMaxHeightPageBtn;
47  std::unique_ptr<weld::RadioButton> m_xMaxHeightBtn;
48  std::unique_ptr<weld::MetricSpinButton> m_xMaxHeightEdit;
49  std::unique_ptr<weld::MetricSpinButton> m_xDistEdit;
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::MetricSpinButton> m_xLineLengthEdit;
55  std::unique_ptr<weld::MetricSpinButton> m_xLineDistEdit;
56 
57  DECL_LINK(HeightPage, weld::ToggleButton&, void);
58  DECL_LINK(HeightMetric, weld::ToggleButton&, void);
59  DECL_LINK(HeightModify, weld::MetricSpinButton&, void);
60  DECL_LINK(LineWidthChanged_Impl, weld::MetricSpinButton&, void);
61  DECL_LINK(LineColorSelected_Impl, ColorListBox&, void);
62 
65 
66  virtual void ActivatePage( const SfxItemSet& rSet ) override;
67  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
68 
69 };
70 
71 #endif
72 
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Reset(const SfxItemSet *rSet) override
Definition: pgfnote.cxx:149
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: pgfnote.cxx:324
const SfxItemSet * pSet
virtual void ActivatePage(const SfxItemSet &)
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet)
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: pgfnote.cxx:229
virtual void dispose() override
Definition: pgfnote.cxx:137
std::unique_ptr< SvtLineListBox > m_xLineTypeBox
Definition: pgfnote.hxx:51
static const sal_uInt16 * GetRanges()
Definition: pgfnote.hxx:35
std::unique_ptr< ColorListBox > m_xLineColorBox
Definition: pgfnote.hxx:53
virtual ~SwFootNotePage() override
Definition: pgfnote.cxx:132
std::unique_ptr< weld::RadioButton > m_xMaxHeightBtn
Definition: pgfnote.hxx:47
SwFootNotePage(TabPageParent pParent, const SfxItemSet &rSet)
Definition: pgfnote.cxx:108
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: pgfnote.cxx:277
std::unique_ptr< weld::ComboBox > m_xLinePosBox
Definition: pgfnote.hxx:50
DECL_LINK(HeightPage, weld::ToggleButton &, void)
std::unique_ptr< weld::MetricSpinButton > m_xDistEdit
Definition: pgfnote.hxx:49
std::unique_ptr< weld::MetricSpinButton > m_xMaxHeightEdit
Definition: pgfnote.hxx:48
std::unique_ptr< weld::RadioButton > m_xMaxHeightPageBtn
Definition: pgfnote.hxx:46
std::unique_ptr< weld::MetricSpinButton > m_xLineDistEdit
Definition: pgfnote.hxx:55
std::unique_ptr< weld::MetricSpinButton > m_xLineWidthEdit
Definition: pgfnote.hxx:52
DeactivateRC
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rSet)
Definition: pgfnote.cxx:144
long lMaxHeight
Definition: pgfnote.hxx:44
std::unique_ptr< weld::MetricSpinButton > m_xLineLengthEdit
Definition: pgfnote.hxx:54
static const sal_uInt16 aPageRg[]
Definition: pgfnote.hxx:31