tdf#164803 sw: Fix SwTextSizeInfo applying grid metrics without grid
[LibreOffice.git] / include / docmodel / theme / ColorSet.hxx
blob5bad82633c78b05eb5caf8392379ea6d358cacdb
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/color/ComplexColor.hxx>
18 #include <tools/color.hxx>
20 typedef struct _xmlTextWriter* xmlTextWriterPtr;
22 namespace model
24 class DOCMODEL_DLLPUBLIC ColorSet
26 OUString maName;
27 std::array<Color, 12> maColors;
29 public:
30 ColorSet(OUString const& rName);
32 void setName(OUString const& rName) { maName = rName; }
34 void add(model::ThemeColorType Type, Color aColorData);
36 const OUString& getName() const { return maName; }
38 Color resolveColor(model::ComplexColor const& rComplexColor) const;
40 Color getColor(model::ThemeColorType eType) const;
42 void dumpAsXml(xmlTextWriterPtr pWriter) const;
45 } // end of namespace model
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */