LibreOffice Module svx (master) 1
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
25#include <vcl/EnumContext.hxx>
26
27class XLineStyleItem;
28class XLineDashItem;
29class XLineStartItem;
30class XLineEndItem;
31class XLineEndList;
32class XDashList;
33class ListBox;
34class ToolBox;
35
36namespace svx::sidebar
37{
38
40 public sfx2::sidebar::IContextChangeReceiver,
42{
43public:
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
64
65 // constructor/destructor
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
73protected:
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
79private:
80 //ControllerItem
87
90};
91
92} // end of namespace svx::sidebar
93
94#endif
95
96/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sfx2::sidebar::ControllerItem maTransControl
virtual void setLineTransparency(const XLineTransparenceItem &rItem) override
sfx2::sidebar::ControllerItem maEdgeStyle
sfx2::sidebar::ControllerItem maCapStyle
sfx2::sidebar::ControllerItem maWidthControl
virtual void setLineJoint(const XLineJointItem *pItem) override
virtual void setLineCap(const XLineCapItem *pItem) override
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
virtual void setLineWidth(const XLineWidthItem &rItem) override
sfx2::sidebar::ControllerItem maStyleControl
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
virtual void HandleContextChange(const vcl::EnumContext &rContext) override
sfx2::sidebar::ControllerItem maDashControl
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
LinePropertyPanel(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, SfxBindings *pBindings)
SfxItemState