Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / oox / source / ppt / extdrawingfragmenthandler.hxx
blobf799a1bad158122b2532508e95518eced8607871
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 #ifndef INCLUDED_OOX_SOURCE_PPT_EXTDRAWINGFRAGMENTHANDLER_HXX
11 #define INCLUDED_OOX_SOURCE_PPT_EXTDRAWINGFRAGMENTHANDLER_HXX
13 #include "oox/core/fragmenthandler2.hxx"
14 #include "oox/drawingml/shapegroupcontext.hxx"
15 #include "oox/ppt/slidepersist.hxx"
16 #include "oox/ppt/pptshapegroupcontext.hxx"
17 #include "oox/ppt/pptshape.hxx"
19 namespace oox { namespace ppt {
21 class ExtDrawingFragmentHandler : public ::oox::core::FragmentHandler2
23 public:
24 ExtDrawingFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath,
25 const oox::ppt::SlidePersistPtr& rSlidePersistPtr,
26 const oox::ppt::ShapeLocation eShapeLocation,
27 oox::drawingml::ShapePtr const & pGroupShapePtr,
28 oox::drawingml::ShapePtr const & pShapePtr ) throw();
29 virtual ~ExtDrawingFragmentHandler() throw() override;
31 virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const AttributeList& rAttribs ) override;
33 private:
34 const oox::ppt::SlidePersistPtr mpSlidePersistPtr;
35 const oox::ppt::ShapeLocation meShapeLocation;
36 oox::drawingml::ShapePtr mpGroupShapePtr;
37 oox::drawingml::ShapePtr mpOrgShapePtr; // Original Shape data, if any
38 oox::drawingml::ShapePtr mpShapePtr;
41 } }
43 #endif
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */