LibreOffice Module svx (master)
1
include
svx
sidebar
LineWidthPopup.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_LINE_LINEWIDTHPOPUP_HXX
20
#define INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEWIDTHPOPUP_HXX
21
22
#include <
tools/mapunit.hxx
>
23
#include <
vcl/customweld.hxx
>
24
#include <
vcl/image.hxx
>
25
#include <
vcl/weld.hxx
>
26
#include <
svtools/toolbarmenu.hxx
>
27
#include <array>
28
29
class
ValueSet
;
30
31
namespace
svx::sidebar
32
{
33
class
LinePropertyPanelBase;
34
class
LineWidthValueSet;
35
36
class
LineWidthPopup
final :
public
WeldToolbarPopup
37
{
38
public
:
39
LineWidthPopup
(
weld::Widget
* pParent,
LinePropertyPanelBase
& rParent);
40
~LineWidthPopup
();
41
42
void
SetWidthSelect
(
tools::Long
lValue,
bool
bValuable,
MapUnit
eMapUnit);
43
44
weld::Container
*
getTopLevel
()
const
{
return
m_xTopLevel
.get(); }
45
46
virtual
void
GrabFocus
()
override
;
47
48
private
:
49
LinePropertyPanelBase
&
m_rParent
;
50
std::array<OUString, 9>
maStrUnits
;
51
OUString
m_sPt
;
52
MapUnit
m_eMapUnit
;
53
bool
m_bVSFocus
;
54
bool
m_bCustom
;
55
tools::Long
m_nCustomWidth
;
56
Image
m_aIMGCus
;
57
Image
m_aIMGCusGray
;
58
59
std::unique_ptr<weld::MetricSpinButton>
m_xMFWidth
;
60
std::unique_ptr<LineWidthValueSet>
m_xVSWidth
;
61
std::unique_ptr<weld::CustomWeld>
m_xVSWidthWin
;
62
63
DECL_LINK
(VSSelectHdl,
ValueSet
*,
void
);
64
DECL_LINK
(MFModifyHdl,
weld::MetricSpinButton
&,
void
);
65
};
66
67
}
// end of namespace svx::sidebar
68
69
#endif
70
71
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Image
ValueSet
WeldToolbarPopup
WeldToolbarPopup::m_xTopLevel
std::unique_ptr< weld::Container > m_xTopLevel
svx::sidebar::LinePropertyPanelBase
Definition:
LinePropertyPanelBase.hxx:47
svx::sidebar::LineWidthPopup
Definition:
LineWidthPopup.hxx:37
svx::sidebar::LineWidthPopup::DECL_LINK
DECL_LINK(VSSelectHdl, ValueSet *, void)
svx::sidebar::LineWidthPopup::~LineWidthPopup
~LineWidthPopup()
Definition:
LineWidthPopup.cxx:93
svx::sidebar::LineWidthPopup::maStrUnits
std::array< OUString, 9 > maStrUnits
Definition:
LineWidthPopup.hxx:50
svx::sidebar::LineWidthPopup::m_aIMGCus
Image m_aIMGCus
Definition:
LineWidthPopup.hxx:56
svx::sidebar::LineWidthPopup::m_nCustomWidth
tools::Long m_nCustomWidth
Definition:
LineWidthPopup.hxx:55
svx::sidebar::LineWidthPopup::SetWidthSelect
void SetWidthSelect(tools::Long lValue, bool bValuable, MapUnit eMapUnit)
Definition:
LineWidthPopup.cxx:151
svx::sidebar::LineWidthPopup::LineWidthPopup
LineWidthPopup(weld::Widget *pParent, LinePropertyPanelBase &rParent)
Definition:
LineWidthPopup.cxx:34
svx::sidebar::LineWidthPopup::m_xVSWidthWin
std::unique_ptr< weld::CustomWeld > m_xVSWidthWin
Definition:
LineWidthPopup.hxx:61
svx::sidebar::LineWidthPopup::m_bCustom
bool m_bCustom
Definition:
LineWidthPopup.hxx:54
svx::sidebar::LineWidthPopup::m_sPt
OUString m_sPt
Definition:
LineWidthPopup.hxx:51
svx::sidebar::LineWidthPopup::getTopLevel
weld::Container * getTopLevel() const
Definition:
LineWidthPopup.hxx:44
svx::sidebar::LineWidthPopup::DECL_LINK
DECL_LINK(MFModifyHdl, weld::MetricSpinButton &, void)
svx::sidebar::LineWidthPopup::GrabFocus
virtual void GrabFocus() override
Definition:
LineWidthPopup.cxx:213
svx::sidebar::LineWidthPopup::m_aIMGCusGray
Image m_aIMGCusGray
Definition:
LineWidthPopup.hxx:57
svx::sidebar::LineWidthPopup::m_xMFWidth
std::unique_ptr< weld::MetricSpinButton > m_xMFWidth
Definition:
LineWidthPopup.hxx:59
svx::sidebar::LineWidthPopup::m_rParent
LinePropertyPanelBase & m_rParent
Definition:
LineWidthPopup.hxx:49
svx::sidebar::LineWidthPopup::m_bVSFocus
bool m_bVSFocus
Definition:
LineWidthPopup.hxx:53
svx::sidebar::LineWidthPopup::m_xVSWidth
std::unique_ptr< LineWidthValueSet > m_xVSWidth
Definition:
LineWidthPopup.hxx:60
svx::sidebar::LineWidthPopup::m_eMapUnit
MapUnit m_eMapUnit
Definition:
LineWidthPopup.hxx:52
weld::Container
weld::MetricSpinButton
weld::Widget
customweld.hxx
image.hxx
mapunit.hxx
MapUnit
MapUnit
svx::sidebar
tools::Long
long Long
toolbarmenu.hxx
weld.hxx
Generated on Sun Jul 30 2023 04:27:36 for LibreOffice Module svx (master) by
1.9.3