LibreOffice Module oox (master) 1
ThemeFilterBase.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
12
13using namespace css;
14
15namespace oox::drawingml
16{
17ThemeFilterBase::ThemeFilterBase(const uno::Reference<uno::XComponentContext>& rxContext)
18 : XmlFilterBase(rxContext)
19{
20}
21
23
25
26std::shared_ptr<oox::drawingml::Theme> ThemeFilterBase::getCurrentThemePtr() const
27{
28 return mpTheme;
29}
30
32{
33 mpTheme = pTheme;
34}
35
37
39{
41}
42
44
46
47OUString ThemeFilterBase::getImplementationName() { return OUString(); }
48}
49
50/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual oox::drawingml::table::TableStyleListPtr getTableStyles() override
Has to be implemented by each filter to return TableStyles.
virtual oox::vml::Drawing * getVmlDrawing() override
Has to be implemented by each filter to return the collection of VML shapes.
oox::drawingml::ThemePtr mpTheme
void setCurrentTheme(const oox::drawingml::ThemePtr &pTheme)
virtual std::shared_ptr< oox::drawingml::Theme > getCurrentThemePtr() const override
May be implemented by filters which handle Diagrams, default returns empty ptr.
virtual OUString SAL_CALL getImplementationName() override
virtual ~ThemeFilterBase() override
virtual oox::ole::VbaProject * implCreateVbaProject() const override
Derived classes create a VBA project manager object.
virtual oox::drawingml::chart::ChartConverter * getChartConverter() override
Has to be implemented by each filter, returns a filter-specific chart converter object,...
virtual const oox::drawingml::Theme * getCurrentTheme() const override
Has to be implemented by each filter, returns the current theme.
ThemeFilterBase(css::uno::Reference< css::uno::XComponentContext > const &rxContext)
Represents the collection of VML shapes for a complete draw page.
Definition: vmldrawing.hxx:94
std::shared_ptr< TableStyleList > TableStyleListPtr
std::shared_ptr< Theme > ThemePtr