LibreOffice Module oox (master) 1
WpgContext.hxx
Go to the documentation of this file.
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#ifndef INCLUDED_OOX_SOURCE_SHAPE_WPGCONTEXT_HXX
11#define INCLUDED_OOX_SOURCE_SHAPE_WPGCONTEXT_HXX
12
15
16namespace oox::shape
17{
20{
21public:
22 explicit WpgContext(oox::core::FragmentHandler2 const& rParent,
23 const oox::drawingml::ShapePtr& pMaster);
24 ~WpgContext() override;
25
26 oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken,
27 const oox::AttributeList& rAttribs) override;
28
29 const oox::drawingml::ShapePtr& getShape() const { return mpShape; }
30
31 const bool& isFullWPGSupport() const { return m_bFullWPGSupport; };
32 void setFullWPGSupport(bool bUse) { m_bFullWPGSupport = bUse; };
33
34private:
36
38};
39}
40
41#endif
42
43/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides access to attribute values of an element.
Wpg is the drawingML equivalent of v:group.
Definition: WpgContext.hxx:20
oox::drawingml::ShapePtr mpShape
Definition: WpgContext.hxx:32
void setFullWPGSupport(bool bUse)
Definition: WpgContext.hxx:32
const bool & isFullWPGSupport() const
Definition: WpgContext.hxx:31
WpgContext(oox::core::FragmentHandler2 const &rParent, const oox::drawingml::ShapePtr &pMaster)
Definition: WpgContext.cxx:23
const oox::drawingml::ShapePtr & getShape() const
Definition: WpgContext.hxx:29
oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, const oox::AttributeList &rAttribs) override
Definition: WpgContext.cxx:35
std::shared_ptr< Shape > ShapePtr