LibreOffice Module oox (master) 1
slidetimingcontext.cxx
Go to the documentation of this file.
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
21
24#include "buildlistcontext.hxx"
25#include <oox/token/namespaces.hxx>
26
27
28using namespace ::com::sun::star;
29using namespace ::oox::core;
30using namespace ::oox::drawingml;
31using namespace ::com::sun::star::uno;
32using namespace ::com::sun::star::lang;
33using namespace ::com::sun::star::xml::sax;
34
35namespace oox::ppt {
36
37SlideTimingContext::SlideTimingContext( FragmentHandler2 const & rParent, TimeNodePtrList & aTimeNodeList ) noexcept
38 : FragmentHandler2( rParent )
39 , maTimeNodeList( aTimeNodeList )
40{
41}
42
44{
45
46}
47
49{
50 switch( aElementToken )
51 {
52 case PPT_TOKEN( bldLst ):
53 return new BuildListContext( *this );
54 case PPT_TOKEN( extLst ):
55 return this;
56 case PPT_TOKEN( tnLst ):
57 // timing nodes
58 {
59 return new TimeNodeListContext( *this, maTimeNodeList );
60 }
61 break;
62
63 default:
64 return this;
65 }
66}
67
68}
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides access to attribute values of an element.
SlideTimingContext(::oox::core::FragmentHandler2 const &rParent, TimeNodePtrList &aTimeNodeList) noexcept
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 aElementToken, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
virtual ~SlideTimingContext() noexcept override
FastParser context for XML_tnLst, XML_subTnLst and XML_childTnLst.
std::vector< TimeNodePtr > TimeNodePtrList
Definition: timenode.hxx:47