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>
25 #include <oox/vml/vmldrawing.hxx>
28 #include <com/sun/star/graphic/XGraphicMapper.hpp>
29 #include <rtl/ref.hxx>
30 
31 namespace oox::drawingml::table {
32 
33 class TableStyleList;
34 typedef std::shared_ptr< TableStyleList > TableStyleListPtr;
35 
36 }
37 
38 namespace oox::shape {
39 
41 {
42 public:
44 
46  explicit ShapeFilterBase(
47  const css::uno::Reference< css::uno::XComponentContext >& rxContext );
48 
49  virtual ~ShapeFilterBase() override;
50 
52  virtual const ::oox::drawingml::Theme* getCurrentTheme() const override;
53 
54  void setCurrentTheme(const ::oox::drawingml::ThemePtr& pTheme);
55 
57  virtual ::oox::vml::Drawing* getVmlDrawing() override;
58 
61 
62  virtual ::oox::drawingml::chart::ChartConverter* getChartConverter() override;
63 
64  virtual bool importDocument() override { return true; }
65  virtual bool exportDocument() override { return true; }
66 
67  ::Color getSchemeColor( sal_Int32 nToken ) const;
68 
69  void importTheme();
70 
71  void setGraphicMapper(css::uno::Reference<css::graphic::XGraphicMapper> const & rxGraphicMapper)
72  {
73  mxGraphicMapper = rxGraphicMapper;
74  }
75 
76 private:
77  virtual ::oox::ole::VbaProject* implCreateVbaProject() const override;
78  virtual OUString SAL_CALL getImplementationName() override;
79  virtual GraphicHelper* implCreateGraphicHelper() const override;
80 
81  std::shared_ptr< ::oox::drawingml::chart::ChartConverter > mxChartConv;
83  css::uno::Reference<css::graphic::XGraphicMapper> mxGraphicMapper;
84 };
85 
86 } // namespace oox::shape
87 
88 #endif
89 
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides helper functions for colors, device measurement conversion, graphics, and graphic objects ha...
std::shared_ptr< TableStyleList > TableStyleListPtr
OUString getImplementationName()
void setGraphicMapper(css::uno::Reference< css::graphic::XGraphicMapper > const &rxGraphicMapper)
std::shared_ptr< ::oox::drawingml::chart::ChartConverter > mxChartConv
rtl::Reference< ShapeFilterBase > Pointer_t
css::uno::Reference< css::graphic::XGraphicMapper > mxGraphicMapper
::oox::drawingml::ThemePtr mpTheme
virtual bool exportDocument() override
Derived classes implement export of the entire document.
#define OOX_DLLPUBLIC
Definition: dllapi.h:28
virtual bool importDocument() override
Derived classes implement import of the entire document.
std::shared_ptr< Theme > ThemePtr