Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / oox / source / shape / LockedCanvasContext.hxx
blob793491fe648cbed3ec331813065f28a40bc4a372
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_LOCKEDCANVASCONTEXT_HXX
11 #define INCLUDED_OOX_SOURCE_SHAPE_LOCKEDCANVASCONTEXT_HXX
13 #include <oox/core/contexthandler2.hxx>
14 #include <oox/drawingml/drawingmltypes.hxx>
16 namespace oox
18 namespace shape
21 /// Locked canvas is kind of a container for drawingml shapes: it can even contain group shapes.
22 class LockedCanvasContext final : public oox::core::ContextHandler2
24 public:
25 explicit LockedCanvasContext(oox::core::ContextHandler2Helper const& rParent);
26 ~LockedCanvasContext() override;
28 oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, const ::oox::AttributeList& rAttribs) override;
30 const oox::drawingml::ShapePtr& getShape() const
32 return mpShape;
35 private:
36 oox::drawingml::ShapePtr mpShape;
42 #endif
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */