20#include <config_features.h>
24#include <osl/diagnose.h>
29#include <oox/token/namespaces.hxx>
30#include <oox/token/tokens.hxx>
32#include <com/sun/star/io/XInputStream.hpp>
45 class ShapeTargetElementContext
46 :
public FragmentHandler2
49 ShapeTargetElementContext( FragmentHandler2
const & rParent, ShapeTargetElement & aValue )
50 : FragmentHandler2( rParent )
57 switch( aElementToken )
63 case PPT_TOKEN( txEl ):
67 case PPT_TOKEN( subSp ):
70 maShapeTarget.msSubShapeId = rAttribs.getStringDefaulted( XML_spid);
72 case PPT_TOKEN( graphicEl ):
77 maShapeTarget.msSubShapeId = rAttribs.getStringDefaulted( XML_id);
79 case PPT_TOKEN( oleChartEl ):
83 case PPT_TOKEN( charRg ):
84 case PPT_TOKEN( pRg ):
105 : FragmentHandler2( rParent ),
108 OSL_ENSURE(
mpTarget,
"no valid target passed" );
117 switch( aElementToken )
119 case PPT_TOKEN( inkTgt ):
129 case PPT_TOKEN( sldTgt ):
132 case PPT_TOKEN( sndTgt ):
136#if HAVE_FEATURE_AVMEDIA
138 Reference<css::io::XInputStream>
139 xInputStream = getFilter().openInputStream(srcFile);
141 if (xInputStream.is())
143 ::avmedia::EmbedMedia(getFilter().getModel(), srcFile,
mpTarget->msValue, xInputStream);
144 xInputStream->closeInput();
149 case PPT_TOKEN( spTgt ):
154 return new ShapeTargetElementContext( *
this,
mpTarget->maShapeTarget );
159 "unhandled tag " << getBaseToken(aElementToken)
160 <<
" in TL_TimeTargetElement");
Provides access to attribute values of an element.
OUString getStringDefaulted(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute, returns an empty string if attribute not present...
TimeTargetElementContext(::oox::core::FragmentHandler2 const &rParent, AnimTargetElementPtr aValue)
AnimTargetElementPtr mpTarget
virtual ~TimeTargetElementContext() noexcept override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 aElementToken, const AttributeList &rAttribs) override
#define SAL_INFO(area, stream)
if(aStr !=aBuf) UpdateName_Impl(m_xFollowLb.get()
::rtl::Reference< ContextHandler > ContextHandlerRef
IndexRange GetIndexRange(const Reference< XFastAttributeList > &xAttributes)
OUString getEmbeddedWAVAudioFile(const core::Relations &rRelations, const AttributeList &rAttribs)
std::shared_ptr< AnimTargetElement > AnimTargetElementPtr
ShapeTargetElement & maShapeTarget