diff --git a/xmloff/source/core/DomExport.cxx b/xmloff/source/core/DomExport.cxx index f25e7c9fae76..b66fb47023b6 100644 --- a/xmloff/source/core/DomExport.cxx +++ b/xmloff/source/core/DomExport.cxx @@ -63,16 +63,6 @@ public: virtual ~DomVisitor() {} virtual void element( const Reference& ) {} virtual void character( const Reference& ) {} - void attribute( const Reference& ) {} - void cdata( const Reference& ) {} - void comment( const Reference& ) {} - void documentFragment( const Reference& ) {} - void document( const Reference& ) {} - void documentType( const Reference& ) {} - void entity( const Reference& ) {} - void entityReference( const Reference& ) {} - void notation( const Reference& ) {} - void processingInstruction( const Reference& ) {} virtual void endElement( const Reference& ) {} }; @@ -86,37 +76,27 @@ void visitNode( DomVisitor& rVisitor, const Reference& xNode ) switch( xNode->getNodeType() ) { case NodeType_ATTRIBUTE_NODE: - rVisitor.attribute( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_CDATA_SECTION_NODE: - rVisitor.cdata( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_COMMENT_NODE: - rVisitor.comment( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_DOCUMENT_FRAGMENT_NODE: - rVisitor.documentFragment( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_DOCUMENT_NODE: - rVisitor.document( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_DOCUMENT_TYPE_NODE: - rVisitor.documentType( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_ELEMENT_NODE: rVisitor.element( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_ENTITY_NODE: - rVisitor.entity( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_ENTITY_REFERENCE_NODE: - rVisitor.entityReference( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_NOTATION_NODE: - rVisitor.notation( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_PROCESSING_INSTRUCTION_NODE: - rVisitor.processingInstruction( Reference( xNode, UNO_QUERY_THROW ) ); break; case NodeType_TEXT_NODE: rVisitor.character( Reference( xNode, UNO_QUERY_THROW ) ); diff --git a/xmloff/source/forms/formattributes.cxx b/xmloff/source/forms/formattributes.cxx index 0ccb33973a18..1973c23adf29 100644 --- a/xmloff/source/forms/formattributes.cxx +++ b/xmloff/source/forms/formattributes.cxx @@ -140,12 +140,6 @@ namespace xmloff return ""; } - sal_uInt16 OAttributeMetaData::getDatabaseAttributeNamespace(sal_Int32 /*_nId*/) - { - // nothing special here - return XML_NAMESPACE_FORM; - } - const sal_Char* OAttributeMetaData::getBindingAttributeName(sal_Int32 _nId) { switch (_nId) @@ -159,12 +153,6 @@ namespace xmloff return ""; } - sal_uInt16 OAttributeMetaData::getBindingAttributeNamespace(sal_Int32) - { - // nothing special here - return XML_NAMESPACE_FORM; - } - const sal_Char* OAttributeMetaData::getSpecialAttributeName(sal_Int32 _nId) { switch (_nId) @@ -214,12 +202,6 @@ namespace xmloff return ""; } - sal_uInt16 OAttributeMetaData::getOfficeFormsAttributeNamespace(OfficeFormsAttributes /* _eAttrib */) - { - // nothing special here - return XML_NAMESPACE_FORM; - } - //= OAttribute2Property OAttribute2Property::OAttribute2Property() { diff --git a/xmloff/source/forms/formattributes.hxx b/xmloff/source/forms/formattributes.hxx index c5802a0ea5b2..299e8e0cc753 100644 --- a/xmloff/source/forms/formattributes.hxx +++ b/xmloff/source/forms/formattributes.hxx @@ -27,6 +27,7 @@ #include #include #include +#include struct SvXMLEnumMapEntry; @@ -181,7 +182,11 @@ namespace xmloff @param _nId the id of the attribute. Has to be one of the DA_* constants. */ - static sal_uInt16 getDatabaseAttributeNamespace(sal_Int32 _nId); + static inline sal_uInt16 getDatabaseAttributeNamespace(sal_Int32 ) + { + // nothing special here + return XML_NAMESPACE_FORM; + } /** calculates the xml attribute representation of a special attribute. @param _nId @@ -199,7 +204,11 @@ namespace xmloff @param _nId the id of the attribute. Has to be one of the BA_* constants. */ - static sal_uInt16 getBindingAttributeNamespace(sal_Int32 _nId); + static inline sal_uInt16 getBindingAttributeNamespace(sal_Int32 ) + { + // nothing special here + return XML_NAMESPACE_FORM; + } /** calculates the xml namespace key to use for a special attribute. @param _nId @@ -217,7 +226,10 @@ namespace xmloff @param _nId the id of the attribute */ - static sal_uInt16 getOfficeFormsAttributeNamespace(OfficeFormsAttributes _eAttrib); + static inline sal_uInt16 getOfficeFormsAttributeNamespace(OfficeFormsAttributes ) + { // nothing special here + return XML_NAMESPACE_FORM; + } }; //= OAttribute2Property