LibreOffice Module svx (master)
1
svx
source
sidebar
line
LinePropertyPanel.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_LINEPROPERTYPANEL_HXX
20
#define INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEPROPERTYPANEL_HXX
21
22
#include <
sfx2/sidebar/ControllerItem.hxx
>
23
#include <
sfx2/sidebar/IContextChangeReceiver.hxx
>
24
#include <
svx/sidebar/LinePropertyPanelBase.hxx
>
25
#include <
vcl/EnumContext.hxx
>
26
27
class
XLineStyleItem
;
28
class
XLineDashItem
;
29
class
XLineStartItem
;
30
class
XLineEndItem
;
31
class
XLineEndList
;
32
class
XDashList
;
33
class
ListBox
;
34
class
ToolBox
;
35
36
namespace
svx::sidebar
37
{
38
39
class
LinePropertyPanel
:
public
LinePropertyPanelBase
,
40
public
sfx2::sidebar::IContextChangeReceiver,
41
public
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
42
{
43
public
:
44
virtual
~LinePropertyPanel
()
override
;
45
46
static
std::unique_ptr<PanelLayout>
Create
(
47
weld::Widget
* pParent,
48
const
css::uno::Reference<css::frame::XFrame>& rxFrame,
49
SfxBindings
* pBindings);
50
51
virtual
void
HandleContextChange
(
52
const
vcl::EnumContext
& rContext)
override
;
53
54
virtual
void
NotifyItemUpdate
(
55
const
sal_uInt16 nSId,
56
const
SfxItemState
eState,
57
const
SfxPoolItem
* pState)
override
;
58
59
virtual
void
GetControlState
(
60
const
sal_uInt16
/*nSId*/
,
61
boost::property_tree::ptree&
/*rState*/
)
override
{};
62
63
SfxBindings
*
GetBindings
() {
return
mpBindings
;}
64
65
// constructor/destructor
66
LinePropertyPanel
(
67
weld::Widget
* pParent,
68
const
css::uno::Reference<css::frame::XFrame>& rxFrame,
69
SfxBindings
* pBindings);
70
71
virtual
void
setLineWidth
(
const
XLineWidthItem
& rItem)
override
;
72
73
protected
:
74
75
virtual
void
setLineTransparency
(
const
XLineTransparenceItem
& rItem)
override
;
76
virtual
void
setLineJoint
(
const
XLineJointItem
* pItem)
override
;
77
virtual
void
setLineCap
(
const
XLineCapItem
* pItem)
override
;
78
79
private
:
80
//ControllerItem
81
sfx2::sidebar::ControllerItem
maStyleControl
;
82
sfx2::sidebar::ControllerItem
maDashControl
;
83
sfx2::sidebar::ControllerItem
maWidthControl
;
84
sfx2::sidebar::ControllerItem
maTransControl
;
85
sfx2::sidebar::ControllerItem
maEdgeStyle
;
86
sfx2::sidebar::ControllerItem
maCapStyle
;
87
88
SfxBindings
*
mpBindings
;
89
vcl::EnumContext
maContext
;
90
};
91
92
}
// end of namespace svx::sidebar
93
94
#endif
95
96
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ControllerItem.hxx
EnumContext.hxx
IContextChangeReceiver.hxx
LinePropertyPanelBase.hxx
ListBox
SfxBindings
SfxPoolItem
XDashList
Definition:
xtable.hxx:270
XLineCapItem
Definition:
xlncapit.hxx:31
XLineDashItem
Definition:
xlndsit.hxx:34
XLineEndItem
Definition:
xlnedit.hxx:32
XLineEndList
Definition:
xtable.hxx:256
XLineJointItem
Definition:
xlinjoit.hxx:31
XLineStartItem
Definition:
xlnstit.hxx:32
XLineStyleItem
Definition:
xlineit0.hxx:30
XLineTransparenceItem
Definition:
xlntrit.hxx:33
XLineWidthItem
Definition:
xlnwtit.hxx:29
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sfx2::sidebar::ControllerItem
svx::sidebar::LinePropertyPanelBase
Definition:
LinePropertyPanelBase.hxx:47
svx::sidebar::LinePropertyPanel
Definition:
LinePropertyPanel.hxx:42
svx::sidebar::LinePropertyPanel::maTransControl
sfx2::sidebar::ControllerItem maTransControl
Definition:
LinePropertyPanel.hxx:84
svx::sidebar::LinePropertyPanel::~LinePropertyPanel
virtual ~LinePropertyPanel() override
Definition:
LinePropertyPanel.cxx:51
svx::sidebar::LinePropertyPanel::setLineTransparency
virtual void setLineTransparency(const XLineTransparenceItem &rItem) override
Definition:
LinePropertyPanel.cxx:151
svx::sidebar::LinePropertyPanel::maEdgeStyle
sfx2::sidebar::ControllerItem maEdgeStyle
Definition:
LinePropertyPanel.hxx:85
svx::sidebar::LinePropertyPanel::maCapStyle
sfx2::sidebar::ControllerItem maCapStyle
Definition:
LinePropertyPanel.hxx:86
svx::sidebar::LinePropertyPanel::maWidthControl
sfx2::sidebar::ControllerItem maWidthControl
Definition:
LinePropertyPanel.hxx:83
svx::sidebar::LinePropertyPanel::setLineJoint
virtual void setLineJoint(const XLineJointItem *pItem) override
Definition:
LinePropertyPanel.cxx:139
svx::sidebar::LinePropertyPanel::setLineCap
virtual void setLineCap(const XLineCapItem *pItem) override
Definition:
LinePropertyPanel.cxx:145
svx::sidebar::LinePropertyPanel::maContext
vcl::EnumContext maContext
Definition:
LinePropertyPanel.hxx:89
svx::sidebar::LinePropertyPanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
Definition:
LinePropertyPanel.cxx:61
svx::sidebar::LinePropertyPanel::setLineWidth
virtual void setLineWidth(const XLineWidthItem &rItem) override
Definition:
LinePropertyPanel.cxx:157
svx::sidebar::LinePropertyPanel::maStyleControl
sfx2::sidebar::ControllerItem maStyleControl
Definition:
LinePropertyPanel.hxx:81
svx::sidebar::LinePropertyPanel::GetBindings
SfxBindings * GetBindings()
Definition:
LinePropertyPanel.hxx:63
svx::sidebar::LinePropertyPanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
LinePropertyPanel.cxx:76
svx::sidebar::LinePropertyPanel::mpBindings
SfxBindings * mpBindings
Definition:
LinePropertyPanel.hxx:88
svx::sidebar::LinePropertyPanel::HandleContextChange
virtual void HandleContextChange(const vcl::EnumContext &rContext) override
Definition:
LinePropertyPanel.cxx:110
svx::sidebar::LinePropertyPanel::maDashControl
sfx2::sidebar::ControllerItem maDashControl
Definition:
LinePropertyPanel.hxx:82
svx::sidebar::LinePropertyPanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
LinePropertyPanel.hxx:59
svx::sidebar::LinePropertyPanel::LinePropertyPanel
LinePropertyPanel(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
Definition:
LinePropertyPanel.cxx:35
vcl::EnumContext
weld::Widget
svx::sidebar
SfxItemState
SfxItemState
ToolBox
Generated on Sun Jul 30 2023 04:28:15 for LibreOffice Module svx (master) by
1.9.3