tdf#131098 docx export: write fill property of graphic
[LibreOffice.git] / oox / source / shape / WpgContext.hxx
blobedd11644b214bcb817d7539cc88654c7b5f710c2
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_SHAPE_WPGCONTEXT_HXX
11 #define INCLUDED_OOX_SOURCE_SHAPE_WPGCONTEXT_HXX
13 #include <oox/core/fragmenthandler2.hxx>
14 #include <oox/drawingml/drawingmltypes.hxx>
16 namespace oox::shape
18 /// Wpg is the drawingML equivalent of v:group.
19 class WpgContext final : public oox::core::FragmentHandler2
21 public:
22 explicit WpgContext(oox::core::FragmentHandler2 const& rParent,
23 const oox::drawingml::ShapePtr& pMaster);
24 ~WpgContext() override;
26 oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken,
27 const oox::AttributeList& rAttribs) override;
29 const oox::drawingml::ShapePtr& getShape() const { return mpShape; }
31 const bool& isFullWPGSupport() const { return m_bFullWPGSupport; };
32 void setFullWPGSupport(bool bUse) { m_bFullWPGSupport = bUse; };
34 private:
35 oox::drawingml::ShapePtr mpShape;
37 bool m_bFullWPGSupport;
41 #endif
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */