bump product version to 7.6.3.2-android
[LibreOffice.git] / include / docmodel / uno / UnoTheme.hxx
blob4ca033b8e9c44aacd7db89d91176cbefc30372ba
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>
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>
20 #include <utility>
21 #include <docmodel/dllapi.h>
23 namespace model
25 class Theme;
28 class DOCMODEL_DLLPUBLIC UnoTheme final : public cppu::WeakImplHelper<css::util::XTheme>
30 private:
31 std::shared_ptr<model::Theme> mpTheme;
33 public:
34 UnoTheme(std::shared_ptr<model::Theme> const& pTheme)
35 : mpTheme(pTheme)
39 std::shared_ptr<model::Theme> const& getTheme() const { return mpTheme; }
41 // XTheme
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: */