Coverage Report

Created: 2026-05-16 09:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/oox/source/ppt/slidetimingcontext.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 <oox/ppt/slidetimingcontext.hxx>
21
22
#include <oox/helper/attributelist.hxx>
23
#include <oox/ppt/timenodelistcontext.hxx>
24
#include "buildlistcontext.hxx"
25
#include <oox/token/namespaces.hxx>
26
27
28
using namespace ::com::sun::star;
29
using namespace ::oox::core;
30
31
namespace oox::ppt {
32
33
SlideTimingContext::SlideTimingContext( FragmentHandler2 const & rParent, TimeNodePtrList & aTimeNodeList ) noexcept
34
777
    : FragmentHandler2( rParent )
35
777
    , maTimeNodeList( aTimeNodeList )
36
777
{
37
777
}
38
39
SlideTimingContext::~SlideTimingContext() noexcept
40
777
{
41
42
777
}
43
44
::oox::core::ContextHandlerRef SlideTimingContext::onCreateContext( sal_Int32 aElementToken, const AttributeList& )
45
802
{
46
802
    switch( aElementToken )
47
802
    {
48
25
    case PPT_TOKEN( bldLst ):
49
25
        return new BuildListContext( *this );
50
0
    case PPT_TOKEN( extLst ):
51
0
        return this;
52
777
    case PPT_TOKEN( tnLst ):
53
        // timing nodes
54
777
    {
55
777
        return new TimeNodeListContext( *this, maTimeNodeList );
56
0
    }
57
0
    break;
58
59
0
    default:
60
0
        return this;
61
802
    }
62
802
}
63
64
}
65
66
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */