cid#1636690 Dereference after null check
[LibreOffice.git] / oox / source / ppt / extdrawingfragmenthandler.hxx
blobddc828af4cfcbd5f0e08938a1a07b4fb8abd7d44
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/ppt/slidepersist.hxx>
16 namespace oox::ppt {
18 class ExtDrawingFragmentHandler : public ::oox::core::FragmentHandler2
20 public:
21 ExtDrawingFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath,
22 oox::ppt::SlidePersistPtr pSlidePersistPtr,
23 const oox::ppt::ShapeLocation eShapeLocation,
24 oox::drawingml::ShapePtr pGroupShapePtr,
25 oox::drawingml::ShapePtr pShapePtr );
26 virtual ~ExtDrawingFragmentHandler() noexcept override;
28 virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const AttributeList& rAttribs ) override;
30 private:
31 const oox::ppt::SlidePersistPtr mpSlidePersistPtr;
32 const oox::ppt::ShapeLocation meShapeLocation;
33 oox::drawingml::ShapePtr mpGroupShapePtr;
34 oox::drawingml::ShapePtr mpShapePtr;
39 #endif
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */