tdf#131098 docx export: write fill property of graphic
[LibreOffice.git] / oox / source / shape / ShapeDrawingFragmentHandler.cxx
blob456f7df6c80d9d447cae119c669b0e8db6cc82bd
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 #include <oox/shape/ShapeDrawingFragmentHandler.hxx>
12 #include <oox/drawingml/shapegroupcontext.hxx>
13 #include <oox/token/namespaces.hxx>
14 #include <utility>
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*/ )
36 switch( Element )
38 case DSP_TOKEN( spTree ):
39 return new oox::drawingml::ShapeGroupContext(*this, oox::drawingml::ShapePtr(nullptr), mpGroupShapePtr);
40 default:
41 break;
44 return this;
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */