tdf#161412 - UI: fix warning in PDF password dialog didn't disappear
[LibreOffice.git] / include / svx / dialog / ThemeDialog.hxx
blob6716bbbe2bea302a39b0391b74244e789fc78f3f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #pragma once
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>
18 namespace model
20 class Theme;
23 namespace svx
25 class SVX_DLLPUBLIC ThemeDialog final : public weld::GenericDialogController
27 private:
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();
40 void initColorSets();
42 public:
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: */