namespace com::sun::star { namespace uno { template<typename T> class Reference; }
}
/** handle attributes through an SvXMLTokenMap */ class TokenContext : public SvXMLImportContext
{ public:
TokenContext( SvXMLImport& rImport );
// implement SvXMLImportContext methods:
/** call HandleAttribute for each attribute in the token map; *createawarningforallothers.Classesthatwishtooverride
* StartElement need to call the parent method. */ virtualvoid SAL_CALL startFastElement(
sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
/** call HandleChild for each child element in the token map; *createawarningforallothers.Classesthatwishtooverride *CreateChildContextmaywanttocalltheparentmethodfor
* handling of defaults. */ virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
/** Create a warning for all non-namespace character *content.Classesthatwishtodealwithcharactercontenthave *tooverridethismethodanyway,andwillthusgetridofthe
* warnings. */ virtualvoid SAL_CALL characters( const OUString& rChars ) override;
protected: /** will be called for each attribute */ virtualvoid HandleAttribute(const sax_fastparser::FastAttributeList::FastAttributeIter & aIter ) = 0;
/** will be called for each child element */ virtual SvXMLImportContext* HandleChild(
sal_Int32 nElementToken, const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttrList ) = 0;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.