tdf#131098 docx export: write fill property of graphic
[LibreOffice.git] / oox / source / shape / WordprocessingCanvasContext.hxx
blobd4cc67f6a9ba91cd5cc866c18cbc3e950d4fe516
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 #pragma once
12 #include <oox/core/fragmenthandler2.hxx>
13 #include <oox/drawingml/drawingmltypes.hxx>
15 namespace oox::shape
17 /// Handles CT_WordprocessingCanvas, used for wpc element, which is a drawing canvas for Word.
18 class WordprocessingCanvasContext final : public oox::core::FragmentHandler2
20 public:
21 // mpShapePtr points to the root of the group. rSize is the size of the background shape.
22 explicit WordprocessingCanvasContext(oox::core::FragmentHandler2 const& rParent,
23 css::awt::Size& rSize);
24 ~WordprocessingCanvasContext() override;
26 oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken,
27 const ::oox::AttributeList& rAttribs) override;
29 oox::drawingml::ShapePtr getShape() { return mpShapePtr; }
30 const bool& isFullWPGSupport() const { return m_bFullWPGSupport; };
31 void setFullWPGSupport(bool bUse) { m_bFullWPGSupport = bUse; };
33 private:
34 oox::drawingml::ShapePtr mpShapePtr;
35 bool m_bFullWPGSupport;
37 } // end namespace oox::shape
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */