2010-10-27 07:03:58 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2008-01-17 01:06:10 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 09:50:15 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2008-01-17 01:06:10 -06:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2008-01-17 01:06:10 -06:00
|
|
|
*
|
2008-04-10 09:50:15 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2008-01-17 01:06:10 -06:00
|
|
|
*
|
2008-04-10 09:50:15 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2008-01-17 01:06:10 -06:00
|
|
|
*
|
2008-04-10 09:50:15 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2008-01-17 01:06:10 -06:00
|
|
|
*
|
2008-04-10 09:50:15 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2008-01-17 01:06:10 -06:00
|
|
|
*
|
2008-04-10 09:50:15 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2008-01-17 01:06:10 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef OOX_PPT_COMMONBEHAVIORCONTEXT
|
|
|
|
#define OOX_PPT_COMMONBEHAVIORCONTEXT
|
|
|
|
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
#include "oox/ppt/timenodelistcontext.hxx"
|
|
|
|
#include "oox/ppt/animationspersist.hxx"
|
|
|
|
#include "conditioncontext.hxx"
|
|
|
|
#include "pptfilterhelpers.hxx"
|
|
|
|
|
|
|
|
namespace oox { namespace ppt {
|
|
|
|
|
|
|
|
struct Attribute
|
|
|
|
{
|
|
|
|
::rtl::OUString name;
|
|
|
|
MS_AttributeNames type;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** CT_TLCommonBehaviorData */
|
|
|
|
class CommonBehaviorContext
|
|
|
|
: public TimeNodeContext
|
|
|
|
{
|
|
|
|
public:
|
2011-07-05 06:02:50 -05:00
|
|
|
CommonBehaviorContext( ::oox::core::FragmentHandler2& rParent,
|
2008-03-05 11:51:09 -06:00
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& xAttribs,
|
|
|
|
const TimeNodePtr & pNode );
|
2008-01-17 01:06:10 -06:00
|
|
|
~CommonBehaviorContext( )
|
|
|
|
throw( );
|
|
|
|
|
2011-07-05 06:02:50 -05:00
|
|
|
virtual void onEndElement();
|
2008-01-17 01:06:10 -06:00
|
|
|
|
2011-07-05 06:02:50 -05:00
|
|
|
virtual void onCharacters( const ::rtl::OUString& aChars );
|
2008-01-17 01:06:10 -06:00
|
|
|
|
2011-07-05 06:02:50 -05:00
|
|
|
virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs );
|
2008-01-17 01:06:10 -06:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool mbInAttrList;
|
|
|
|
bool mbIsInAttrName;
|
|
|
|
std::list< Attribute > maAttributes;
|
|
|
|
::rtl::OUString msCurrentAttribute;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} }
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
2010-10-27 07:03:58 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|