LibreOffice Module svx (master) 1
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>
17#include <functional>
18
19namespace model
20{
21class Theme;
22}
23
24class ColorListBox;
25
26namespace svx
27{
29{
30private:
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
44public:
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: */
std::unique_ptr< svx::ThemeColorValueSet > mxValueSetThemeColors
Definition: ThemeDialog.hxx:35
DECL_LINK(DoubleClickValueSetHdl, ValueSet *, void)
virtual ~ThemeDialog() override
std::shared_ptr< model::ColorSet > mpCurrentColorSet
Definition: ThemeDialog.hxx:39
std::vector< model::ColorSet > maColorSets
Definition: ThemeDialog.hxx:33
std::shared_ptr< model::ColorSet > const & getCurrentColorSet()
Definition: ThemeDialog.hxx:52
weld::Window * mpWindow
Definition: ThemeDialog.hxx:31
DECL_LINK(SelectItem, ValueSet *, void)
model::Theme * mpTheme
Definition: ThemeDialog.hxx:32
std::unique_ptr< weld::Button > mxAdd
Definition: ThemeDialog.hxx:37
std::unique_ptr< weld::CustomWeld > mxValueSetThemeColorsWindow
Definition: ThemeDialog.hxx:36
DECL_LINK(ButtonClicked, weld::Button &, void)
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28