diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-10-24 21:19:37 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-10-25 11:22:21 +0200 |
commit | 5af524251642a43747f56c1f24c41222fd9ac69f (patch) | |
tree | 0195f3a01e12d4f047e7da825bd042977c138b76 /sw/inc | |
parent | 8f71eb5182f7fe6d3e19705ed233f5f84a0a6208 (diff) |
sw: fix some IWYU warnings
Change-Id: Ic7e6aa31e5c6d210101da7223a294092ab5b7481
Reviewed-on: https://gerrit.libreoffice.org/62334
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/calbck.hxx | 5 | ||||
-rw-r--r-- | sw/inc/cellatr.hxx | 1 | ||||
-rw-r--r-- | sw/inc/charfmt.hxx | 1 | ||||
-rw-r--r-- | sw/inc/dbgoutsw.hxx | 1 | ||||
-rw-r--r-- | sw/inc/dbmgr.hxx | 3 | ||||
-rw-r--r-- | sw/inc/dcontact.hxx | 1 | ||||
-rw-r--r-- | sw/inc/docary.hxx | 1 | ||||
-rw-r--r-- | sw/inc/docsh.hxx | 4 | ||||
-rw-r--r-- | sw/inc/fldbas.hxx | 1 | ||||
-rw-r--r-- | sw/inc/fmtcol.hxx | 1 | ||||
-rw-r--r-- | sw/inc/frmfmt.hxx | 1 | ||||
-rw-r--r-- | sw/inc/hhcwrp.hxx | 1 | ||||
-rw-r--r-- | sw/inc/ndgrf.hxx | 1 | ||||
-rw-r--r-- | sw/inc/swmodule.hxx | 2 | ||||
-rw-r--r-- | sw/inc/txtftn.hxx | 3 |
15 files changed, 12 insertions, 15 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx index 08f9e254829e..d470ea12a9ac 100644 --- a/sw/inc/calbck.hxx +++ b/sw/inc/calbck.hxx @@ -20,17 +20,18 @@ #ifndef INCLUDED_SW_INC_CALBCK_HXX #define INCLUDED_SW_INC_CALBCK_HXX +#include <cassert> + #include <svl/hint.hxx> #include <svl/broadcast.hxx> -#include <svl/poolitem.hxx> #include "swdllapi.h" #include "ring.hxx" -#include "hintids.hxx" #include <type_traits> #include <vector> #include <memory> class SwModify; +class SfxPoolItem; /* SwModify and SwClient cooperate in propagating attribute changes. diff --git a/sw/inc/cellatr.hxx b/sw/inc/cellatr.hxx index 62a5716c3af0..3b9de189478f 100644 --- a/sw/inc/cellatr.hxx +++ b/sw/inc/cellatr.hxx @@ -24,6 +24,7 @@ #include <svl/zforlist.hxx> #include "swdllapi.h" #include "format.hxx" +#include "hintids.hxx" #include "cellfml.hxx" /** The number formatter's default locale's @ Text format. diff --git a/sw/inc/charfmt.hxx b/sw/inc/charfmt.hxx index b84d31c780bc..b372de271437 100644 --- a/sw/inc/charfmt.hxx +++ b/sw/inc/charfmt.hxx @@ -20,6 +20,7 @@ #define INCLUDED_SW_INC_CHARFMT_HXX #include "format.hxx" +#include "hintids.hxx" class SW_DLLPUBLIC SwCharFormat : public SwFormat { diff --git a/sw/inc/dbgoutsw.hxx b/sw/inc/dbgoutsw.hxx index b32f410cc36d..28551b180666 100644 --- a/sw/inc/dbgoutsw.hxx +++ b/sw/inc/dbgoutsw.hxx @@ -41,7 +41,6 @@ class SwUndo; class SwRect; class SwFrameFormat; class SwFrameFormats; -class SwNodes; class SwNumRuleTable; class SwNumRule; class SwOutlineNodes; diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx index c38cf044291c..c4abf4920b49 100644 --- a/sw/inc/dbmgr.hxx +++ b/sw/inc/dbmgr.hxx @@ -20,7 +20,6 @@ #define INCLUDED_SW_INC_DBMGR_HXX #include <rtl/ustring.hxx> -#include <tools/link.hxx> #include <tools/solar.h> #include <i18nlangtag/lang.h> #include <com/sun/star/util/Date.hpp> @@ -30,7 +29,6 @@ #include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/beans/PropertyValue.hpp> -#include <vcl/weld.hxx> #include <memory> #include <vector> @@ -77,7 +75,6 @@ namespace weld { class SwView; class SwWrtShell; class ListBox; -class Button; class SvNumberFormatter; class SwXMailMerge; class SwMailMergeConfigItem; diff --git a/sw/inc/dcontact.hxx b/sw/inc/dcontact.hxx index 4d3a48fd14d0..d19befc69a96 100644 --- a/sw/inc/dcontact.hxx +++ b/sw/inc/dcontact.hxx @@ -38,7 +38,6 @@ class SwFlyDrawObj; class SwRect; class SwDrawContact; struct SwPosition; -class SwIndex; class SdrTextObj; class SwContact; diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx index 940789ad262e..346b3293afb4 100644 --- a/sw/inc/docary.hxx +++ b/sw/inc/docary.hxx @@ -30,7 +30,6 @@ #include <boost/multi_index/ordered_index.hpp> #include <boost/multi_index/random_access_index.hpp> -#include "charfmt.hxx" #include "fmtcol.hxx" #include "frmfmt.hxx" #include "section.hxx" diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx index 369a6924cb5b..f3f6657af420 100644 --- a/sw/inc/docsh.hxx +++ b/sw/inc/docsh.hxx @@ -22,8 +22,6 @@ #include <memory> #include <rtl/ref.hxx> #include <com/sun/star/uno/Sequence.h> -#include <ooo/vba/XSinkCaller.hpp> -#include <ooo/vba/word/XDocument.hpp> #include <sfx2/docfac.hxx> #include <sfx2/objsh.hxx> #include "swdllapi.h" @@ -58,6 +56,8 @@ namespace svt class EmbeddedObjectRef; } namespace com { namespace sun { namespace star { namespace frame { class XController; } } } } +namespace ooo { namespace vba { class XSinkCaller; } } +namespace ooo { namespace vba { namespace word { class XDocument; } } } // initialize DrawModel (in form of a SwDrawModel) and DocShell (in form of a SwDocShell) // as needed, one or both parameters may be zero diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx index e6b977b5c295..0aa7619eaa4f 100644 --- a/sw/inc/fldbas.hxx +++ b/sw/inc/fldbas.hxx @@ -25,6 +25,7 @@ #include <cppuhelper/weakref.hxx> #include <editeng/svxenum.hxx> #include <vector> +#include <climits> class SwDoc; class SvNumberFormatter; diff --git a/sw/inc/fmtcol.hxx b/sw/inc/fmtcol.hxx index 119d636ff7b8..1ae82ceb8e16 100644 --- a/sw/inc/fmtcol.hxx +++ b/sw/inc/fmtcol.hxx @@ -21,6 +21,7 @@ #include "swdllapi.h" #include "format.hxx" +#include "hintids.hxx" #include <rtl/ustring.hxx> #include <vector> diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx index f06da7bb8006..4469a2c8b4c0 100644 --- a/sw/inc/frmfmt.hxx +++ b/sw/inc/frmfmt.hxx @@ -24,6 +24,7 @@ #include <cppuhelper/weakref.hxx> #include <tools/gen.hxx> #include "format.hxx" +#include "hintids.hxx" #include "swdllapi.h" #include <list> diff --git a/sw/inc/hhcwrp.hxx b/sw/inc/hhcwrp.hxx index 95aa775c76d5..1d8b1bbca091 100644 --- a/sw/inc/hhcwrp.hxx +++ b/sw/inc/hhcwrp.hxx @@ -23,7 +23,6 @@ #include "swdllapi.h" class SwView; -namespace vcl { class Window; } class SwWrtShell; struct SwConversionArgs; class SwPaM; diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx index 998c414a879f..2faed3ec01e8 100644 --- a/sw/inc/ndgrf.hxx +++ b/sw/inc/ndgrf.hxx @@ -29,7 +29,6 @@ class SwAsyncRetrieveInputStreamThreadConsumer; class SwGrfFormatColl; class SwDoc; -namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } } // SwGrfNode class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index 8e23f8856d7b..e82375966927 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -31,7 +31,6 @@ #include "swdllapi.h" #include "shellid.hxx" #include "fldupde.hxx" -#include <ooo/vba/XSinkCaller.hpp> class Color; class SfxItemSet; @@ -69,6 +68,7 @@ namespace com{ namespace sun{ namespace star{ namespace scanner{ }}}} namespace com { namespace sun { namespace star { namespace linguistic2 { class XLanguageGuessing; } } } } namespace com { namespace sun { namespace star { namespace linguistic2 { class XLinguServiceEventListener; } } } } +namespace ooo { namespace vba { class XSinkCaller; } } class SW_DLLPUBLIC SwModule final : public SfxModule, public SfxListener, public utl::ConfigurationListener { diff --git a/sw/inc/txtftn.hxx b/sw/inc/txtftn.hxx index 3c830e7ff273..9349750e70ec 100644 --- a/sw/inc/txtftn.hxx +++ b/sw/inc/txtftn.hxx @@ -19,10 +19,9 @@ #ifndef INCLUDED_SW_INC_TXTFTN_HXX #define INCLUDED_SW_INC_TXTFTN_HXX +#include <rtl/ustring.hxx> #include "txatbase.hxx" -namespace rtl { class OUString; } - class SwNodeIndex; class SwTextNode; class SwNodes; |