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
26namespace svx::sidebar {
27
29: public PanelLayout,
31{
32public:
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
55private:
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
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 );
77
78 void Initialize();
79};
80
81} // end of namespace svx::sidebar
82
83#endif
84
85/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
DECL_LINK(ClickColorModeHdl, weld::ComboBox &, void)
GraphicPropertyPanel(weld::Widget *pParent, SfxBindings *pBindings)
::sfx2::sidebar::ControllerItem maModeControl
DECL_LINK(ModifyBrightnessHdl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::MetricSpinButton > mxMtrBrightness
std::unique_ptr< weld::MetricSpinButton > mxMtrContrast
::sfx2::sidebar::ControllerItem maGammaControl
::sfx2::sidebar::ControllerItem maContrastControl
std::unique_ptr< weld::MetricSpinButton > mxMtrTrans
::sfx2::sidebar::ControllerItem maGreenControl
::sfx2::sidebar::ControllerItem maBrightControl
::sfx2::sidebar::ControllerItem maRedControl
std::unique_ptr< weld::ComboBox > mxLBColorMode
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
::sfx2::sidebar::ControllerItem maBlueControl
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
DECL_LINK(ModifyContrastHdl, weld::MetricSpinButton &, void)
DECL_LINK(ModifyTransHdl, weld::MetricSpinButton &, void)
::sfx2::sidebar::ControllerItem maTransparenceControl
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
SfxItemState