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 <cppuhelper/implbase.hxx>
13 #include <cppuhelper/supportsservice.hxx>
14 #include <comphelper/servicehelper.hxx>
16 #include <com/sun/star/util/Color.hpp>
17 #include <com/sun/star/util/XTheme.hpp>
18 #include <com/sun/star/uno/XComponentContext.hpp>
21 #include <docmodel/dllapi.h>
28 class DOCMODEL_DLLPUBLIC UnoTheme final
: public cppu::WeakImplHelper
<css::util::XTheme
>
31 std::shared_ptr
<model::Theme
> mpTheme
;
34 UnoTheme(std::shared_ptr
<model::Theme
> const& pTheme
)
39 std::shared_ptr
<model::Theme
> const& getTheme() const { return mpTheme
; }
42 OUString SAL_CALL
getName() override
;
43 css::uno::Sequence
<sal_Int32
> SAL_CALL
getColorSet() override
;
46 namespace model::theme
48 DOCMODEL_DLLPUBLIC
css::uno::Reference
<css::util::XTheme
>
49 createXTheme(std::shared_ptr
<model::Theme
> const& pTheme
);
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */