LibreOffice Module chart2 (master) 1
ChartAreaPanel.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
10#pragma once
11
13#include <svx/xfillit0.hxx>
14#include <svx/xflgrit.hxx>
15#include <svx/xflhtit.hxx>
16#include <svx/xbtmpit.hxx>
17
19
22#include "ChartColorWrapper.hxx"
23
26class XFillColorItem;
27
28namespace chart {
29
30class ChartController;
31
32namespace sidebar {
33
35 public sfx2::sidebar::SidebarModelUpdate,
38{
39public:
40 static std::unique_ptr<PanelLayout> Create(
41 weld::Widget* pParent,
42 const css::uno::Reference<css::frame::XFrame>& rxFrame,
43 ChartController* pController);
44
45 // constructor/destructor
47 weld::Widget* pParent,
48 const css::uno::Reference<css::frame::XFrame>& rxFrame,
49 ChartController* pController);
50
51 virtual ~ChartAreaPanel() override;
52
53 virtual void setFillTransparence(const XFillTransparenceItem& rItem) override;
54 virtual void setFillFloatTransparence(const XFillFloatTransparenceItem& rItem) override;
55 virtual void setFillStyle(const XFillStyleItem& rItem) override;
56 virtual void setFillStyleAndColor(const XFillStyleItem* pStyleItem, const XFillColorItem& rColorItem) override;
57 virtual void setFillStyleAndGradient(const XFillStyleItem* pStyleItem, const XFillGradientItem& rGradientItem) override;
58 virtual void setFillStyleAndHatch(const XFillStyleItem* pStyleItem, const XFillHatchItem& rHatchItem) override;
59 virtual void setFillStyleAndBitmap(const XFillStyleItem* pStyleItem, const XFillBitmapItem& rBitmapItem) override;
60 virtual void setFillUseBackground(const XFillStyleItem* pStyleItem, const XFillUseSlideBackgroundItem& rItem) override;
61
62 virtual void updateData() override;
63 virtual void modelInvalid() override;
64
65 virtual void selectionChanged(bool bCorrectType) override;
66
67 virtual void updateModel(css::uno::Reference<css::frame::XModel> xModel) override;
68
69private:
70
72 css::uno::Reference<css::util::XModifyListener> mxListener;
74
75 void Initialize();
77
80
82};
83
84} } // end of namespace svx::sidebar
85
86/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::util::XModifyListener > mxListener
virtual void updateData() override
rtl::Reference< ChartSidebarSelectionListener > mxSelectionListener
rtl::Reference<::chart::ChartModel > mxModel
virtual void modelInvalid() override
void doUpdateModel(rtl::Reference<::chart::ChartModel > xModel)
virtual void setFillStyle(const XFillStyleItem &rItem) override
virtual void setFillStyleAndColor(const XFillStyleItem *pStyleItem, const XFillColorItem &rColorItem) override
ChartAreaPanel(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, ChartController *pController)
virtual void setFillUseBackground(const XFillStyleItem *pStyleItem, const XFillUseSlideBackgroundItem &rItem) override
virtual void setFillStyleAndHatch(const XFillStyleItem *pStyleItem, const XFillHatchItem &rHatchItem) override
virtual void setFillFloatTransparence(const XFillFloatTransparenceItem &rItem) override
virtual ~ChartAreaPanel() override
virtual void setFillTransparence(const XFillTransparenceItem &rItem) override
virtual void selectionChanged(bool bCorrectType) override
ChartColorWrapper maFillColorWrapper
virtual void setFillStyleAndGradient(const XFillStyleItem *pStyleItem, const XFillGradientItem &rGradientItem) override
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame, ChartController *pController)
virtual void updateModel(css::uno::Reference< css::frame::XModel > xModel) override
virtual void setFillStyleAndBitmap(const XFillStyleItem *pStyleItem, const XFillBitmapItem &rBitmapItem) override
Reference< XModel > xModel