1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEPROPERTYPANEL_HXX
20 #define INCLUDED_SVX_SOURCE_SIDEBAR_LINE_LINEPROPERTYPANEL_HXX
22 #include <sfx2/sidebar/ControllerItem.hxx>
23 #include <sfx2/sidebar/IContextChangeReceiver.hxx>
24 #include <svx/sidebar/LinePropertyPanelBase.hxx>
25 #include <vcl/EnumContext.hxx>
36 namespace svx::sidebar
39 class LinePropertyPanel
: public LinePropertyPanelBase
,
40 public sfx2::sidebar::IContextChangeReceiver
,
41 public sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
44 virtual ~LinePropertyPanel() override
;
46 static std::unique_ptr
<PanelLayout
> Create(
47 weld::Widget
* pParent
,
48 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
,
49 SfxBindings
* pBindings
);
51 virtual void HandleContextChange(
52 const vcl::EnumContext
& rContext
) override
;
54 virtual void NotifyItemUpdate(
55 const sal_uInt16 nSId
,
56 const SfxItemState eState
,
57 const SfxPoolItem
* pState
) override
;
59 virtual void GetControlState(
60 const sal_uInt16
/*nSId*/,
61 boost::property_tree::ptree
& /*rState*/) override
{};
63 SfxBindings
* GetBindings() { return mpBindings
;}
65 // constructor/destructor
67 weld::Widget
* pParent
,
68 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
,
69 SfxBindings
* pBindings
);
71 virtual void setLineWidth(const XLineWidthItem
& rItem
) override
;
75 virtual void setLineTransparency(const XLineTransparenceItem
& rItem
) override
;
76 virtual void setLineJoint(const XLineJointItem
* pItem
) override
;
77 virtual void setLineCap(const XLineCapItem
* pItem
) override
;
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
;
88 SfxBindings
* mpBindings
;
89 vcl::EnumContext maContext
;
92 } // end of namespace svx::sidebar
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */