Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / svx / source / sidebar / graphic / GraphicPropertyPanel.hxx
blob86923942935d67cdfa0dc9ff8599804ad11a6f9d
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 * 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_GRAPHIC_GRAPHICPROPERTYPANEL_HXX
20 #define INCLUDED_SVX_SOURCE_SIDEBAR_GRAPHIC_GRAPHICPROPERTYPANEL_HXX
22 #include <sfx2/sidebar/ControllerItem.hxx>
23 #include <sfx2/sidebar/PanelLayout.hxx>
24 #include <vcl/weld.hxx>
26 namespace svx::sidebar {
28 class GraphicPropertyPanel
29 : public PanelLayout,
30 public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
32 public:
33 virtual ~GraphicPropertyPanel() override;
35 static std::unique_ptr<PanelLayout> Create(
36 weld::Widget* pParent,
37 SfxBindings* pBindings);
39 virtual void NotifyItemUpdate(
40 const sal_uInt16 nSId,
41 const SfxItemState eState,
42 const SfxPoolItem* pState) override;
44 virtual void GetControlState(
45 const sal_uInt16 /*nSId*/,
46 boost::property_tree::ptree& /*rState*/) override {};
48 SfxBindings* GetBindings() { return mpBindings;}
50 // constructor/destructor
51 GraphicPropertyPanel(
52 weld::Widget* pParent,
53 SfxBindings* pBindings);
55 private:
56 ::sfx2::sidebar::ControllerItem maBrightControl;
57 ::sfx2::sidebar::ControllerItem maContrastControl;
58 ::sfx2::sidebar::ControllerItem maTransparenceControl;
59 ::sfx2::sidebar::ControllerItem maRedControl;
60 ::sfx2::sidebar::ControllerItem maGreenControl;
61 ::sfx2::sidebar::ControllerItem maBlueControl;
62 ::sfx2::sidebar::ControllerItem maGammaControl;
63 ::sfx2::sidebar::ControllerItem maModeControl;
65 SfxBindings* mpBindings;
67 //ui controls
68 std::unique_ptr<weld::MetricSpinButton> mxMtrBrightness;
69 std::unique_ptr<weld::MetricSpinButton> mxMtrContrast;
70 std::unique_ptr<weld::ComboBox> mxLBColorMode;
71 std::unique_ptr<weld::MetricSpinButton> mxMtrTrans;
73 DECL_LINK( ModifyBrightnessHdl, weld::MetricSpinButton&, void );
74 DECL_LINK( ModifyContrastHdl, weld::MetricSpinButton&, void );
75 DECL_LINK( ModifyTransHdl, weld::MetricSpinButton&, void );
76 DECL_LINK( ClickColorModeHdl, weld::ComboBox&, void );
78 void Initialize();
81 } // end of namespace svx::sidebar
83 #endif
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */