Coverage Report

Created: 2025-11-16 09:57

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/oox/source/shape/LockedCanvasContext.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
#ifndef INCLUDED_OOX_SOURCE_SHAPE_LOCKEDCANVASCONTEXT_HXX
11
#define INCLUDED_OOX_SOURCE_SHAPE_LOCKEDCANVASCONTEXT_HXX
12
13
#include <oox/core/fragmenthandler2.hxx>
14
#include <oox/drawingml/drawingmltypes.hxx>
15
16
namespace oox::shape
17
{
18
/// Locked canvas is kind of a container for drawingml shapes: it can even contain group shapes.
19
class LockedCanvasContext final : public oox::core::FragmentHandler2
20
{
21
public:
22
    explicit LockedCanvasContext(oox::core::FragmentHandler2 const& rParent);
23
    ~LockedCanvasContext() override;
24
25
    oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken,
26
                                                 const ::oox::AttributeList& rAttribs) override;
27
28
36
    const oox::drawingml::ShapePtr& getShape() const { return mpShapePtr; }
29
30
private:
31
    oox::drawingml::ShapePtr mpShapePtr;
32
};
33
}
34
35
#endif
36
37
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */