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#pragma once
20
21#include <editeng/ulspitem.hxx>
22#include <vcl/EnumContext.hxx>
24#include <svx/relfld.hxx>
25
26using namespace com::sun::star;
27
28namespace svx
29{
31{
32public:
33 virtual ~ParaULSpacingWindow() override;
34 virtual void dispose() override;
35
36 void SetValue(const SvxULSpaceItem* pItem);
37 void SetUnit(FieldUnit eUnit);
38
39protected:
41
42 std::optional<SvxRelativeField> m_xAboveSpacing;
43 std::optional<SvxRelativeField> m_xBelowSpacing;
44 std::unique_ptr<weld::Container> m_xAboveContainer;
45 std::unique_ptr<weld::Container> m_xBelowContainer;
46
48
49 DECL_LINK(ModifySpacingHdl, weld::MetricSpinButton&, void);
50};
51
53{
54public:
55 explicit ParaAboveSpacingWindow(vcl::Window* pParent);
56};
57
59{
60public:
61 explicit ParaBelowSpacingWindow(vcl::Window* pParent);
62};
63
65{
66public:
67 virtual ~ParaLRSpacingWindow() override;
68 virtual void dispose() override;
69
70 void SetValue(SfxItemState eState, const SfxPoolItem* pState);
71 void SetUnit(FieldUnit eUnit);
72 void SetContext(const vcl::EnumContext& eContext);
73
74protected:
76
77 std::optional<SvxRelativeField> m_xBeforeSpacing;
78 std::optional<SvxRelativeField> m_xAfterSpacing;
79 std::optional<SvxRelativeField> m_xFLSpacing;
80 std::unique_ptr<weld::Container> m_xBeforeContainer;
81 std::unique_ptr<weld::Container> m_xAfterContainer;
82 std::unique_ptr<weld::Container> m_xFirstLineContainer;
83
85
87
88 DECL_LINK(ModifySpacingHdl, weld::MetricSpinButton&, void);
89};
90
92{
93public:
94 explicit ParaLeftSpacingWindow(vcl::Window* pParent);
95};
96
98{
99public:
100 explicit ParaRightSpacingWindow(vcl::Window* pParent);
101};
102
104{
105public:
106 explicit ParaFirstLineSpacingWindow(vcl::Window* pParent);
107};
108}
109
110/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ParaAboveSpacingWindow(vcl::Window *pParent)
ParaBelowSpacingWindow(vcl::Window *pParent)
ParaFirstLineSpacingWindow(vcl::Window *pParent)
virtual void dispose() override
void SetContext(const vcl::EnumContext &eContext)
DECL_LINK(ModifySpacingHdl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::Container > m_xFirstLineContainer
ParaLRSpacingWindow(vcl::Window *pParent)
std::optional< SvxRelativeField > m_xFLSpacing
void SetUnit(FieldUnit eUnit)
std::unique_ptr< weld::Container > m_xAfterContainer
void SetValue(SfxItemState eState, const SfxPoolItem *pState)
std::optional< SvxRelativeField > m_xBeforeSpacing
virtual ~ParaLRSpacingWindow() override
std::unique_ptr< weld::Container > m_xBeforeContainer
std::optional< SvxRelativeField > m_xAfterSpacing
ParaLeftSpacingWindow(vcl::Window *pParent)
ParaRightSpacingWindow(vcl::Window *pParent)
std::optional< SvxRelativeField > m_xBelowSpacing
ParaULSpacingWindow(vcl::Window *pParent)
virtual void dispose() override
DECL_LINK(ModifySpacingHdl, weld::MetricSpinButton &, void)
virtual ~ParaULSpacingWindow() override
std::unique_ptr< weld::Container > m_xBelowContainer
void SetUnit(FieldUnit eUnit)
void SetValue(const SvxULSpaceItem *pItem)
std::unique_ptr< weld::Container > m_xAboveContainer
std::optional< SvxRelativeField > m_xAboveSpacing
FieldUnit
MapUnit
SfxItemState