lok: vcl: fix multiple floatwin removal case more robustly.
[LibreOffice.git] / oox / source / shape / WpsContext.hxx
blobe05a706c612ec7fefe893400243a9fba0a38391f
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_WPSCONTEXT_HXX
11 #define INCLUDED_OOX_SOURCE_SHAPE_WPSCONTEXT_HXX
13 #include <oox/core/contexthandler2.hxx>
14 #include <oox/drawingml/drawingmltypes.hxx>
16 namespace com
18 namespace sun
20 namespace star
22 namespace drawing
24 class XShape;
30 namespace oox
32 namespace shape
35 /// Wps is the drawingML equivalent of v:shape.
36 class WpsContext final : public oox::core::ContextHandler2
38 public:
39 WpsContext(oox::core::ContextHandler2Helper const& rParent, css::uno::Reference<css::drawing::XShape> xShape);
40 ~WpsContext() override;
42 oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, const oox::AttributeList& rAttribs) override;
44 const oox::drawingml::ShapePtr& getShape() const
46 return mpShape;
49 private:
50 oox::drawingml::ShapePtr mpShape;
51 css::uno::Reference<css::drawing::XShape> mxShape;
57 #endif
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */