tdf#42949 Fix IWYU warnings in include/tools/*

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: I9dc920e9388f9e2aa4dcae1f0b3f7562d08f7f70
Reviewed-on: https://gerrit.libreoffice.org/61809
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
This commit is contained in:
Gabor Kelemen 2018-10-15 21:44:22 +02:00 committed by Miklos Vajna
parent c0baf66fcf
commit f3b3450868
32 changed files with 51 additions and 32 deletions

View File

@ -23,6 +23,7 @@
#include "unohelper.hxx" #include "unohelper.hxx"
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
#include <sstream>
#include <o3tl/functional.hxx> #include <o3tl/functional.hxx>
#include <rtl/math.hxx> #include <rtl/math.hxx>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>

View File

@ -18,6 +18,7 @@
*/ */
#include <sal/config.h> #include <sal/config.h>
#include <rtl/instance.hxx>
#include <globals.hxx> #include <globals.hxx>
#include <database.hxx> #include <database.hxx>

View File

@ -209,3 +209,26 @@ blacklist:
- com/sun/star/lang/XServiceInfo.hpp - com/sun/star/lang/XServiceInfo.hpp
- com/sun/star/rendering/XBezierPolyPolygon2D.hpp - com/sun/star/rendering/XBezierPolyPolygon2D.hpp
- com/sun/star/rendering/XLinePolyPolygon2D.hpp - com/sun/star/rendering/XLinePolyPolygon2D.hpp
include/tools/debug.hxx:
# Used behind #ifndef
- tools/toolsdllapi.h
include/tools/diagnose_ex.h:
# Needed for macros
- com/sun/star/lang/IllegalArgumentException.hpp
- com/sun/star/uno/RuntimeException.hpp
- rtl/ustring.hxx
include/tools/fontenum.hxx:
# Needed for template
- o3tl/typed_flags_set.hxx
include/tools/svlibrary.h:
# Used behind #ifndef
- osl/module.h
include/tools/poly.hxx:
# Needed for template
- o3tl/typed_flags_set.hxx
include/tools/stream.hxx:
# Needed for template
- o3tl/typed_flags_set.hxx
include/tools/urlobj.hxx:
# Needed for template
- o3tl/typed_flags_set.hxx

View File

@ -36,6 +36,7 @@
#include <tools/weakbase.hxx> #include <tools/weakbase.hxx>
#include <tools/mapunit.hxx> #include <tools/mapunit.hxx>
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include <osl/diagnose.h>
#include <typeinfo> #include <typeinfo>
#include <functional> #include <functional>

View File

@ -11,9 +11,11 @@
#define INCLUDED_TOOLS_XMLWALKER_HXX #define INCLUDED_TOOLS_XMLWALKER_HXX
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <tools/stream.hxx> #include <rtl/string.hxx>
#include <memory> #include <memory>
class SvStream;
namespace tools namespace tools
{ {
struct XmlWalkerImpl; struct XmlWalkerImpl;

View File

@ -11,10 +11,12 @@
#define INCLUDED_TOOLS_XMLWRITER_HXX #define INCLUDED_TOOLS_XMLWRITER_HXX
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <tools/stream.hxx> #include <rtl/ustring.hxx>
#include <memory> #include <memory>
#include <vector> #include <vector>
class SvStream;
namespace tools namespace tools
{ {
struct XmlWriterImpl; struct XmlWriterImpl;

View File

@ -23,10 +23,10 @@
#define ZBUFFER_DEPTH_RANGE (double(256L * 256L * 256L)) #define ZBUFFER_DEPTH_RANGE (double(256L * 256L * 256L))
#include <basegfx/matrix/b3dhommatrix.hxx> #include <basegfx/matrix/b3dhommatrix.hxx>
#include <basegfx/range/b3drange.hxx>
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx> #include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/point/b2dpoint.hxx> #include <basegfx/point/b3dpoint.hxx>
#include <basegfx/vector/b3dvector.hxx>
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
/// Transformation sets for 3D output /// Transformation sets for 3D output

View File

@ -19,17 +19,11 @@
#ifndef INCLUDED_TOOLS_BIGINT_HXX #ifndef INCLUDED_TOOLS_BIGINT_HXX
#define INCLUDED_TOOLS_BIGINT_HXX #define INCLUDED_TOOLS_BIGINT_HXX
#include <climits>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <tools/solar.h>
class SvStream;
#define MAX_DIGITS 8 #define MAX_DIGITS 8
class Fraction;
class SAL_WARN_UNUSED TOOLS_DLLPUBLIC BigInt class SAL_WARN_UNUSED TOOLS_DLLPUBLIC BigInt
{ {
private: private:

View File

@ -19,8 +19,6 @@
#ifndef INCLUDED_TOOLS_CONTNR_HXX #ifndef INCLUDED_TOOLS_CONTNR_HXX
#define INCLUDED_TOOLS_CONTNR_HXX #define INCLUDED_TOOLS_CONTNR_HXX
#include <tools/toolsdllapi.h>
#include <limits.h> #include <limits.h>
#define TREELIST_APPEND (ULONG_MAX) #define TREELIST_APPEND (ULONG_MAX)

View File

@ -19,14 +19,13 @@
#ifndef INCLUDED_TOOLS_DATE_HXX #ifndef INCLUDED_TOOLS_DATE_HXX
#define INCLUDED_TOOLS_DATE_HXX #define INCLUDED_TOOLS_DATE_HXX
#include <sal/log.hxx>
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <ostream> #include <ostream>
#include <com/sun/star/util/Date.hpp> #include <com/sun/star/util/Date.hpp>
#include <com/sun/star/util/DateTime.hpp>
namespace com { namespace sun { namespace star { namespace util { struct DateTime; } } } }
enum DayOfWeek { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, enum DayOfWeek { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
SATURDAY, SUNDAY }; SATURDAY, SUNDAY };

View File

@ -22,7 +22,6 @@
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <sal/detail/log.h> #include <sal/detail/log.h>
#include <sal/types.h>
/** The facilities provided by this header are deprecated. True assertions /** The facilities provided by this header are deprecated. True assertions
(that detect broken program logic) should use standard assert (which aborts (that detect broken program logic) should use standard assert (which aborts

View File

@ -27,7 +27,6 @@
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/exc_hlp.hxx>
#include <osl/thread.h>
TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any& caughtException, TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any& caughtException,
const char* currentFunction, const char* fileAndLineNo, const char* currentFunction, const char* fileAndLineNo,

View File

@ -24,7 +24,6 @@
#include <limits.h> #include <limits.h>
#include <algorithm> #include <algorithm>
#include <ostream> #include <ostream>
#include <cstdlib>
class SvStream; class SvStream;
namespace rtl namespace rtl

View File

@ -19,8 +19,6 @@
#ifndef INCLUDED_TOOLS_GLOBNAME_HXX #ifndef INCLUDED_TOOLS_GLOBNAME_HXX
#define INCLUDED_TOOLS_GLOBNAME_HXX #define INCLUDED_TOOLS_GLOBNAME_HXX
#include <vector>
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Sequence.hxx>
#include <o3tl/cow_wrapper.hxx> #include <o3tl/cow_wrapper.hxx>

View File

@ -22,7 +22,6 @@
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <rtl/character.hxx> #include <rtl/character.hxx>
#include <rtl/string.hxx> #include <rtl/string.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <tools/debug.hxx> #include <tools/debug.hxx>

View File

@ -21,7 +21,6 @@
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <rtl/string.hxx> #include <rtl/string.hxx>
#include <rtl/textenc.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <tools/inetmime.hxx> #include <tools/inetmime.hxx>
#include <tools/stream.hxx> #include <tools/stream.hxx>

View File

@ -26,7 +26,6 @@
#include <memory> #include <memory>
class INetMIMEMessage; class INetMIMEMessage;
class SvStream;
class TOOLS_DLLPUBLIC INetMIMEMessageStream class TOOLS_DLLPUBLIC INetMIMEMessageStream
{ {

View File

@ -21,7 +21,6 @@
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include <tools/debug.hxx>
#include <o3tl/typed_flags_set.hxx> #include <o3tl/typed_flags_set.hxx>
#include <o3tl/cow_wrapper.hxx> #include <o3tl/cow_wrapper.hxx>
@ -61,7 +60,6 @@ enum class PolyFlags : sal_uInt8
class SvStream; class SvStream;
class ImplPolygon; class ImplPolygon;
struct ImplPolyPolygon; struct ImplPolyPolygon;
namespace tools { class PolyPolygon; }
namespace basegfx namespace basegfx
{ {

View File

@ -19,7 +19,6 @@
#ifndef INCLUDED_TOOLS_STREAM_HXX #ifndef INCLUDED_TOOLS_STREAM_HXX
#define INCLUDED_TOOLS_STREAM_HXX #define INCLUDED_TOOLS_STREAM_HXX
#include <limits>
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <tools/lineend.hxx> #include <tools/lineend.hxx>
#include <tools/ref.hxx> #include <tools/ref.hxx>

View File

@ -21,7 +21,8 @@
#define INCLUDED_TOOLS_SVBORDER_HXX #define INCLUDED_TOOLS_SVBORDER_HXX
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <tools/gen.hxx>
namespace tools { class Rectangle; }
class SAL_WARN_UNUSED TOOLS_DLLPUBLIC SvBorder class SAL_WARN_UNUSED TOOLS_DLLPUBLIC SvBorder
{ {

View File

@ -20,9 +20,9 @@
#define INCLUDED_TOOLS_TIME_HXX #define INCLUDED_TOOLS_TIME_HXX
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <tools/solar.h>
#include <com/sun/star/util/Time.hpp> #include <com/sun/star/util/Time.hpp>
#include <com/sun/star/util/DateTime.hpp>
namespace com { namespace sun { namespace star { namespace util { struct DateTime; } } } }
/** /**
@WARNING: This class can serve both as wall clock time and time duration, and @WARNING: This class can serve both as wall clock time and time duration, and

View File

@ -20,8 +20,6 @@
#define INCLUDED_TOOLS_URLOBJ_HXX #define INCLUDED_TOOLS_URLOBJ_HXX
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>
#include <com/sun/star/uno/Reference.hxx>
#include <rtl/string.h>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <rtl/textenc.h> #include <rtl/textenc.h>
#include <sal/types.h> #include <sal/types.h>
@ -36,6 +34,8 @@ namespace com { namespace sun { namespace star { namespace util {
class XStringWidth; class XStringWidth;
} } } } } } } }
namespace com { namespace sun { namespace star { namespace uno { template <typename > class Reference; } } } }
// Common URL prefixes for various schemes: // Common URL prefixes for various schemes:
#define INET_FTP_SCHEME "ftp://" #define INET_FTP_SCHEME "ftp://"
#define INET_HTTP_SCHEME "http://" #define INET_HTTP_SCHEME "http://"

View File

@ -20,7 +20,6 @@
#define INCLUDED_TOOLS_WEAKBASE_H #define INCLUDED_TOOLS_WEAKBASE_H
#include <sal/types.h> #include <sal/types.h>
#include <osl/diagnose.h>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <tools/toolsdllapi.h> #include <tools/toolsdllapi.h>

View File

@ -23,6 +23,7 @@
#include <comphelper/sequence.hxx> #include <comphelper/sequence.hxx>
#include <filter/msfilter/mscodec.hxx> #include <filter/msfilter/mscodec.hxx>
#include <tools/stream.hxx>
#include <tools/XmlWriter.hxx> #include <tools/XmlWriter.hxx>
#include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/io/XSeekable.hpp>

View File

@ -29,6 +29,7 @@
#include <tools/color.hxx> #include <tools/color.hxx>
#include <tools/datetime.hxx> #include <tools/datetime.hxx>
#include <tools/link.hxx> #include <tools/link.hxx>
#include <tools/solar.h>
#include <unotools/options.hxx> #include <unotools/options.hxx>
#include "global.hxx" #include "global.hxx"
#include "bigrange.hxx" #include "bigrange.hxx"

View File

@ -18,6 +18,7 @@
*/ */
#include <tools/date.hxx> #include <tools/date.hxx>
#include <sal/log.hxx> #include <sal/log.hxx>
#include <com/sun/star/util/DateTime.hpp>
#include <systemdatetime.hxx> #include <systemdatetime.hxx>

View File

@ -44,6 +44,7 @@
#include <rtl/math.hxx> #include <rtl/math.hxx>
#include <tools/time.hxx> #include <tools/time.hxx>
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include <com/sun/star/util/DateTime.hpp>
#include <systemdatetime.hxx> #include <systemdatetime.hxx>

View File

@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <tools/svborder.hxx> #include <tools/svborder.hxx>
#include <tools/gen.hxx>
tools::Rectangle & operator += ( tools::Rectangle & rRect, const SvBorder & rBorder ) tools::Rectangle & operator += ( tools::Rectangle & rRect, const SvBorder & rBorder )
{ {

View File

@ -7,6 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include <tools/stream.hxx>
#include <tools/XmlWalker.hxx> #include <tools/XmlWalker.hxx>
#include <o3tl/make_unique.hxx> #include <o3tl/make_unique.hxx>

View File

@ -7,6 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include <tools/stream.hxx>
#include <tools/XmlWriter.hxx> #include <tools/XmlWriter.hxx>
#include <o3tl/make_unique.hxx> #include <o3tl/make_unique.hxx>

View File

@ -26,6 +26,7 @@
#include <unotools/calendarwrapper.hxx> #include <unotools/calendarwrapper.hxx>
#include <unotools/digitgroupingiterator.hxx> #include <unotools/digitgroupingiterator.hxx>
#include <tools/debug.hxx> #include <tools/debug.hxx>
#include <tools/solar.h>
#include <i18nlangtag/languagetag.hxx> #include <i18nlangtag/languagetag.hxx>
#include <com/sun/star/i18n/KNumberFormatUsage.hpp> #include <com/sun/star/i18n/KNumberFormatUsage.hpp>

View File

@ -24,6 +24,7 @@
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <rtl/math.hxx> #include <rtl/math.hxx>
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include <sstream>
namespace namespace
{ {