LibreOffice Module svx (master)
1
svx
source
sidebar
graphic
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
22
#include <
sfx2/sidebar/ControllerItem.hxx
>
23
#include <
sfx2/sidebar/PanelLayout.hxx
>
24
#include <
vcl/weld.hxx
>
25
26
namespace
svx::sidebar
{
27
28
class
GraphicPropertyPanel
29
:
public
PanelLayout
,
30
public
::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
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
48
SfxBindings
*
GetBindings
() {
return
mpBindings
;}
49
50
// constructor/destructor
51
GraphicPropertyPanel
(
52
weld::Widget
* pParent,
53
SfxBindings
* pBindings);
54
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
;
64
65
SfxBindings
*
mpBindings
;
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: */
ControllerItem.hxx
PanelLayout.hxx
PanelLayout
SfxBindings
SfxPoolItem
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sfx2::sidebar::ControllerItem
svx::sidebar::GraphicPropertyPanel
Definition:
GraphicPropertyPanel.hxx:31
svx::sidebar::GraphicPropertyPanel::DECL_LINK
DECL_LINK(ClickColorModeHdl, weld::ComboBox &, void)
svx::sidebar::GraphicPropertyPanel::GraphicPropertyPanel
GraphicPropertyPanel(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
GraphicPropertyPanel.cxx:38
svx::sidebar::GraphicPropertyPanel::maModeControl
::sfx2::sidebar::ControllerItem maModeControl
Definition:
GraphicPropertyPanel.hxx:63
svx::sidebar::GraphicPropertyPanel::GetBindings
SfxBindings * GetBindings()
Definition:
GraphicPropertyPanel.hxx:48
svx::sidebar::GraphicPropertyPanel::DECL_LINK
DECL_LINK(ModifyBrightnessHdl, weld::MetricSpinButton &, void)
svx::sidebar::GraphicPropertyPanel::mxMtrBrightness
std::unique_ptr< weld::MetricSpinButton > mxMtrBrightness
Definition:
GraphicPropertyPanel.hxx:68
svx::sidebar::GraphicPropertyPanel::mxMtrContrast
std::unique_ptr< weld::MetricSpinButton > mxMtrContrast
Definition:
GraphicPropertyPanel.hxx:69
svx::sidebar::GraphicPropertyPanel::maGammaControl
::sfx2::sidebar::ControllerItem maGammaControl
Definition:
GraphicPropertyPanel.hxx:62
svx::sidebar::GraphicPropertyPanel::maContrastControl
::sfx2::sidebar::ControllerItem maContrastControl
Definition:
GraphicPropertyPanel.hxx:57
svx::sidebar::GraphicPropertyPanel::mxMtrTrans
std::unique_ptr< weld::MetricSpinButton > mxMtrTrans
Definition:
GraphicPropertyPanel.hxx:71
svx::sidebar::GraphicPropertyPanel::maGreenControl
::sfx2::sidebar::ControllerItem maGreenControl
Definition:
GraphicPropertyPanel.hxx:60
svx::sidebar::GraphicPropertyPanel::maBrightControl
::sfx2::sidebar::ControllerItem maBrightControl
Definition:
GraphicPropertyPanel.hxx:56
svx::sidebar::GraphicPropertyPanel::maRedControl
::sfx2::sidebar::ControllerItem maRedControl
Definition:
GraphicPropertyPanel.hxx:59
svx::sidebar::GraphicPropertyPanel::mpBindings
SfxBindings * mpBindings
Definition:
GraphicPropertyPanel.hxx:65
svx::sidebar::GraphicPropertyPanel::mxLBColorMode
std::unique_ptr< weld::ComboBox > mxLBColorMode
Definition:
GraphicPropertyPanel.hxx:70
svx::sidebar::GraphicPropertyPanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
GraphicPropertyPanel.cxx:125
svx::sidebar::GraphicPropertyPanel::Initialize
void Initialize()
Definition:
GraphicPropertyPanel.cxx:77
svx::sidebar::GraphicPropertyPanel::maBlueControl
::sfx2::sidebar::ControllerItem maBlueControl
Definition:
GraphicPropertyPanel.hxx:61
svx::sidebar::GraphicPropertyPanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
GraphicPropertyPanel.cxx:137
svx::sidebar::GraphicPropertyPanel::DECL_LINK
DECL_LINK(ModifyContrastHdl, weld::MetricSpinButton &, void)
svx::sidebar::GraphicPropertyPanel::~GraphicPropertyPanel
virtual ~GraphicPropertyPanel() override
Definition:
GraphicPropertyPanel.cxx:60
svx::sidebar::GraphicPropertyPanel::DECL_LINK
DECL_LINK(ModifyTransHdl, weld::MetricSpinButton &, void)
svx::sidebar::GraphicPropertyPanel::maTransparenceControl
::sfx2::sidebar::ControllerItem maTransparenceControl
Definition:
GraphicPropertyPanel.hxx:58
svx::sidebar::GraphicPropertyPanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
GraphicPropertyPanel.hxx:44
weld::ComboBox
weld::MetricSpinButton
weld::Widget
svx::sidebar
SfxItemState
SfxItemState
weld.hxx
Generated on Sun Jul 30 2023 04:28:15 for LibreOffice Module svx (master) by
1.9.3