28#include <osl/diagnose.h>
36 std::u16string_view rLocalName,
37 const Reference< XAttributeList >& rAttrList )
43 sal_Int16 nAttrCount = rAttrList.is() ? rAttrList->getLength() : 0;
44 for( sal_Int16
i=0;
i < nAttrCount;
i++ )
46 OUString aAttrName( rAttrList->getNameByIndex(
i ) );
54 OUString sHRef( rAttrList->getValueByIndex(
i ) );
62 return sHRef.isEmpty() ||
'#' != sHRef[0];
72 const OUString& rQName ) :
74 m_bIgnoreElement( false )
83 const Reference< XAttributeList >& rAttrList )
87 sal_Int16 nAttrCount = rAttrList.is() ? rAttrList->getLength() : 0;
88 for( sal_Int16
i=0;
i < nAttrCount;
i++ )
90 const OUString& rAttrName = rAttrList->getNameByIndex(
i );
97 const OUString& rAttrValue = rAttrList->getValueByIndex(
i );
110 const OUString& rLocalName,
111 const OUString& rQName,
112 const Reference< XAttributeList >& rAttrList )
127 OSL_ENSURE( pActions,
"go no actions" );
128 XMLTransformerActions::key_type aKey( nPrefix, rLocalName );
129 XMLTransformerActions::const_iterator aIter = pActions->find( aKey );
131 if( aIter != pActions->end() )
133 switch( (*aIter).second.m_nActionType )
144 ->AppendAttributeList( rAttrList );
158 OSL_ENSURE(
false,
"unknown action" );
@ OASIS_FRAME_ELEM_ACTIONS
sal_uInt16 GetKeyByAttrName(const OUString &rAttrName, OUString *pPrefix, OUString *pLocalName, OUString *pNamespace) const
virtual void Characters(const OUString &rChars) 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
bool IsLinkedEmbeddedObject(std::u16string_view rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &rAttrList)
virtual ~XMLFrameOASISTransformerContext() override
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
XMLFrameOASISTransformerContext(XMLTransformerBase &rTransformer, const OUString &rQName)
css::uno::Reference< css::xml::sax::XAttributeList > m_xAttrList
virtual void EndElement() override
virtual rtl::Reference< XMLTransformerContext > CreateChildContext(sal_uInt16 nPrefix, const OUString &rLocalName, const OUString &rQName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList)
virtual void Characters(const OUString &rChars)
XMLTransformerBase & GetTransformer()
Handling of tokens in XML:
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
constexpr sal_uInt16 XML_NAMESPACE_XLINK
constexpr sal_uInt16 XML_NAMESPACE_PRESENTATION