LibreOffice Module sw (master)
1
sw
source
uibase
sidebar
ThemePanel.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
*/
10
11
#pragma once
12
13
#include <
sfx2/sidebar/PanelLayout.hxx
>
14
#include <
sfx2/sidebar/ControllerItem.hxx
>
15
#include <
svtools/valueset.hxx
>
16
#include <
svx/ColorSets.hxx
>
17
18
namespace
svx
{
class
ThemeColorValueSet; }
19
20
namespace
sw::sidebar
21
{
22
23
class
ThemePanel
:
public
PanelLayout
,
24
public
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
25
{
26
public
:
27
static
std::unique_ptr<PanelLayout>
Create
(
weld::Widget
* pParent);
28
29
ThemePanel
(
weld::Widget
* pParent);
30
virtual
~ThemePanel
()
override
;
31
32
virtual
void
NotifyItemUpdate
(
const
sal_uInt16 nSId,
33
const
SfxItemState
eState,
34
const
SfxPoolItem
* pState)
override
;
35
36
virtual
void
GetControlState
(
37
const
sal_uInt16
/*nSId*/
,
38
boost::property_tree::ptree&
/*rState*/
)
override
{};
39
40
private
:
41
std::unique_ptr<weld::TreeView>
mxListBoxFonts
;
42
std::unique_ptr<svx::ThemeColorValueSet>
mxValueSetColors
;
43
std::unique_ptr<weld::CustomWeld>
mxValueSetColorsWin
;
44
std::unique_ptr<weld::Button>
mxApplyButton
;
45
46
DECL_LINK
(ClickHdl,
weld::Button
&,
void
);
47
DECL_LINK
(
DoubleClickHdl
,
weld::TreeView
&,
bool
);
48
DECL_LINK
(DoubleClickValueSetHdl,
ValueSet
*,
void
);
49
void
DoubleClickHdl
();
50
51
};
52
53
}
// end of namespace sw::sidebar
54
55
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ColorSets.hxx
ControllerItem.hxx
PanelLayout.hxx
PanelLayout
SfxPoolItem
ValueSet
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sw::sidebar::ThemePanel
Definition:
ThemePanel.hxx:25
sw::sidebar::ThemePanel::mxListBoxFonts
std::unique_ptr< weld::TreeView > mxListBoxFonts
Definition:
ThemePanel.hxx:38
sw::sidebar::ThemePanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
ThemePanel.hxx:36
sw::sidebar::ThemePanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
ThemePanel.cxx:103
sw::sidebar::ThemePanel::DoubleClickHdl
void DoubleClickHdl()
Definition:
ThemePanel.cxx:85
sw::sidebar::ThemePanel::~ThemePanel
virtual ~ThemePanel() override
Definition:
ThemePanel.cxx:62
sw::sidebar::ThemePanel::DECL_LINK
DECL_LINK(ClickHdl, weld::Button &, void)
sw::sidebar::ThemePanel::mxValueSetColors
std::unique_ptr< svx::ThemeColorValueSet > mxValueSetColors
Definition:
ThemePanel.hxx:42
sw::sidebar::ThemePanel::DECL_LINK
DECL_LINK(DoubleClickValueSetHdl, ValueSet *, void)
sw::sidebar::ThemePanel::mxValueSetColorsWin
std::unique_ptr< weld::CustomWeld > mxValueSetColorsWin
Definition:
ThemePanel.hxx:43
sw::sidebar::ThemePanel::mxApplyButton
std::unique_ptr< weld::Button > mxApplyButton
Definition:
ThemePanel.hxx:44
sw::sidebar::ThemePanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent)
Definition:
ThemePanel.cxx:29
sw::sidebar::ThemePanel::ThemePanel
ThemePanel(weld::Widget *pParent)
Definition:
ThemePanel.cxx:37
sw::sidebar::ThemePanel::DECL_LINK
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
weld::Button
weld::TreeView
weld::Widget
svx
sw::sidebar
Definition:
A11yCheckIssuesPanel.cxx:30
SfxItemState
SfxItemState
valueset.hxx
Generated on Sun Jul 30 2023 04:30:03 for LibreOffice Module sw (master) by
1.9.3