Coverage Report

Created: 2026-02-14 09:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sc/source/ui/unoobj/pageuno.cxx
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
 * This file incorporates work covered by the following license notice:
10
 *
11
 *   Licensed to the Apache Software Foundation (ASF) under one or more
12
 *   contributor license agreements. See the NOTICE file distributed
13
 *   with this work for additional information regarding copyright
14
 *   ownership. The ASF licenses this file to you under the Apache
15
 *   License, Version 2.0 (the "License"); you may not use this file
16
 *   except in compliance with the License. You may obtain a copy of
17
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
 */
19
20
#include <cppuhelper/supportsservice.hxx>
21
#include <rtl/ustring.hxx>
22
#include <pageuno.hxx>
23
#include <shapeuno.hxx>
24
25
using namespace ::com::sun::star;
26
27
ScPageObj::ScPageObj( SdrPage* pPage ) :
28
10.0k
    SvxDrawPage( pPage )
29
10.0k
{
30
10.0k
}
Unexecuted instantiation: ScPageObj::ScPageObj(SdrPage*)
ScPageObj::ScPageObj(SdrPage*)
Line
Count
Source
28
10.0k
    SvxDrawPage( pPage )
29
10.0k
{
30
10.0k
}
31
32
ScPageObj::~ScPageObj() noexcept
33
10.0k
{
34
10.0k
}
35
36
uno::Reference<drawing::XShape > ScPageObj::CreateShape( SdrObject *pObj ) const
37
19.4k
{
38
19.4k
    uno::Reference<drawing::XShape> xShape(SvxDrawPage::CreateShape( pObj ));
39
40
19.4k
    new ScShapeObj( xShape );       // aggregates object and modifies xShape
41
42
19.4k
    return xShape;
43
19.4k
}
44
45
OUString SAL_CALL ScPageObj::getImplementationName()
46
0
{
47
0
    return u"ScPageObj"_ustr;
48
0
}
49
50
sal_Bool SAL_CALL ScPageObj::supportsService( const OUString& rServiceName )
51
33
{
52
33
    return cppu::supportsService(this, rServiceName);
53
33
}
54
55
uno::Sequence<OUString> SAL_CALL ScPageObj::getSupportedServiceNames()
56
33
{
57
33
    return { u"com.sun.star.sheet.SpreadsheetDrawPage"_ustr };
58
33
}
59
60
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */