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/.
11 #ifndef INCLUDED_SVX_COLORSETS_HXX
12 #define INCLUDED_SVX_COLORSETS_HXX
16 #include <rtl/ustring.hxx>
17 #include <sal/types.h>
18 #include <svx/svxdllapi.h>
19 #include <tools/color.hxx>
24 class SVX_DLLPUBLIC ColorSet
26 OUString maColorSetName
;
27 std::vector
<Color
> maColors
;
29 ColorSet(OUString
const & aName
);
31 void add(sal_uInt32 nIndex
, sal_uInt32 aColorData
)
33 maColors
[nIndex
] = Color(aColorData
);
36 const OUString
& getName() const
38 return maColorSetName
;
40 const Color
& getColor(sal_uInt32 nIndex
) const
42 return maColors
[nIndex
];
46 class SVX_DLLPUBLIC ColorSets
48 std::vector
<ColorSet
> maColorSets
;
54 const std::vector
<ColorSet
>& getColorSets() const
59 const ColorSet
& getColorSet(sal_uInt32 nIndex
)
61 return maColorSets
[nIndex
];
64 const ColorSet
& getColorSet(const OUString
& rName
);
67 } // end of namespace svx
69 #endif // INCLUDED_SVX_COLORSETS_HXX
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */