summaryrefslogtreecommitdiff
path: root/include/sax
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-10-22 00:59:50 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-10-30 17:44:46 +0100
commit560aad17af07f4f2d653e2ec56770450029cc100 (patch)
tree0a8579893c1f84d23fd520fed81c05498caf6807 /include/sax
parent02a2b75550e8e94e29d252178cfb223452812d2b (diff)
tdf#42949 Fix IWYU warnings in include/sax/*
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I8061ef6a7a8c04baf350844fae1f97836ac03554 Reviewed-on: https://gerrit.libreoffice.org/62399 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'include/sax')
-rw-r--r--include/sax/fastattribs.hxx8
-rw-r--r--include/sax/fastparser.hxx2
-rw-r--r--include/sax/fshelper.hxx10
-rw-r--r--include/sax/tools/converter.hxx3
-rw-r--r--include/sax/tools/documenthandleradapter.hxx1
5 files changed, 11 insertions, 13 deletions
diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx
index a0f552226fe6..f8005a65a27a 100644
--- a/include/sax/fastattribs.hxx
+++ b/include/sax/fastattribs.hxx
@@ -21,16 +21,16 @@
#define INCLUDED_SAX_FASTATTRIBS_HXX
#include <com/sun/star/xml/sax/XFastAttributeList.hpp>
-#include <com/sun/star/xml/sax/XFastTokenHandler.hpp>
-#include <com/sun/star/xml/Attribute.hpp>
-#include <com/sun/star/xml/FastAttribute.hpp>
#include <cppuhelper/implbase.hxx>
#include <sax/saxdllapi.h>
-#include <map>
#include <vector>
+namespace com { namespace sun { namespace star { namespace xml { namespace sax { class XFastTokenHandler; } } } } }
+namespace com { namespace sun { namespace star { namespace xml { struct Attribute; } } } }
+namespace com { namespace sun { namespace star { namespace xml { struct FastAttribute; } } } }
+
namespace sax_fastparser
{
diff --git a/include/sax/fastparser.hxx b/include/sax/fastparser.hxx
index cb82dcf17210..ace7956382fb 100644
--- a/include/sax/fastparser.hxx
+++ b/include/sax/fastparser.hxx
@@ -22,7 +22,6 @@
#include <com/sun/star/xml/sax/XFastParser.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <cppuhelper/weak.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XInitialization.hpp>
@@ -31,7 +30,6 @@
namespace com { namespace sun { namespace star { namespace xml { namespace sax {
-class XFastContextHandler;
class XFastDocumentHandler;
class XFastTokenHandler;
diff --git a/include/sax/fshelper.hxx b/include/sax/fshelper.hxx
index 70ef1025218b..159b834a2fe1 100644
--- a/include/sax/fshelper.hxx
+++ b/include/sax/fshelper.hxx
@@ -20,12 +20,16 @@
#ifndef INCLUDED_SAX_FSHELPER_HXX
#define INCLUDED_SAX_FSHELPER_HXX
-#include <com/sun/star/io/XOutputStream.hpp>
-#include <sax/fastattribs.hxx>
-#include <stdarg.h>
+#include <com/sun/star/xml/sax/XFastAttributeList.hpp>
+#include <com/sun/star/uno/Reference.hxx>
+#include <com/sun/star/uno/Sequence.hxx>
+#include <sax/saxdllapi.h>
#include <memory>
#include <utility>
+namespace com { namespace sun { namespace star { namespace io { class XOutputStream; } } } }
+namespace sax_fastparser { class FastAttributeList; }
+
#define FSNS(namespc, element) ((namespc << 16) | element)
// Backwards compatibility for code that used FSEND to terminate the vararg.
// As soon as no supported LO version has the varargs code, this can be removed entirely
diff --git a/include/sax/tools/converter.hxx b/include/sax/tools/converter.hxx
index a8880d962920..d1dbdac62d54 100644
--- a/include/sax/tools/converter.hxx
+++ b/include/sax/tools/converter.hxx
@@ -25,7 +25,6 @@
#include <sal/types.h>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
-#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/util/MeasureUnit.hpp>
#include <tools/color.hxx>
@@ -38,8 +37,6 @@ namespace com { namespace sun { namespace star {
namespace util {
struct Date;
struct DateTime;
- struct DateWithTimezone;
- struct DateTimeWithTimezone;
struct Duration;
}
} } }
diff --git a/include/sax/tools/documenthandleradapter.hxx b/include/sax/tools/documenthandleradapter.hxx
index 4e2a1c17738a..202bfbcb42a2 100644
--- a/include/sax/tools/documenthandleradapter.hxx
+++ b/include/sax/tools/documenthandleradapter.hxx
@@ -11,7 +11,6 @@
#ifndef INCLUDED_SAX_TOOLS_DOCUMENTHANDLERADAPTER_HXX
#define INCLUDED_SAX_TOOLS_DOCUMENTHANDLERADAPTER_HXX
-#include <com/sun/star/xml/sax/SAXException.hpp>
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>