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:
parent
c0baf66fcf
commit
f3b3450868
@ -23,6 +23,7 @@
|
||||
#include "unohelper.hxx"
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <sstream>
|
||||
#include <o3tl/functional.hxx>
|
||||
#include <rtl/math.hxx>
|
||||
#include <rtl/ustrbuf.hxx>
|
||||
|
@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <sal/config.h>
|
||||
#include <rtl/instance.hxx>
|
||||
|
||||
#include <globals.hxx>
|
||||
#include <database.hxx>
|
||||
|
@ -209,3 +209,26 @@ blacklist:
|
||||
- com/sun/star/lang/XServiceInfo.hpp
|
||||
- com/sun/star/rendering/XBezierPolyPolygon2D.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
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include <tools/weakbase.hxx>
|
||||
#include <tools/mapunit.hxx>
|
||||
#include <tools/gen.hxx>
|
||||
#include <osl/diagnose.h>
|
||||
#include <typeinfo>
|
||||
#include <functional>
|
||||
|
||||
|
@ -11,9 +11,11 @@
|
||||
#define INCLUDED_TOOLS_XMLWALKER_HXX
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <tools/stream.hxx>
|
||||
#include <rtl/string.hxx>
|
||||
#include <memory>
|
||||
|
||||
class SvStream;
|
||||
|
||||
namespace tools
|
||||
{
|
||||
struct XmlWalkerImpl;
|
||||
|
@ -11,10 +11,12 @@
|
||||
#define INCLUDED_TOOLS_XMLWRITER_HXX
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <tools/stream.hxx>
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
class SvStream;
|
||||
|
||||
namespace tools
|
||||
{
|
||||
struct XmlWriterImpl;
|
||||
|
@ -23,10 +23,10 @@
|
||||
#define ZBUFFER_DEPTH_RANGE (double(256L * 256L * 256L))
|
||||
|
||||
#include <basegfx/matrix/b3dhommatrix.hxx>
|
||||
#include <basegfx/range/b3drange.hxx>
|
||||
#include <tools/gen.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>
|
||||
|
||||
/// Transformation sets for 3D output
|
||||
|
@ -19,17 +19,11 @@
|
||||
#ifndef INCLUDED_TOOLS_BIGINT_HXX
|
||||
#define INCLUDED_TOOLS_BIGINT_HXX
|
||||
|
||||
#include <climits>
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <tools/solar.h>
|
||||
|
||||
class SvStream;
|
||||
|
||||
#define MAX_DIGITS 8
|
||||
|
||||
class Fraction;
|
||||
|
||||
class SAL_WARN_UNUSED TOOLS_DLLPUBLIC BigInt
|
||||
{
|
||||
private:
|
||||
|
@ -19,8 +19,6 @@
|
||||
#ifndef INCLUDED_TOOLS_CONTNR_HXX
|
||||
#define INCLUDED_TOOLS_CONTNR_HXX
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#define TREELIST_APPEND (ULONG_MAX)
|
||||
|
@ -19,14 +19,13 @@
|
||||
#ifndef INCLUDED_TOOLS_DATE_HXX
|
||||
#define INCLUDED_TOOLS_DATE_HXX
|
||||
|
||||
#include <sal/log.hxx>
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
|
||||
#include <ostream>
|
||||
|
||||
#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,
|
||||
SATURDAY, SUNDAY };
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <tools/toolsdllapi.h>
|
||||
|
||||
#include <sal/detail/log.h>
|
||||
#include <sal/types.h>
|
||||
|
||||
/** The facilities provided by this header are deprecated. True assertions
|
||||
(that detect broken program logic) should use standard assert (which aborts
|
||||
|
@ -27,7 +27,6 @@
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <cppuhelper/exc_hlp.hxx>
|
||||
#include <osl/thread.h>
|
||||
|
||||
TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any& caughtException,
|
||||
const char* currentFunction, const char* fileAndLineNo,
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include <limits.h>
|
||||
#include <algorithm>
|
||||
#include <ostream>
|
||||
#include <cstdlib>
|
||||
|
||||
class SvStream;
|
||||
namespace rtl
|
||||
|
@ -19,8 +19,6 @@
|
||||
#ifndef INCLUDED_TOOLS_GLOBNAME_HXX
|
||||
#define INCLUDED_TOOLS_GLOBNAME_HXX
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <com/sun/star/uno/Sequence.hxx>
|
||||
#include <o3tl/cow_wrapper.hxx>
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <rtl/character.hxx>
|
||||
#include <rtl/string.hxx>
|
||||
#include <rtl/strbuf.hxx>
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <tools/debug.hxx>
|
||||
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <rtl/string.hxx>
|
||||
#include <rtl/textenc.h>
|
||||
#include <rtl/ustring.hxx>
|
||||
#include <tools/inetmime.hxx>
|
||||
#include <tools/stream.hxx>
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include <memory>
|
||||
|
||||
class INetMIMEMessage;
|
||||
class SvStream;
|
||||
|
||||
class TOOLS_DLLPUBLIC INetMIMEMessageStream
|
||||
{
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <tools/gen.hxx>
|
||||
#include <tools/debug.hxx>
|
||||
#include <o3tl/typed_flags_set.hxx>
|
||||
#include <o3tl/cow_wrapper.hxx>
|
||||
|
||||
@ -61,7 +60,6 @@ enum class PolyFlags : sal_uInt8
|
||||
class SvStream;
|
||||
class ImplPolygon;
|
||||
struct ImplPolyPolygon;
|
||||
namespace tools { class PolyPolygon; }
|
||||
|
||||
namespace basegfx
|
||||
{
|
||||
|
@ -19,7 +19,6 @@
|
||||
#ifndef INCLUDED_TOOLS_STREAM_HXX
|
||||
#define INCLUDED_TOOLS_STREAM_HXX
|
||||
|
||||
#include <limits>
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <tools/lineend.hxx>
|
||||
#include <tools/ref.hxx>
|
||||
|
@ -21,7 +21,8 @@
|
||||
#define INCLUDED_TOOLS_SVBORDER_HXX
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <tools/gen.hxx>
|
||||
|
||||
namespace tools { class Rectangle; }
|
||||
|
||||
class SAL_WARN_UNUSED TOOLS_DLLPUBLIC SvBorder
|
||||
{
|
||||
|
@ -20,9 +20,9 @@
|
||||
#define INCLUDED_TOOLS_TIME_HXX
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <tools/solar.h>
|
||||
#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
|
||||
|
@ -20,8 +20,6 @@
|
||||
#define INCLUDED_TOOLS_URLOBJ_HXX
|
||||
|
||||
#include <tools/toolsdllapi.h>
|
||||
#include <com/sun/star/uno/Reference.hxx>
|
||||
#include <rtl/string.h>
|
||||
#include <rtl/ustrbuf.hxx>
|
||||
#include <rtl/textenc.h>
|
||||
#include <sal/types.h>
|
||||
@ -36,6 +34,8 @@ namespace com { namespace sun { namespace star { namespace util {
|
||||
class XStringWidth;
|
||||
} } } }
|
||||
|
||||
namespace com { namespace sun { namespace star { namespace uno { template <typename > class Reference; } } } }
|
||||
|
||||
// Common URL prefixes for various schemes:
|
||||
#define INET_FTP_SCHEME "ftp://"
|
||||
#define INET_HTTP_SCHEME "http://"
|
||||
|
@ -20,7 +20,6 @@
|
||||
#define INCLUDED_TOOLS_WEAKBASE_H
|
||||
|
||||
#include <sal/types.h>
|
||||
#include <osl/diagnose.h>
|
||||
#include <rtl/ref.hxx>
|
||||
#include <tools/toolsdllapi.h>
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <comphelper/sequence.hxx>
|
||||
|
||||
#include <filter/msfilter/mscodec.hxx>
|
||||
#include <tools/stream.hxx>
|
||||
#include <tools/XmlWriter.hxx>
|
||||
|
||||
#include <com/sun/star/io/XSeekable.hpp>
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include <tools/color.hxx>
|
||||
#include <tools/datetime.hxx>
|
||||
#include <tools/link.hxx>
|
||||
#include <tools/solar.h>
|
||||
#include <unotools/options.hxx>
|
||||
#include "global.hxx"
|
||||
#include "bigrange.hxx"
|
||||
|
@ -18,6 +18,7 @@
|
||||
*/
|
||||
#include <tools/date.hxx>
|
||||
#include <sal/log.hxx>
|
||||
#include <com/sun/star/util/DateTime.hpp>
|
||||
|
||||
#include <systemdatetime.hxx>
|
||||
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include <rtl/math.hxx>
|
||||
#include <tools/time.hxx>
|
||||
#include <osl/diagnose.h>
|
||||
#include <com/sun/star/util/DateTime.hpp>
|
||||
|
||||
#include <systemdatetime.hxx>
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
#include <tools/svborder.hxx>
|
||||
#include <tools/gen.hxx>
|
||||
|
||||
tools::Rectangle & operator += ( tools::Rectangle & rRect, const SvBorder & rBorder )
|
||||
{
|
||||
|
@ -7,6 +7,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include <tools/stream.hxx>
|
||||
#include <tools/XmlWalker.hxx>
|
||||
#include <o3tl/make_unique.hxx>
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#include <tools/stream.hxx>
|
||||
#include <tools/XmlWriter.hxx>
|
||||
#include <o3tl/make_unique.hxx>
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <unotools/calendarwrapper.hxx>
|
||||
#include <unotools/digitgroupingiterator.hxx>
|
||||
#include <tools/debug.hxx>
|
||||
#include <tools/solar.h>
|
||||
#include <i18nlangtag/languagetag.hxx>
|
||||
|
||||
#include <com/sun/star/i18n/KNumberFormatUsage.hpp>
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <rtl/ustrbuf.hxx>
|
||||
#include <rtl/math.hxx>
|
||||
#include <osl/diagnose.h>
|
||||
#include <sstream>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user