Bump version to 6.4-15
[LibreOffice.git] / include / svx / ColorSets.hxx
blob4f2df5e81e23931563883b0b6d515d5834012746
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 #ifndef INCLUDED_SVX_COLORSETS_HXX
12 #define INCLUDED_SVX_COLORSETS_HXX
14 #include <vector>
16 #include <rtl/ustring.hxx>
17 #include <sal/types.h>
18 #include <svx/svxdllapi.h>
19 #include <tools/color.hxx>
21 namespace svx
24 class SVX_DLLPUBLIC ColorSet
26 OUString maColorSetName;
27 std::vector<Color> maColors;
28 public:
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;
49 public:
50 ColorSets();
51 ~ColorSets();
53 void init();
54 const std::vector<ColorSet>& getColorSets() const
56 return maColorSets;
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: */