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/color/ComplexColor.hxx>
18 #include <tools/color.hxx>
20 typedef struct _xmlTextWriter
* xmlTextWriterPtr
;
24 class DOCMODEL_DLLPUBLIC ColorSet
27 std::array
<Color
, 12> maColors
;
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: */