LibreOffice Module svx (master)  1
GraphicPropertyPanel.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  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_SVX_SOURCE_SIDEBAR_GRAPHIC_GRAPHICPROPERTYPANEL_HXX
20 #define INCLUDED_SVX_SOURCE_SIDEBAR_GRAPHIC_GRAPHICPROPERTYPANEL_HXX
21 
24 #include <vcl/weld.hxx>
25 
26 namespace svx::sidebar {
27 
29 : public PanelLayout,
31 {
32 public:
33  virtual ~GraphicPropertyPanel() override;
34 
35  static std::unique_ptr<PanelLayout> Create(
36  weld::Widget* pParent,
37  SfxBindings* pBindings);
38 
39  virtual void NotifyItemUpdate(
40  const sal_uInt16 nSId,
41  const SfxItemState eState,
42  const SfxPoolItem* pState) override;
43 
44  virtual void GetControlState(
45  const sal_uInt16 /*nSId*/,
46  boost::property_tree::ptree& /*rState*/) override {};
47 
49 
50  // constructor/destructor
52  weld::Widget* pParent,
53  SfxBindings* pBindings);
54 
55 private:
64 
66 
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;
72  std::unique_ptr<weld::MetricSpinButton> mxMtrRed;
73  std::unique_ptr<weld::MetricSpinButton> mxMtrGreen;
74  std::unique_ptr<weld::MetricSpinButton> mxMtrBlue;
75  std::unique_ptr<weld::SpinButton> mxMtrGamma;
76 
77  DECL_LINK( ModifyBrightnessHdl, weld::MetricSpinButton&, void );
78  DECL_LINK( ModifyContrastHdl, weld::MetricSpinButton&, void );
79  DECL_LINK( ModifyTransHdl, weld::MetricSpinButton&, void );
80  DECL_LINK( ClickColorModeHdl, weld::ComboBox&, void );
81 
82  void Initialize();
83 };
84 
85 } // end of namespace svx::sidebar
86 
87 #endif
88 
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::sfx2::sidebar::ControllerItem maRedControl
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
std::unique_ptr< weld::MetricSpinButton > mxMtrContrast
::sfx2::sidebar::ControllerItem maContrastControl
::sfx2::sidebar::ControllerItem maModeControl
::sfx2::sidebar::ControllerItem maTransparenceControl
std::unique_ptr< weld::MetricSpinButton > mxMtrBrightness
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
GraphicPropertyPanel(weld::Widget *pParent, SfxBindings *pBindings)
::sfx2::sidebar::ControllerItem maGreenControl
std::unique_ptr< weld::MetricSpinButton > mxMtrTrans
::sfx2::sidebar::ControllerItem maBrightControl
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
std::unique_ptr< weld::ComboBox > mxLBColorMode
std::unique_ptr< weld::SpinButton > mxMtrGamma
DECL_LINK(ModifyBrightnessHdl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::MetricSpinButton > mxMtrGreen
SfxItemState
std::unique_ptr< weld::MetricSpinButton > mxMtrRed
::sfx2::sidebar::ControllerItem maGammaControl
::sfx2::sidebar::ControllerItem maBlueControl
std::unique_ptr< weld::MetricSpinButton > mxMtrBlue