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/.
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
>
25 model::ComplexColor maColor
;
28 UnoComplexColor(model::ComplexColor
const& rColor
)
33 model::ComplexColor
const& getComplexColor() const { return maColor
; }
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: */