40 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
52 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
57 if( pContext ==
nullptr )
65 const OUString& Namespace,
const OUString& Name,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
83 const sal_Unicode* pEnd = &( pBegin[ rCharacters.getLength() ] );
static bool lcl_IsWhiteSpace(sal_Unicode c)
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
virtual SvXMLImportContext * HandleChild(sal_Int32 nElementToken, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)=0
will be called for each child element
virtual void SAL_CALL characters(const OUString &rChars) override
Create a warning for all non-namespace character content.
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext(const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
TokenContext(SvXMLImport &rImport)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
call HandleAttribute for each attribute in the token map; create a warning for all others.
virtual void HandleAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter &aIter)=0
will be called for each attribute
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
call HandleChild for each child element in the token map; create a warning for all others.
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
#define XMLERROR_UNKNOWN_ELEMENT
#define XMLERROR_UNKNOWN_CHARACTERS