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_AREA_AREAPROPERTYPANEL_HXX
20 #define INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREAPROPERTYPANEL_HXX
22 #include <sfx2/sidebar/ControllerItem.hxx>
23 #include <svx/xfillit0.hxx>
24 #include <svx/xflclit.hxx>
25 #include <svx/xflgrit.hxx>
26 #include <svx/xflhtit.hxx>
27 #include <svx/xbtmpit.hxx>
29 #include <svx/sidebar/AreaPropertyPanelBase.hxx>
31 class XFillFloatTransparenceItem
;
32 class XFillTransparenceItem
;
34 class XFillGradientItem
;
37 class XFillBitmapItem
;
39 namespace svx::sidebar
{
41 class AreaTransparencyGradientControl
;
43 class AreaPropertyPanel
: public AreaPropertyPanelBase
46 static std::unique_ptr
<PanelLayout
> Create(
47 weld::Widget
* pParent
,
48 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
,
49 SfxBindings
* pBindings
);
51 SfxBindings
* GetBindings() { return mpBindings
;}
53 // constructor/destructor
55 weld::Widget
* pParent
,
56 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
,
57 SfxBindings
* pBindings
);
59 virtual ~AreaPropertyPanel() override
;
61 virtual void setFillTransparence(const XFillTransparenceItem
& rItem
) override
;
62 virtual void setFillFloatTransparence(const XFillFloatTransparenceItem
& rItem
) override
;
63 virtual void setFillStyle(const XFillStyleItem
& rItem
) override
;
64 virtual void setFillStyleAndColor(const XFillStyleItem
* pStyleItem
, const XFillColorItem
& aColorItem
) override
;
65 virtual void setFillStyleAndGradient(const XFillStyleItem
* pStyleItem
, const XFillGradientItem
& aGradientItem
) override
;
66 virtual void setFillStyleAndHatch(const XFillStyleItem
* pStyleItem
, const XFillHatchItem
& aHatchItem
) override
;
67 virtual void setFillStyleAndBitmap(const XFillStyleItem
* pStyleItem
, const XFillBitmapItem
& aHatchItem
) override
;
70 ::sfx2::sidebar::ControllerItem maStyleControl
;
71 ::sfx2::sidebar::ControllerItem maColorControl
;
72 ::sfx2::sidebar::ControllerItem maGradientControl
;
73 ::sfx2::sidebar::ControllerItem maHatchControl
;
74 ::sfx2::sidebar::ControllerItem maBitmapControl
;
75 ::sfx2::sidebar::ControllerItem maGradientListControl
;
76 ::sfx2::sidebar::ControllerItem maHatchListControl
;
77 ::sfx2::sidebar::ControllerItem maBitmapListControl
;
78 ::sfx2::sidebar::ControllerItem maPatternListControl
;
79 ::sfx2::sidebar::ControllerItem maFillTransparenceController
;
80 ::sfx2::sidebar::ControllerItem maFillFloatTransparenceController
;
82 SfxBindings
* mpBindings
;
86 } // end of namespace svx::sidebar
89 #endif // INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREAPROPERTYPANEL_HXX
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */