26#include <osl/diagnose.h>
34 const OUString& rQName ) :
44 const Reference< XAttributeList >& rAttrList )
48 OSL_ENSURE( pActions,
"go no actions" );
50 Reference< XAttributeList > xAttrList( rAttrList );
52 sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
54 for( sal_Int16
i=0;
i < nAttrCount;
i++ )
56 const OUString& rAttrName = xAttrList->getNameByIndex(
i );
62 XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
63 XMLTransformerActions::const_iterator aIter =
64 pActions->find( aKey );
66 if( aIter != pActions->end() )
68 if( !pMutableAttrList )
72 xAttrList = pMutableAttrList;
74 const OUString& rAttrValue = xAttrList->getValueByIndex(
i );
75 switch( (*aIter).second.m_nActionType )
83 pMutableAttrList->SetValueByIndex(
89 OSL_ENSURE(
false,
"unknown action" );
sal_uInt16 GetKeyByAttrName(const OUString &rAttrName, OUString *pPrefix, OUString *pLocalName, OUString *pNamespace) const
XMLDlgOASISTransformerContext(XMLTransformerBase &rTransformer, const OUString &rQName)
virtual ~XMLDlgOASISTransformerContext() override
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
XMLTransformerBase & GetTransformer()
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList)
Handling of tokens in XML:
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken