Avoid potential negative array index access to cached text.
[LibreOffice.git] / include / svx / dialog / ThemeColorValueSet.hxx
blobee73275c4d410765721bc219a1bcdc25b52c33c5
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 <sal/config.h>
14 #include <svtools/valueset.hxx>
15 #include <docmodel/theme/ColorSet.hxx>
17 namespace svx
19 class SVX_DLLPUBLIC ThemeColorValueSet final : public ValueSet
21 std::vector<std::reference_wrapper<const model::ColorSet>> maColorSets;
23 public:
24 ThemeColorValueSet()
25 : ValueSet(nullptr)
29 void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
30 void UserDraw(const UserDrawEvent& rUserDrawEvent) override;
31 void StyleUpdated() override;
33 void insert(model::ColorSet const& rColorSet);
36 } // end svx namespace
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */