vcl: allow for overriding the default PDF rendering resolution
[LibreOffice.git] / chart2 / source / controller / sidebar / ChartAxisPanel.hxx
blob1c28148f12c36143a2d439aaa0a9b24eedb94f5f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 */
11 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_SIDEBAR_CHARTAXISPANEL_HXX
12 #define INCLUDED_CHART2_SOURCE_CONTROLLER_SIDEBAR_CHARTAXISPANEL_HXX
14 #include <sfx2/sidebar/ControllerItem.hxx>
15 #include <sfx2/sidebar/IContextChangeReceiver.hxx>
16 #include <sfx2/sidebar/SidebarModelUpdate.hxx>
17 #include <svx/sidebar/PanelLayout.hxx>
18 #include <vcl/layout.hxx>
20 #include "ChartSidebarModifyListener.hxx"
21 #include "ChartSidebarSelectionListener.hxx"
23 namespace com { namespace sun { namespace star { namespace util { class XModifyListener; } } } }
24 namespace com { namespace sun { namespace star { namespace view { class XSelectionChangeListener; } } } }
26 class Edit;
27 class ListBox;
28 class MetricField;
30 namespace chart {
32 class ChartController;
34 namespace sidebar {
36 class ChartAxisPanel : public PanelLayout,
37 public ::sfx2::sidebar::IContextChangeReceiver,
38 public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface,
39 public sfx2::sidebar::SidebarModelUpdate,
40 public ChartSidebarModifyListenerParent,
41 public ChartSidebarSelectionListenerParent
43 public:
44 static VclPtr<vcl::Window> Create(
45 vcl::Window* pParent,
46 const css::uno::Reference<css::frame::XFrame>& rxFrame,
47 ChartController* pController);
49 virtual void DataChanged(
50 const DataChangedEvent& rEvent) override;
52 virtual void HandleContextChange(
53 const vcl::EnumContext& rContext) override;
55 virtual void NotifyItemUpdate(
56 const sal_uInt16 nSId,
57 const SfxItemState eState,
58 const SfxPoolItem* pState) override;
60 virtual void GetControlState(
61 const sal_uInt16 /*nSId*/,
62 boost::property_tree::ptree& /*rState*/) override {};
64 // constructor/destructor
65 ChartAxisPanel(
66 vcl::Window* pParent,
67 const css::uno::Reference<css::frame::XFrame>& rxFrame,
68 ChartController* pController);
69 virtual ~ChartAxisPanel() override;
70 virtual void dispose() override;
72 virtual void updateData() override;
73 virtual void modelInvalid() override;
75 virtual void selectionChanged(bool bCorrectType) override;
77 virtual void updateModel(css::uno::Reference<css::frame::XModel> xModel) override;
79 private:
80 //ui controls
81 VclPtr<CheckBox> mpCBShowLabel;
82 VclPtr<CheckBox> mpCBReverse;
84 VclPtr<ListBox> mpLBLabelPos;
85 VclPtr<VclGrid> mpGridLabel;
87 VclPtr<MetricField> mpNFRotation;
89 css::uno::Reference<css::frame::XModel> mxModel;
90 css::uno::Reference<css::util::XModifyListener> mxModifyListener;
91 css::uno::Reference<css::view::XSelectionChangeListener> mxSelectionListener;
93 bool mbModelValid;
95 void Initialize();
97 DECL_LINK(CheckBoxHdl, Button*, void);
98 DECL_LINK(ListBoxHdl, ListBox&, void);
99 DECL_LINK(TextRotationHdl, Edit&, void);
102 } } // end of namespace ::chart::sidebar
104 #endif
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */