1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
12 #include <svx/svxdllapi.h>
13 #include <vcl/weld.hxx>
14 #include <svx/svdpage.hxx>
15 #include <svx/dialog/ThemeColorEditDialog.hxx>
16 #include <svx/dialog/ThemeColorValueSet.hxx>
25 class SVX_DLLPUBLIC ThemeDialog final
: public weld::GenericDialogController
28 weld::Window
* mpWindow
;
29 model::Theme
* mpTheme
;
30 std::shared_ptr
<svx::ThemeColorEditDialog
> mxSubDialog
;
31 std::vector
<model::ColorSet
> maColorSets
;
33 std::unique_ptr
<svx::ThemeColorValueSet
> mxValueSetThemeColors
;
34 std::unique_ptr
<weld::CustomWeld
> mxValueSetThemeColorsWindow
;
35 std::unique_ptr
<weld::Button
> mxAdd
;
37 std::shared_ptr
<model::ColorSet
> mpCurrentColorSet
;
39 void runThemeColorEditDialog();
43 ThemeDialog(weld::Window
* pParent
, model::Theme
* pTheme
);
44 virtual ~ThemeDialog() override
;
46 DECL_LINK(DoubleClickValueSetHdl
, ValueSet
*, void);
47 DECL_LINK(SelectItem
, ValueSet
*, void);
48 DECL_LINK(ButtonClicked
, weld::Button
&, void);
50 std::shared_ptr
<model::ColorSet
> const& getCurrentColorSet() { return mpCurrentColorSet
; }
53 } // end svx namespace
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */