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
;
33 class XFillUseSlideBackgroundItem
;
35 class XFillGradientItem
;
38 class XFillBitmapItem
;
40 namespace svx::sidebar
{
42 class AreaTransparencyGradientControl
;
44 class AreaPropertyPanel
: public AreaPropertyPanelBase
47 static std::unique_ptr
<PanelLayout
> Create(
48 weld::Widget
* pParent
,
49 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
,
50 SfxBindings
* pBindings
);
52 SfxBindings
* GetBindings() { return mpBindings
;}
54 // constructor/destructor
56 weld::Widget
* pParent
,
57 const css::uno::Reference
<css::frame::XFrame
>& rxFrame
,
58 SfxBindings
* pBindings
);
60 virtual ~AreaPropertyPanel() override
;
62 virtual void setFillTransparence(const XFillTransparenceItem
& rItem
) override
;
63 virtual void setFillUseBackground(const XFillStyleItem
* pStyleItem
, const XFillUseSlideBackgroundItem
& rItem
) override
;
64 virtual void setFillFloatTransparence(const XFillFloatTransparenceItem
& rItem
) override
;
65 virtual void setFillStyle(const XFillStyleItem
& rItem
) override
;
66 virtual void setFillStyleAndColor(const XFillStyleItem
* pStyleItem
, const XFillColorItem
& aColorItem
) override
;
67 virtual void setFillStyleAndGradient(const XFillStyleItem
* pStyleItem
, const XFillGradientItem
& aGradientItem
) override
;
68 virtual void setFillStyleAndHatch(const XFillStyleItem
* pStyleItem
, const XFillHatchItem
& aHatchItem
) override
;
69 virtual void setFillStyleAndBitmap(const XFillStyleItem
* pStyleItem
, const XFillBitmapItem
& aHatchItem
) override
;
72 ::sfx2::sidebar::ControllerItem maStyleControl
;
73 ::sfx2::sidebar::ControllerItem maColorControl
;
74 ::sfx2::sidebar::ControllerItem maGradientControl
;
75 ::sfx2::sidebar::ControllerItem maHatchControl
;
76 ::sfx2::sidebar::ControllerItem maBitmapControl
;
77 ::sfx2::sidebar::ControllerItem maGradientListControl
;
78 ::sfx2::sidebar::ControllerItem maHatchListControl
;
79 ::sfx2::sidebar::ControllerItem maBitmapListControl
;
80 ::sfx2::sidebar::ControllerItem maPatternListControl
;
81 ::sfx2::sidebar::ControllerItem maFillTransparenceController
;
82 ::sfx2::sidebar::ControllerItem maFillFloatTransparenceController
;
83 ::sfx2::sidebar::ControllerItem maFillUseSlideBackgroundController
;
85 SfxBindings
* mpBindings
;
86 virtual void HandleContextChange(const vcl::EnumContext
& rContext
) override
;
91 } // end of namespace svx::sidebar
94 #endif // INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREAPROPERTYPANEL_HXX
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */