/src/libreoffice/oox/source/shape/WordprocessingCanvasContext.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
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 | | */ |
9 | | |
10 | | #pragma once |
11 | | |
12 | | #include <oox/core/fragmenthandler2.hxx> |
13 | | #include <oox/drawingml/drawingmltypes.hxx> |
14 | | |
15 | | namespace oox::shape |
16 | | { |
17 | | /// Handles CT_WordprocessingCanvas, used for wpc element, which is a drawing canvas for Word. |
18 | | class WordprocessingCanvasContext final : public oox::core::FragmentHandler2 |
19 | | { |
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 | | const css::awt::Size& rSize); |
24 | | ~WordprocessingCanvasContext() override; |
25 | | |
26 | | oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, |
27 | | const ::oox::AttributeList& rAttribs) override; |
28 | | |
29 | 0 | const oox::drawingml::ShapePtr& getShape() { return mpShapePtr; } |
30 | 0 | const bool& isFullWPGSupport() const { return m_bFullWPGSupport; }; |
31 | 0 | void setFullWPGSupport(bool bUse) { m_bFullWPGSupport = bUse; }; |
32 | | |
33 | | private: |
34 | | oox::drawingml::ShapePtr mpShapePtr; |
35 | | bool m_bFullWPGSupport; |
36 | | }; |
37 | | } // end namespace oox::shape |
38 | | |
39 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |