LibreOffice Module svx (master)
1
include
svx
dialog
ThemeDialog.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
#pragma once
11
12
#include <
svx/svxdllapi.h
>
13
#include <
vcl/weld.hxx
>
14
#include <
svx/svdpage.hxx
>
15
#include <
svx/theme/IThemeColorChanger.hxx
>
16
#include <
svx/dialog/ThemeColorValueSet.hxx
>
17
#include <functional>
18
19
namespace
model
20
{
21
class
Theme
;
22
}
23
24
class
ColorListBox
;
25
26
namespace
svx
27
{
28
class
SVX_DLLPUBLIC
ThemeDialog
final :
public
weld::GenericDialogController
29
{
30
private
:
31
weld::Window
*
mpWindow
;
32
model::Theme
*
mpTheme
;
33
std::vector<model::ColorSet>
maColorSets
;
34
35
std::unique_ptr<svx::ThemeColorValueSet>
mxValueSetThemeColors
;
36
std::unique_ptr<weld::CustomWeld>
mxValueSetThemeColorsWindow
;
37
std::unique_ptr<weld::Button>
mxAdd
;
38
39
std::shared_ptr<model::ColorSet>
mpCurrentColorSet
;
40
41
void
runThemeColorEditDialog();
42
void
initColorSets();
43
44
public
:
45
ThemeDialog
(
weld::Window
* pParent,
model::Theme
* pTheme);
46
virtual
~ThemeDialog
()
override
;
47
48
DECL_LINK
(DoubleClickValueSetHdl,
ValueSet
*,
void
);
49
DECL_LINK
(SelectItem,
ValueSet
*,
void
);
50
DECL_LINK
(ButtonClicked,
weld::Button
&,
void
);
51
52
std::shared_ptr<model::ColorSet>
const
&
getCurrentColorSet
() {
return
mpCurrentColorSet; }
53
};
54
55
}
// end svx namespace
56
57
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
IThemeColorChanger.hxx
ThemeColorValueSet.hxx
ColorListBox
Definition:
colorbox.hxx:30
ValueSet
model::Theme
svx::ThemeDialog
Definition:
ThemeDialog.hxx:29
svx::ThemeDialog::mxValueSetThemeColors
std::unique_ptr< svx::ThemeColorValueSet > mxValueSetThemeColors
Definition:
ThemeDialog.hxx:35
svx::ThemeDialog::DECL_LINK
DECL_LINK(DoubleClickValueSetHdl, ValueSet *, void)
svx::ThemeDialog::~ThemeDialog
virtual ~ThemeDialog() override
svx::ThemeDialog::mpCurrentColorSet
std::shared_ptr< model::ColorSet > mpCurrentColorSet
Definition:
ThemeDialog.hxx:39
svx::ThemeDialog::maColorSets
std::vector< model::ColorSet > maColorSets
Definition:
ThemeDialog.hxx:33
svx::ThemeDialog::getCurrentColorSet
std::shared_ptr< model::ColorSet > const & getCurrentColorSet()
Definition:
ThemeDialog.hxx:52
svx::ThemeDialog::mpWindow
weld::Window * mpWindow
Definition:
ThemeDialog.hxx:31
svx::ThemeDialog::DECL_LINK
DECL_LINK(SelectItem, ValueSet *, void)
svx::ThemeDialog::mpTheme
model::Theme * mpTheme
Definition:
ThemeDialog.hxx:32
svx::ThemeDialog::mxAdd
std::unique_ptr< weld::Button > mxAdd
Definition:
ThemeDialog.hxx:37
svx::ThemeDialog::mxValueSetThemeColorsWindow
std::unique_ptr< weld::CustomWeld > mxValueSetThemeColorsWindow
Definition:
ThemeDialog.hxx:36
svx::ThemeDialog::DECL_LINK
DECL_LINK(ButtonClicked, weld::Button &, void)
weld::Button
weld::GenericDialogController
weld::Window
model
svx
ResourceType::Theme
@ Theme
svdpage.hxx
svxdllapi.h
SVX_DLLPUBLIC
#define SVX_DLLPUBLIC
Definition:
svxdllapi.h:28
weld.hxx
Generated on Sun Jul 30 2023 04:27:32 for LibreOffice Module svx (master) by
1.9.3