Bump version to 6.4-15
[LibreOffice.git] / include / oox / ppt / pptimport.hxx
blobc8b71f29297fb91a5fd81d50fceec29af5d6ee53
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_OOX_PPT_PPTIMPORT_HXX
21 #define INCLUDED_OOX_PPT_PPTIMPORT_HXX
23 #include <map>
24 #include <memory>
25 #include <vector>
27 #include <com/sun/star/uno/Reference.hxx>
28 #include <com/sun/star/uno/Sequence.hxx>
29 #include <oox/core/filterbase.hxx>
30 #include <oox/core/xmlfilterbase.hxx>
31 #include <oox/drawingml/drawingmltypes.hxx>
32 #include <oox/drawingml/theme.hxx>
33 #include <oox/ppt/slidepersist.hxx>
34 #include <oox/ppt/pptshape.hxx>
35 #include <rtl/ustring.hxx>
36 #include <sal/types.h>
38 namespace com { namespace sun { namespace star {
39 namespace beans { struct PropertyValue; }
40 namespace uno { class XComponentContext; }
41 } } }
43 namespace oox {
44 class GraphicHelper;
45 namespace drawingml { namespace chart { class ChartConverter; } }
46 namespace ole { class VbaProject; }
47 namespace vml { class Drawing; }
50 namespace oox { namespace ppt {
53 class PowerPointImport final : public oox::core::XmlFilterBase
55 public:
56 /// @throws css::uno::RuntimeException
57 PowerPointImport( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
58 virtual ~PowerPointImport() override;
60 // from FilterBase
61 virtual bool importDocument() override;
62 virtual bool exportDocument() throw() override;
64 virtual const ::oox::drawingml::Theme* getCurrentTheme() const override;
65 virtual ::oox::vml::Drawing* getVmlDrawing() override;
66 virtual oox::drawingml::table::TableStyleListPtr getTableStyles() override;
67 virtual ::oox::drawingml::chart::ChartConverter* getChartConverter() override;
69 const SlidePersistPtr& getActualSlidePersist() const { return mpActualSlidePersist; };
70 void setActualSlidePersist( SlidePersistPtr pActualSlidePersist ){ mpActualSlidePersist = pActualSlidePersist; };
71 std::map< OUString, oox::drawingml::ThemePtr >& getThemes(){ return maThemes; };
72 std::vector< SlidePersistPtr >& getDrawPages(){ return maDrawPages; };
73 std::vector< SlidePersistPtr >& getMasterPages(){ return maMasterPages; };
74 std::vector< SlidePersistPtr >& getNotesPages(){ return maNotesPages; };
76 virtual sal_Bool SAL_CALL filter( const css::uno::Sequence< css::beans::PropertyValue >& rDescriptor ) override;
78 ::Color getSchemeColor( sal_Int32 nToken ) const;
80 static std::vector< PPTShape* > maPPTShapes;
82 #if OSL_DEBUG_LEVEL > 0
83 static XmlFilterBase* mpDebugFilterBase;
84 #endif
86 private:
87 virtual GraphicHelper* implCreateGraphicHelper() const override;
88 virtual ::oox::ole::VbaProject* implCreateVbaProject() const override;
89 virtual OUString SAL_CALL getImplementationName() override;
91 private:
92 OUString maTableStyleListPath;
93 oox::drawingml::table::TableStyleListPtr mpTableStyleList;
95 SlidePersistPtr mpActualSlidePersist;
96 std::map< OUString, oox::drawingml::ThemePtr > maThemes;
98 std::vector< SlidePersistPtr > maDrawPages;
99 std::vector< SlidePersistPtr > maMasterPages;
100 std::vector< SlidePersistPtr > maNotesPages;
102 std::shared_ptr< ::oox::drawingml::chart::ChartConverter > mxChartConv;
107 #endif // INCLUDED_OOX_PPT_PPTIMPORT_HXX
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */