tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / include / oox / drawingml / ThemeFilterBase.hxx
blob7f311e206a909be0c55506591330875274cc81f7
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 <memory>
13 #include <oox/dllapi.h>
14 #include <oox/core/xmlfilterbase.hxx>
15 #include <oox/drawingml/drawingmltypes.hxx>
16 #include <rtl/ref.hxx>
18 namespace oox::drawingml
20 class OOX_DLLPUBLIC ThemeFilterBase final : public core::XmlFilterBase
22 public:
23 typedef rtl::Reference<ThemeFilterBase> Pointer_t;
25 explicit ThemeFilterBase(css::uno::Reference<css::uno::XComponentContext> const& rxContext);
27 virtual ~ThemeFilterBase() override;
29 /** Has to be implemented by each filter, returns the current theme. */
30 virtual const oox::drawingml::Theme* getCurrentTheme() const override;
32 /** May be implemented by filters which handle Diagrams, default returns empty ptr */
33 virtual std::shared_ptr<oox::drawingml::Theme> getCurrentThemePtr() const override;
35 void setCurrentTheme(const oox::drawingml::ThemePtr& pTheme);
37 /** Has to be implemented by each filter to return the collection of VML shapes. */
38 virtual oox::vml::Drawing* getVmlDrawing() override;
40 /** Has to be implemented by each filter to return TableStyles. */
41 virtual oox::drawingml::table::TableStyleListPtr getTableStyles() override;
43 virtual oox::drawingml::chart::ChartConverter* getChartConverter() override;
45 virtual oox::ole::VbaProject* implCreateVbaProject() const override;
47 virtual bool importDocument() override { return true; }
48 virtual bool exportDocument() override { return false; }
50 private:
51 virtual OUString SAL_CALL getImplementationName() override;
53 oox::drawingml::ThemePtr mpTheme;
56 } // namespace oox::drawingml
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */