docthemes: Save themes def. to a file when added to ColorSets
[LibreOffice.git] / include / docmodel / uno / UnoComplexColor.hxx
blob4c584b2ab7c41979b59d455b674b8ec896c6f58b
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/.
8 */
10 #pragma once
12 #include <config_options.h>
13 #include <cppuhelper/implbase.hxx>
15 #include <com/sun/star/util/Color.hpp>
16 #include <com/sun/star/util/XComplexColor.hpp>
18 #include <docmodel/dllapi.h>
19 #include <docmodel/color/ComplexColor.hxx>
21 class UNLESS_MERGELIBS(DOCMODEL_DLLPUBLIC) UnoComplexColor final
22 : public cppu::WeakImplHelper<css::util::XComplexColor>
24 private:
25 model::ComplexColor maColor;
27 public:
28 UnoComplexColor(model::ComplexColor const& rColor)
29 : maColor(rColor)
33 model::ComplexColor const& getComplexColor() const { return maColor; }
35 // XComplexColor
36 sal_Int32 SAL_CALL getType() override;
37 sal_Int32 SAL_CALL getThemeColorType() override;
38 css::util::Color SAL_CALL
39 resolveColor(css::uno::Reference<css::util::XTheme> const& xTheme) override;
42 namespace model::color
44 DOCMODEL_DLLPUBLIC css::uno::Reference<css::util::XComplexColor>
45 createXComplexColor(model::ComplexColor const& rColor);
46 DOCMODEL_DLLPUBLIC model::ComplexColor
47 getFromXComplexColor(css::uno::Reference<css::util::XComplexColor> const& rxColor);
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */