diff options
Diffstat (limited to 'include/xmloff/xmlictxt.hxx')
-rw-r--r-- | include/xmloff/xmlictxt.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/xmloff/xmlictxt.hxx b/include/xmloff/xmlictxt.hxx index 7753a00f3c68..03dd3121ba5c 100644 --- a/include/xmloff/xmlictxt.hxx +++ b/include/xmloff/xmlictxt.hxx @@ -27,6 +27,7 @@ #include <com/sun/star/lang/XTypeProvider.hpp> #include <rtl/ustring.hxx> #include <xmloff/namespacemap.hxx> +#include <sax/fastattribs.hxx> #include <memory> namespace com::sun::star::xml::sax { class XAttributeList; } @@ -131,6 +132,14 @@ public: virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) final override; }; +void XMLOFF_DLLPUBLIC XMLOFF_WARN_UNKNOWN(const char *area, sax_fastparser::FastAttributeList::FastAttributeIter const & rIter); + +#define XMLOFF_WARN_UNKNOWN_ATTR(area, token, value) \ + SAL_WARN(area, "unknown attribute " << SvXMLImport::getPrefixAndNameFromToken(token) << "=" << value); + +#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token) \ + SAL_WARN(area, "unknown element " << SvXMLImport::getPrefixAndNameFromToken(token)); + #endif // INCLUDED_XMLOFF_XMLICTXT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |