Avoid potential negative array index access to cached text.
[LibreOffice.git] / include / svx / dialog / ThemeColorEditDialog.hxx
blob6111607fe033f684b3248b36da19cd2dbe10af8b
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 <docmodel/theme/ColorSet.hxx>
16 class ColorListBox;
18 namespace svx
20 class SVX_DLLPUBLIC ThemeColorEditDialog final : public weld::GenericDialogController
22 private:
23 model::ColorSet maColorSet;
25 std::unique_ptr<weld::Entry> mxThemeColorsNameEntry;
26 std::unique_ptr<ColorListBox> mxDark1;
27 std::unique_ptr<ColorListBox> mxLight1;
28 std::unique_ptr<ColorListBox> mxDark2;
29 std::unique_ptr<ColorListBox> mxLight2;
30 std::unique_ptr<ColorListBox> mxAccent1;
31 std::unique_ptr<ColorListBox> mxAccent2;
32 std::unique_ptr<ColorListBox> mxAccent3;
33 std::unique_ptr<ColorListBox> mxAccent4;
34 std::unique_ptr<ColorListBox> mxAccent5;
35 std::unique_ptr<ColorListBox> mxAccent6;
36 std::unique_ptr<ColorListBox> mxHyperlink;
37 std::unique_ptr<ColorListBox> mxFollowHyperlink;
39 public:
40 ThemeColorEditDialog(weld::Window* pParent, model::ColorSet& rColorSet);
41 virtual ~ThemeColorEditDialog() override;
42 model::ColorSet getColorSet();
45 } // end svx namespace
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */