LibreOffice Module oox (master) 1
ShapeFilterBase.hxx
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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_OOX_SHAPE_SHAPEFILTERBASE_HXX
21#define INCLUDED_OOX_SHAPE_SHAPEFILTERBASE_HXX
22
23#include <memory>
24#include <oox/dllapi.h>
28#include <com/sun/star/graphic/XGraphicMapper.hpp>
29#include <rtl/ref.hxx>
30#include <tools/color.hxx>
31
32namespace oox::drawingml::table {
33
34class TableStyleList;
35typedef std::shared_ptr< TableStyleList > TableStyleListPtr;
36
37}
38
39namespace oox::shape {
40
42{
43public:
45
47 explicit ShapeFilterBase(
48 const css::uno::Reference< css::uno::XComponentContext >& rxContext );
49
50 virtual ~ShapeFilterBase() override;
51
53 virtual const ::oox::drawingml::Theme* getCurrentTheme() const override;
54
56 virtual std::shared_ptr<::oox::drawingml::Theme> getCurrentThemePtr() const override;
57
58 void setCurrentTheme(const ::oox::drawingml::ThemePtr& pTheme);
59
61 virtual ::oox::vml::Drawing* getVmlDrawing() override;
62
65
66 virtual ::oox::drawingml::chart::ChartConverter* getChartConverter() override;
67
68 virtual bool importDocument() override { return true; }
69 virtual bool exportDocument() override { return true; }
70
71 ::Color getSchemeColor( sal_Int32 nToken ) const;
72
73 void setGraphicMapper(css::uno::Reference<css::graphic::XGraphicMapper> const & rxGraphicMapper)
74 {
75 mxGraphicMapper = rxGraphicMapper;
76 }
77
78private:
79 virtual ::oox::ole::VbaProject* implCreateVbaProject() const override;
80 virtual OUString SAL_CALL getImplementationName() override;
81 virtual GraphicHelper* implCreateGraphicHelper() const override;
82
83 std::shared_ptr< ::oox::drawingml::chart::ChartConverter > mxChartConv;
85 css::uno::Reference<css::graphic::XGraphicMapper> mxGraphicMapper;
86};
87
88} // namespace oox::shape
89
90#endif
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides helper functions for colors, device measurement conversion, graphics, and graphic objects ha...
virtual bool exportDocument() override
Derived classes implement export of the entire document.
void setGraphicMapper(css::uno::Reference< css::graphic::XGraphicMapper > const &rxGraphicMapper)
virtual bool importDocument() override
Derived classes implement import of the entire document.
::oox::drawingml::ThemePtr mpTheme
std::shared_ptr< ::oox::drawingml::chart::ChartConverter > mxChartConv
rtl::Reference< ShapeFilterBase > Pointer_t
css::uno::Reference< css::graphic::XGraphicMapper > mxGraphicMapper
#define OOX_DLLPUBLIC
Definition: dllapi.h:28
OUString getImplementationName()
std::shared_ptr< TableStyleList > TableStyleListPtr
std::shared_ptr< Theme > ThemePtr