1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef OOX_PPT_EXTDRAWINGFRAGMENTHANDLER
11 #define OOX_PPT_EXTDRAWINGFRAGMENTHANDLER
13 #include "oox/core/fragmenthandler.hxx"
14 #include "oox/core/fragmenthandler2.hxx"
15 #include "oox/drawingml/shapegroupcontext.hxx"
16 #include "oox/ppt/slidepersist.hxx"
17 #include "oox/ppt/pptshapegroupcontext.hxx"
18 #include "oox/ppt/pptshape.hxx"
20 namespace oox
{ namespace ppt
{
23 class ExtDrawingFragmentHandler
: public ::oox::core::FragmentHandler
26 ExtDrawingFragmentHandler( oox::core::XmlFilterBase
& rFilter
, const OUString
& rFragmentPath
,
27 const oox::ppt::SlidePersistPtr pSlidePersistPtr
,
28 const oox::ppt::ShapeLocation eShapeLocation
,
29 oox::drawingml::ShapePtr pMasterShapePtr
,
30 oox::drawingml::ShapePtr pGroupShapePtr
,
31 oox::drawingml::ShapePtr pShapePtr
) throw();
32 virtual ~ExtDrawingFragmentHandler() throw();
34 virtual void SAL_CALL
endDocument() throw (::com::sun::star::xml::sax::SAXException
, ::com::sun::star::uno::RuntimeException
);
35 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::xml::sax::XFastContextHandler
> SAL_CALL
createFastChildContext( ::sal_Int32 Element
, const ::com::sun::star::uno::Reference
< ::com::sun::star::xml::sax::XFastAttributeList
>& Attribs
) throw (::com::sun::star::xml::sax::SAXException
, ::com::sun::star::uno::RuntimeException
);
38 const oox::ppt::SlidePersistPtr mpSlidePersistPtr
;
39 const oox::ppt::ShapeLocation meShapeLocation
;
40 oox::drawingml::ShapePtr mpMasterShapePtr
;
41 oox::drawingml::ShapePtr mpGroupShapePtr
;
42 oox::drawingml::ShapePtr mpOrgShapePtr
; // Original Shape data, if any
43 oox::drawingml::ShapePtr mpShapePtr
;
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */