Update git submodules
[LibreOffice.git] / include / docmodel / uno / UnoTheme.hxx
blob2fde5096f3aa3285c4e31f09c005540dfd9857f7
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 <cppuhelper/implbase.hxx>
14 #include <com/sun/star/util/XTheme.hpp>
16 #include <docmodel/dllapi.h>
18 namespace model
20 class Theme;
23 class DOCMODEL_DLLPUBLIC UnoTheme final : public cppu::WeakImplHelper<css::util::XTheme>
25 private:
26 std::shared_ptr<model::Theme> mpTheme;
28 public:
29 UnoTheme(std::shared_ptr<model::Theme> const& pTheme)
30 : mpTheme(pTheme)
34 std::shared_ptr<model::Theme> const& getTheme() const { return mpTheme; }
36 // XTheme
37 OUString SAL_CALL getName() override;
38 css::uno::Sequence<sal_Int32> SAL_CALL getColorSet() override;
41 namespace model::theme
43 DOCMODEL_DLLPUBLIC css::uno::Reference<css::util::XTheme>
44 createXTheme(std::shared_ptr<model::Theme> const& pTheme);
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */