merge the formfield patch from ooo-build
[ooovba.git] / oox / source / ppt / commonbehaviorcontext.hxx
blobf84933965d195863491051be050ab447bcf7ee1a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: commonbehaviorcontext.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #ifndef OOX_PPT_COMMONBEHAVIORCONTEXT
33 #define OOX_PPT_COMMONBEHAVIORCONTEXT
35 #include <rtl/ustring.hxx>
36 #include "oox/ppt/timenodelistcontext.hxx"
37 #include "oox/ppt/animationspersist.hxx"
38 #include "conditioncontext.hxx"
39 #include "pptfilterhelpers.hxx"
41 namespace oox { namespace ppt {
43 struct Attribute
45 ::rtl::OUString name;
46 MS_AttributeNames type;
50 /** CT_TLCommonBehaviorData */
51 class CommonBehaviorContext
52 : public TimeNodeContext
54 public:
55 CommonBehaviorContext( ::oox::core::ContextHandler& rParent,
56 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttribs,
57 const TimeNodePtr & pNode );
58 ~CommonBehaviorContext( )
59 throw( );
61 virtual void SAL_CALL endFastElement( sal_Int32 aElement )
62 throw ( ::com::sun::star::xml::sax::SAXException,
63 ::com::sun::star::uno::RuntimeException );
65 virtual void SAL_CALL characters( const ::rtl::OUString& aChars )
66 throw ( ::com::sun::star::xml::sax::SAXException,
67 ::com::sun::star::uno::RuntimeException );
69 virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( ::sal_Int32 aElementToken,
70 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& /*xAttribs*/ )
71 throw ( ::com::sun::star::xml::sax::SAXException,
72 ::com::sun::star::uno::RuntimeException );
74 private:
75 bool mbInAttrList;
76 bool mbIsInAttrName;
77 std::list< Attribute > maAttributes;
78 ::rtl::OUString msCurrentAttribute;
82 } }
85 #endif