1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #include "oox/ppt/slidetimingcontext.hxx"
29 
30 #include "comphelper/anytostring.hxx"
31 #include "cppuhelper/exc_hlp.hxx"
32 
33 #include "oox/ppt/backgroundproperties.hxx"
34 #include "oox/ppt/slidefragmenthandler.hxx"
35 #include "oox/drawingml/shapegroupcontext.hxx"
36 #include "oox/helper/attributelist.hxx"
37 #include "oox/ppt/timenodelistcontext.hxx"
38 #include "buildlistcontext.hxx"
39 
40 using rtl::OUString;
41 using namespace ::com::sun::star;
42 using namespace ::oox::core;
43 using namespace ::oox::drawingml;
44 using namespace ::com::sun::star::uno;
45 using namespace ::com::sun::star::lang;
46 using namespace ::com::sun::star::xml::sax;
47 using namespace ::com::sun::star::container;
48 
49 namespace oox { namespace ppt {
50 
51 SlideTimingContext::SlideTimingContext( ContextHandler& rParent, TimeNodePtrList & aTimeNodeList ) throw()
52     : ContextHandler( rParent )
53     , maTimeNodeList( aTimeNodeList )
54 {
55 }
56 
57 SlideTimingContext::~SlideTimingContext() throw()
58 {
59 
60 }
61 
62 void SlideTimingContext::endFastElement( sal_Int32 /*aElement*/ ) throw ( SAXException, RuntimeException)
63 {
64 }
65 
66 
67 Reference< XFastContextHandler > SlideTimingContext::createFastChildContext( sal_Int32 aElementToken, const Reference< XFastAttributeList >& xAttribs ) throw (SAXException, RuntimeException)
68 {
69 	Reference< XFastContextHandler > xRet;
70 
71 	switch( aElementToken )
72 	{
73 	case PPT_TOKEN( bldLst ):
74         xRet.set( new BuildListContext( *this, xAttribs, maTimeNodeList ) );
75 		break;
76 	case PPT_TOKEN( extLst ):
77         return xRet;
78 	case PPT_TOKEN( tnLst ):
79 		// timing nodes
80 	{
81         xRet.set( new TimeNodeListContext( *this, maTimeNodeList ) );
82 	}
83 	break;
84 
85 	default:
86 		break;
87 	}
88 
89 	if( !xRet.is() )
90 		xRet.set(this);
91 
92 	return xRet;
93 }
94 
95 void SAL_CALL SlideTimingContext::endDocument(  ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException)
96 {
97 
98 }
99 
100 } }
101 
102