25#include <osl/diagnose.h>
32 OSL_ENSURE( pContext.is() && pContext->IsPersistent(),
33 "non-persistent context" );
39 const OUString& rQName ) :
46 const OUString& rQName,
47 sal_uInt16 nActionMap ) :
54 const OUString& rQName,
63 const OUString& rQName,
66 sal_uInt16 nActionMap ) :
77 const OUString& rLocalName,
78 const OUString& rQName,
79 const Reference< XAttributeList >& )
83 XMLTransformerActions::key_type aKey( nPrefix, rLocalName );
84 XMLTransformerActions::const_iterator aIter =
89 switch( (*aIter).second.m_nActionType )
101 (*aIter).second.GetQNamePrefixFromParam1(),
102 (*aIter).second.GetQNameTokenFromParam1() ));
106 (*aIter).second.GetQNamePrefixFromParam1(),
107 (*aIter).second.GetQNameTokenFromParam1(),
108 static_cast< sal_uInt16
>( (*aIter).second.m_nParam2 ) ));
114 (*aIter).second.GetQNamePrefixFromParam1(),
115 (*aIter).second.GetQNameTokenFromParam1(),
116 static_cast< sal_uInt16
>(
117 (*aIter).second.m_nParam3 >> 16 ) ));
119 (*aIter).second.GetQNamePrefixFromParam2(),
120 (*aIter).second.GetQNameTokenFromParam2(),
122 (*aIter).second.m_nParam3 & 0xffff ) );
128 static_cast< sal_uInt16
>( (*aIter).second.m_nParam1 ) ));
132 (*aIter).second, rQName,
true );
133 OSL_ENSURE( pContext.is() && pContext->IsPersistent(),
134 "unknown or not persistent action" );
135 if( pContext.is() && !pContext->IsPersistent() )
virtual ~XMLPersElemContentTContext() override
void AddContent(rtl::Reference< XMLTransformerContext > const &pContent)
virtual void ExportContent() override
virtual rtl::Reference< XMLTransformerContext > CreateChildContext(sal_uInt16 nPrefix, const OUString &rLocalName, const OUString &rQName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
std::vector< rtl::Reference< XMLTransformerContext > > m_aChildContexts
XMLPersElemContentTContext(XMLTransformerBase &rTransformer, const OUString &rQName)
XMLTransformerBase & GetTransformer()
XMLTokenEnum
The enumeration of all XML tokens.