Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / docmodel / theme / ColorSet.hxx
blob4309c4719a649783209ce0a6a689d25d52593acd
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/.
9 */
11 #pragma once
13 #include <array>
14 #include <docmodel/dllapi.h>
15 #include <rtl/ustring.hxx>
16 #include <docmodel/theme/ThemeColorType.hxx>
17 #include <docmodel/theme/ThemeColor.hxx>
18 #include <docmodel/color/ComplexColor.hxx>
19 #include <tools/color.hxx>
21 typedef struct _xmlTextWriter* xmlTextWriterPtr;
23 namespace model
25 class DOCMODEL_DLLPUBLIC ColorSet
27 OUString maName;
28 std::array<Color, 12> maColors;
30 public:
31 ColorSet(OUString const& rName);
33 void setName(OUString const& rName) { maName = rName; }
35 void add(model::ThemeColorType Type, Color aColorData);
37 const OUString& getName() const { return maName; }
39 Color resolveColor(model::ComplexColor const& rComplexColor) const;
41 Color getColor(model::ThemeColorType eType) const;
43 void dumpAsXml(xmlTextWriterPtr pWriter) const;
46 } // end of namespace model
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */