1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #include "oox/ppt/slidetimingcontext.hxx"
25 
26 #include "comphelper/anytostring.hxx"
27 #include "cppuhelper/exc_hlp.hxx"
28 
29 #include "oox/ppt/backgroundproperties.hxx"
30 #include "oox/ppt/slidefragmenthandler.hxx"
31 #include "oox/drawingml/shapegroupcontext.hxx"
32 #include "oox/helper/attributelist.hxx"
33 #include "oox/ppt/timenodelistcontext.hxx"
34 #include "buildlistcontext.hxx"
35 
36 using rtl::OUString;
37 using namespace ::com::sun::star;
38 using namespace ::oox::core;
39 using namespace ::oox::drawingml;
40 using namespace ::com::sun::star::uno;
41 using namespace ::com::sun::star::lang;
42 using namespace ::com::sun::star::xml::sax;
43 using namespace ::com::sun::star::container;
44 
45 namespace oox { namespace ppt {
46 
SlideTimingContext(ContextHandler & rParent,TimeNodePtrList & aTimeNodeList)47 SlideTimingContext::SlideTimingContext( ContextHandler& rParent, TimeNodePtrList & aTimeNodeList ) throw()
48     : ContextHandler( rParent )
49     , maTimeNodeList( aTimeNodeList )
50 {
51 }
52 
~SlideTimingContext()53 SlideTimingContext::~SlideTimingContext() throw()
54 {
55 
56 }
57 
endFastElement(sal_Int32)58 void SlideTimingContext::endFastElement( sal_Int32 /*aElement*/ ) throw ( SAXException, RuntimeException)
59 {
60 }
61 
62 
createFastChildContext(sal_Int32 aElementToken,const Reference<XFastAttributeList> & xAttribs)63 Reference< XFastContextHandler > SlideTimingContext::createFastChildContext( sal_Int32 aElementToken, const Reference< XFastAttributeList >& xAttribs ) throw (SAXException, RuntimeException)
64 {
65 	Reference< XFastContextHandler > xRet;
66 
67 	switch( aElementToken )
68 	{
69 	case PPT_TOKEN( bldLst ):
70         xRet.set( new BuildListContext( *this, xAttribs, maTimeNodeList ) );
71 		break;
72 	case PPT_TOKEN( extLst ):
73         return xRet;
74 	case PPT_TOKEN( tnLst ):
75 		// timing nodes
76 	{
77         xRet.set( new TimeNodeListContext( *this, maTimeNodeList ) );
78 	}
79 	break;
80 
81 	default:
82 		break;
83 	}
84 
85 	if( !xRet.is() )
86 		xRet.set(this);
87 
88 	return xRet;
89 }
90 
endDocument()91 void SAL_CALL SlideTimingContext::endDocument(  ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException)
92 {
93 
94 }
95 
96 } }
97 
98