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
14 #include <svx/svxdllapi.h>
15 #include <docmodel/theme/ColorSet.hxx>
20 class SVXCORE_DLLPUBLIC ColorSets
23 std::vector
<model::ColorSet
> maColorSets
;
27 enum class IdenticalNameAction
{ Overwrite
, AutoRename
};
28 static ColorSets
& get();
30 const std::vector
<model::ColorSet
>& getColorSetVector() const
35 const model::ColorSet
& getColorSet(sal_uInt32 nIndex
) const
37 return maColorSets
[nIndex
];
40 model::ColorSet
const* getColorSet(std::u16string_view rName
) const;
42 void insert(model::ColorSet
const& rColorSet
, IdenticalNameAction eAction
= IdenticalNameAction::Overwrite
);
45 } // end of namespace svx
47 #endif // INCLUDED_SVX_COLORSETS_HXX
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */