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 
23 #include <editeng/ulspitem.hxx>
24 #include <editeng/lrspitem.hxx>
25 #include <vcl/builder.hxx>
26 #include <vcl/layout.hxx>
27 #include <vcl/EnumContext.hxx>
28 #include <svx/relfld.hxx>
29 #include <svtools/unitconv.hxx>
31 
32 using namespace com::sun::star;
33 
34 namespace svx {
35 
37  public VclBuilderContainer
38 
39 {
40 public:
41  virtual ~ParaULSpacingWindow() override;
42  virtual void dispose() override;
43 
44  void SetValue(const SvxULSpaceItem* pItem);
45  void SetUnit(FieldUnit eUnit);
46 
47 protected:
48  ParaULSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
53 
55 
56  DECL_LINK(ModifySpacingHdl, Edit&, void);
57 };
58 
60 {
61 public:
62  explicit ParaAboveSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
63  virtual void GetFocus() override;
64 };
65 
67 {
68 public:
69  explicit ParaBelowSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
70  virtual void GetFocus() override;
71 };
72 
74  public VclBuilderContainer
75 {
76 public:
77  virtual ~ParaLRSpacingWindow() override;
78  virtual void dispose() override;
79 
80  void SetValue(SfxItemState eState, const SfxPoolItem* pState);
81  void SetUnit(FieldUnit eUnit);
82  void SetContext(const vcl::EnumContext& eContext);
83 
84 protected:
85  ParaLRSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
86 
93 
95 
97 
98  DECL_LINK(ModifySpacingHdl, Edit&, void);
99 };
100 
102 {
103 public:
104  explicit ParaLeftSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
105  virtual void GetFocus() override;
106 };
107 
109 {
110 public:
111  explicit ParaRightSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
112  virtual void GetFocus() override;
113 };
114 
116 {
117 public:
118  explicit ParaFirstLineSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
119  virtual void GetFocus() override;
120 };
121 
122 }
123 
124 #endif
125 
126 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
VclPtr< SvxRelativeField > m_pFLSpacing
FieldUnit
VclPtr< VclHBox > m_pFirstLineContainer
VclPtr< VclHBox > m_pAboveContainer
Reference< XFrame > xFrame
VclPtr< SvxRelativeField > m_pAboveSpacing
VclPtr< VclHBox > m_pAfterContainer
VclPtr< VclHBox > m_pBeforeContainer
VclPtr< SvxRelativeField > m_pAfterSpacing
SfxItemState
VclPtr< SvxRelativeField > m_pBelowSpacing
VclPtr< VclHBox > m_pBelowContainer
VclPtr< SvxRelativeField > m_pBeforeSpacing
MapUnit
void dispose()