LibreOffice Module svx (master)  1
ParaSpacingWindow.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_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARASPACINGWINDOW_HXX
20 #define INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARASPACINGWINDOW_HXX
21 
22 #include <editeng/ulspitem.hxx>
23 #include <vcl/EnumContext.hxx>
25 #include <svx/relfld.hxx>
26 
27 using namespace com::sun::star;
28 
29 namespace svx
30 {
32 {
33 public:
34  virtual ~ParaULSpacingWindow() override;
35  virtual void dispose() override;
36 
37  void SetValue(const SvxULSpaceItem* pItem);
38  void SetUnit(FieldUnit eUnit);
39 
40 protected:
42 
43  std::unique_ptr<SvxRelativeField> m_xAboveSpacing;
44  std::unique_ptr<SvxRelativeField> m_xBelowSpacing;
45  std::unique_ptr<weld::Container> m_xAboveContainer;
46  std::unique_ptr<weld::Container> m_xBelowContainer;
47 
49 
50  DECL_LINK(ModifySpacingHdl, weld::MetricSpinButton&, void);
51 };
52 
54 {
55 public:
56  explicit ParaAboveSpacingWindow(vcl::Window* pParent);
57  virtual void GetFocus() override;
58 };
59 
61 {
62 public:
63  explicit ParaBelowSpacingWindow(vcl::Window* pParent);
64  virtual void GetFocus() override;
65 };
66 
68 {
69 public:
70  virtual ~ParaLRSpacingWindow() override;
71  virtual void dispose() override;
72 
73  void SetValue(SfxItemState eState, const SfxPoolItem* pState);
74  void SetUnit(FieldUnit eUnit);
75  void SetContext(const vcl::EnumContext& eContext);
76 
77 protected:
79 
80  std::unique_ptr<SvxRelativeField> m_xBeforeSpacing;
81  std::unique_ptr<SvxRelativeField> m_xAfterSpacing;
82  std::unique_ptr<SvxRelativeField> m_xFLSpacing;
83  std::unique_ptr<weld::Container> m_xBeforeContainer;
84  std::unique_ptr<weld::Container> m_xAfterContainer;
85  std::unique_ptr<weld::Container> m_xFirstLineContainer;
86 
88 
90 
91  DECL_LINK(ModifySpacingHdl, weld::MetricSpinButton&, void);
92 };
93 
95 {
96 public:
97  explicit ParaLeftSpacingWindow(vcl::Window* pParent);
98  virtual void GetFocus() override;
99 };
100 
102 {
103 public:
104  explicit ParaRightSpacingWindow(vcl::Window* pParent);
105  virtual void GetFocus() override;
106 };
107 
109 {
110 public:
111  explicit ParaFirstLineSpacingWindow(vcl::Window* pParent);
112  virtual void GetFocus() override;
113 };
114 }
115 
116 #endif
117 
118 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< SvxRelativeField > m_xBelowSpacing
FieldUnit
std::unique_ptr< SvxRelativeField > m_xAfterSpacing
std::unique_ptr< weld::Container > m_xAboveContainer
std::unique_ptr< SvxRelativeField > m_xBeforeSpacing
std::unique_ptr< weld::Container > m_xAfterContainer
std::unique_ptr< weld::Container > m_xFirstLineContainer
SfxItemState
std::unique_ptr< weld::Container > m_xBeforeContainer
std::unique_ptr< SvxRelativeField > m_xAboveSpacing
std::unique_ptr< SvxRelativeField > m_xFLSpacing
MapUnit
void dispose()
std::unique_ptr< weld::Container > m_xBelowContainer