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 #include <oox/shape/ShapeDrawingFragmentHandler.hxx>
12 #include <oox/drawingml/shapegroupcontext.hxx>
13 #include <oox/token/namespaces.hxx>
16 using namespace com::sun::star
;
18 namespace oox::shape
{
20 ShapeDrawingFragmentHandler::ShapeDrawingFragmentHandler(oox::core::XmlFilterBase
& rFilter
, const OUString
& rFragmentPath
, oox::drawingml::ShapePtr pGroupShapePtr
)
21 : FragmentHandler2(rFilter
, rFragmentPath
)
22 , mpGroupShapePtr(std::move(pGroupShapePtr
))
26 ShapeDrawingFragmentHandler::~ShapeDrawingFragmentHandler() noexcept
30 void SAL_CALL
ShapeDrawingFragmentHandler::endDocument()
34 ::oox::core::ContextHandlerRef
ShapeDrawingFragmentHandler::onCreateContext(sal_Int32 Element
, const AttributeList
& /*Attribs*/ )
38 case DSP_TOKEN( spTree
):
39 return new oox::drawingml::ShapeGroupContext(*this, oox::drawingml::ShapePtr(nullptr), mpGroupShapePtr
);
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */