1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
;
25 class DOCMODEL_DLLPUBLIC ColorSet
28 std::array
<Color
, 12> maColors
;
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: */