tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / include / svx / ColorSets.hxx
blob6d7ba41398b4d1f9fa0091f4c75b17bb06787af5
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 <svx/svxdllapi.h>
15 #include <docmodel/theme/ColorSet.hxx>
17 namespace svx
20 class SVXCORE_DLLPUBLIC ColorSets
22 private:
23 std::vector<model::ColorSet> maColorSets;
24 ColorSets();
25 void init();
26 public:
27 enum class IdenticalNameAction { Overwrite, AutoRename };
28 static ColorSets& get();
30 const std::vector<model::ColorSet>& getColorSetVector() const
32 return maColorSets;
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: */