From c86778e6d1d4fcb05f42025f643aa472645b186a Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 4 Apr 2018 22:38:44 +0200 Subject: sw: fix some IWYU warnings Change-Id: I0c1d05b3f842a8d607a934f6954bcf2175d0d419 Reviewed-on: https://gerrit.libreoffice.org/52407 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/inc/anchoreddrawobject.hxx | 1 - sw/inc/unoframe.hxx | 4 ---- sw/inc/unomap.hxx | 5 ++++- sw/inc/unosett.hxx | 3 +-- sw/inc/unostyle.hxx | 1 + sw/inc/unotbl.hxx | 5 ----- sw/inc/unotextbodyhf.hxx | 1 - sw/inc/unotextcursor.hxx | 1 - sw/inc/unotxdoc.hxx | 8 +------- sw/inc/view.hxx | 17 ++--------------- sw/inc/viewopt.hxx | 3 --- sw/inc/viewsh.hxx | 14 +------------- sw/source/core/access/accpara.cxx | 1 + sw/source/core/doc/docdesc.cxx | 1 + sw/source/core/frmedt/feshview.cxx | 1 + sw/source/core/unocore/unobkm.cxx | 1 + sw/source/core/unocore/unochart.cxx | 1 + sw/source/core/unocore/unoftn.cxx | 1 + sw/source/core/unocore/unoidx.cxx | 1 + sw/source/core/unocore/unosett.cxx | 1 + sw/source/core/unocore/unosrch.cxx | 1 + sw/source/ui/envelp/envprt.hxx | 1 + sw/source/uibase/config/viewopt.cxx | 1 + sw/source/uibase/frmdlg/colex.cxx | 1 + sw/source/uibase/uiview/view0.cxx | 1 + sw/source/uibase/web/wview.cxx | 1 + 26 files changed, 24 insertions(+), 53 deletions(-) (limited to 'sw') diff --git a/sw/inc/anchoreddrawobject.hxx b/sw/inc/anchoreddrawobject.hxx index 21fa967ff0a3..c4492b51a02b 100644 --- a/sw/inc/anchoreddrawobject.hxx +++ b/sw/inc/anchoreddrawobject.hxx @@ -19,7 +19,6 @@ #ifndef INCLUDED_SW_INC_ANCHOREDDRAWOBJECT_HXX #define INCLUDED_SW_INC_ANCHOREDDRAWOBJECT_HXX -#include #include "anchoredobject.hxx" #include diff --git a/sw/inc/unoframe.hxx b/sw/inc/unoframe.hxx index de5c9b8ac71a..d92f682dd2e7 100644 --- a/sw/inc/unoframe.hxx +++ b/sw/inc/unoframe.hxx @@ -31,8 +31,6 @@ #include -#include - #include "flyenum.hxx" #include "frmfmt.hxx" #include "unotext.hxx" @@ -42,7 +40,6 @@ class SdrObject; class SwDoc; class SwFormat; -class SwFlyFrameFormat; class BaseFrameProperties_Impl; class SwXFrame : public cppu::WeakImplHelper @@ -274,7 +271,6 @@ public: void operator delete( void * ) throw(); }; -class SwOLENode; typedef cppu::ImplInheritanceHelper < SwXFrame, css::document::XEmbeddedObjectSupplier2, diff --git a/sw/inc/unomap.hxx b/sw/inc/unomap.hxx index 40b54b13b0d1..f63f4ab8f168 100644 --- a/sw/inc/unomap.hxx +++ b/sw/inc/unomap.hxx @@ -19,7 +19,10 @@ #ifndef INCLUDED_SW_INC_UNOMAP_HXX #define INCLUDED_SW_INC_UNOMAP_HXX -#include +#include + +class SfxItemPropertySet; +struct SfxItemPropertyMapEntry; #define PROPERTY_NONE 0 diff --git a/sw/inc/unosett.hxx b/sw/inc/unosett.hxx index bf83e499f7b7..79ba07063bdb 100644 --- a/sw/inc/unosett.hxx +++ b/sw/inc/unosett.hxx @@ -20,7 +20,6 @@ #define INCLUDED_SW_INC_UNOSETT_HXX #include "swtypes.hxx" -#include "calbck.hxx" #include #include #include @@ -32,7 +31,6 @@ #include #include #include -#include #include "unobaseclass.hxx" class SwDoc; @@ -40,6 +38,7 @@ class SwFormatCol; class SwDocShell; class SwNumRule; class SwNumFormat; +class SfxItemPropertySet; class SwXFootnoteProperties : public cppu::WeakAggImplHelper2 < diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index 5d76bd719808..c59ac8602a49 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -41,6 +41,7 @@ #include "istyleaccess.hxx" #include +#include class SwDocShell; class SfxItemPropertySet; diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx index 23214c6decbc..88d76a515608 100644 --- a/sw/inc/unotbl.hxx +++ b/sw/inc/unotbl.hxx @@ -23,9 +23,7 @@ #include #include #include -#include #include -#include #include #include #include @@ -46,9 +44,6 @@ class SwTable; class SwTableBox; class SwTableLine; class SwTableCursor; -class SwTableBoxFormat; -class SwChartDataProvider; -class SwFrameFormat; typedef cppu::WeakImplHelper diff --git a/sw/inc/unotextbodyhf.hxx b/sw/inc/unotextbodyhf.hxx index 5a7f09279d87..11aa3cbf794f 100644 --- a/sw/inc/unotextbodyhf.hxx +++ b/sw/inc/unotextbodyhf.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_SW_INC_UNOTEXTBODYHF_HXX #define INCLUDED_SW_INC_UNOTEXTBODYHF_HXX -#include #include #include diff --git a/sw/inc/unotextcursor.hxx b/sw/inc/unotextcursor.hxx index ff9e759cef9e..10b3c8d29423 100644 --- a/sw/inc/unotextcursor.hxx +++ b/sw/inc/unotextcursor.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_SW_INC_UNOTEXTCURSOR_HXX #define INCLUDED_SW_INC_UNOTEXTCURSOR_HXX -#include #include #include #include diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index 472ea5015cd5..eebd5d27474f 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -22,7 +22,6 @@ #include "swdllapi.h" #include -#include #include #include #include @@ -30,7 +29,6 @@ #include #include #include -#include #include #include #include @@ -55,7 +53,6 @@ #include #include #include -#include #include #include #include @@ -63,13 +60,9 @@ #include #include #include -#include #include -#include #include -#include #include -#include #include #include @@ -90,6 +83,7 @@ class SwPrintUIOptions; class SwPrintData; class SwRenderData; class SwViewShell; +class SfxItemPropertySet; typedef cppu::WeakImplHelper < diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx index 2b0d63f83d97..a5307014b9c9 100644 --- a/sw/inc/view.hxx +++ b/sw/inc/view.hxx @@ -20,25 +20,16 @@ #define INCLUDED_SW_INC_VIEW_HXX #include -#include -#include -#include -#include #include #include #include #include #include -#include #include -#include #include "swdllapi.h" #include "swtypes.hxx" #include "shellid.hxx" -#include "IMark.hxx" -class Button; -class ImageButton; class SwTextFormatColl; class SwPageDesc; class SwFrameFormat; @@ -46,7 +37,6 @@ class SwCharFormat; class SwNumRule; class SwGlossaryHdl; class SwDrawBase; -class SvxRuler; class SvxLRSpaceItem; class SwDocShell; class SwScrollbar; @@ -56,11 +46,7 @@ class SvxSearchItem; class SearchAttrItemList; class SvxSearchDialog; class SdrView; -class Dialog; -class SdrObject; class SdrPageView; -class SwHlpImageButton; -class SwView; class SwEditWin; class SwWrtShell; class SwView_Impl; @@ -74,18 +60,19 @@ class SwMailMergeConfigItem; class SwTextNode; // #i23726# class SwFormatClipboard; struct SwConversionArgs; -class Graphic; class GraphicFilter; class SwPostItMgr; enum class SotExchangeDest; class SwCursorShell; enum class SvxSearchCmd; enum class SelectionType : sal_Int32; +class SfxViewFactory; namespace com{ namespace sun { namespace star { namespace view{ class XSelectionSupplier; } }}} namespace sfx2 { class FileDialogHelper; } +namespace sw { namespace mark { class IFieldmark; } } const long nLeftOfst = -370; const long nScrollX = 30; diff --git a/sw/inc/viewopt.hxx b/sw/inc/viewopt.hxx index e4252bf4bfa2..92da82a55b54 100644 --- a/sw/inc/viewopt.hxx +++ b/sw/inc/viewopt.hxx @@ -26,14 +26,11 @@ #include #include -#include #include "swdllapi.h" -#include "authratr.hxx" class SwRect; namespace vcl { class Window; } class OutputDevice; -class SwViewShell; class SwDocShell; namespace svtools{ class ColorConfig;} diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx index 368f1849273e..c7931d76f8be 100644 --- a/sw/inc/viewsh.hxx +++ b/sw/inc/viewsh.hxx @@ -19,8 +19,6 @@ #ifndef INCLUDED_SW_INC_VIEWSH_HXX #define INCLUDED_SW_INC_VIEWSH_HXX -#include -#include #include "swdllapi.h" #include "swtypes.hxx" #include "ring.hxx" @@ -28,12 +26,9 @@ #include #include #include -#include #include #include -#include - namespace com { namespace sun { namespace star { namespace accessibility { class XAccessible; } } } } @@ -44,7 +39,6 @@ class IDocumentMarkAccess; class IDocumentDrawModelAccess; class IDocumentRedlineAccess; class IDocumentLayoutAccess; -class IDocumentFieldsAccess; class IDocumentContentOperations; class IDocumentStylePoolAccess; class IDocumentStatistics; @@ -52,7 +46,6 @@ class IDocumentUndoRedo; class IDocumentListItems; class IDocumentOutlineNodes; class SfxPrinter; -class SfxProgress; class SwRootFrame; class SwNodes; class SdrView; @@ -61,23 +54,18 @@ class SfxViewShell; class SwViewOption; class SwViewShellImp; class SwPrintData; -class SwPagePreviewPrtData; -namespace vcl { class Window; } -class OutputDevice; -class SwLayIdle; struct ShellResource; class SwRegionRects; -class SwFrame; class SvtAccessibilityOptions; class SwPagePreviewLayout; class SwTextFrame; -class BitmapEx; struct SwAccessibilityOptions; namespace vcl { class Region; } class SwPostItMgr; class SdrPaintWindow; class SwAccessibleMap; +enum class Orientation; namespace vcl { diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 1b98c75b0f81..f2dff93ebf2c 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -87,6 +87,7 @@ #include #include #include +#include #include #include diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx index 2252685f4309..f2ec8c3e17d9 100644 --- a/sw/source/core/doc/docdesc.cxx +++ b/sw/source/core/doc/docdesc.cxx @@ -61,6 +61,7 @@ #include #include #include +#include using namespace com::sun::star; diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index 842d9250f869..a47aa962f9bd 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -96,6 +96,7 @@ #include #include #include +#include #include #include diff --git a/sw/source/core/unocore/unobkm.cxx b/sw/source/core/unocore/unobkm.cxx index d9729a32552a..e113645bc4aa 100644 --- a/sw/source/core/unocore/unobkm.cxx +++ b/sw/source/core/unocore/unobkm.cxx @@ -37,6 +37,7 @@ #include #include #include +#include using namespace ::sw::mark; using namespace ::com::sun::star; diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx index a27e5b44e0fe..130f0fa22181 100644 --- a/sw/source/core/unocore/unochart.cxx +++ b/sw/source/core/unocore/unochart.cxx @@ -46,6 +46,7 @@ #include #include #include +#include using namespace ::com::sun::star; diff --git a/sw/source/core/unocore/unoftn.cxx b/sw/source/core/unocore/unoftn.cxx index 3b5424f15d43..601314ffc99a 100644 --- a/sw/source/core/unocore/unoftn.cxx +++ b/sw/source/core/unocore/unoftn.cxx @@ -42,6 +42,7 @@ #include #include #include +#include using namespace ::com::sun::star; diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index 216bbab09ecc..ff6546cdd496 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -64,6 +64,7 @@ #include #include #include +#include using namespace ::com::sun::star; diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx index 65dae55f8812..5c503cfd6901 100644 --- a/sw/source/core/unocore/unosett.cxx +++ b/sw/source/core/unocore/unosett.cxx @@ -71,6 +71,7 @@ #include #include #include +#include #include using namespace ::com::sun::star; diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx index a3e967320bcf..429201ac4d7c 100644 --- a/sw/source/core/unocore/unosrch.cxx +++ b/sw/source/core/unocore/unosrch.cxx @@ -34,6 +34,7 @@ #include #include #include +#include #include using namespace ::com::sun::star; diff --git a/sw/source/ui/envelp/envprt.hxx b/sw/source/ui/envelp/envprt.hxx index 84cad1803179..91ce62b4a9da 100644 --- a/sw/source/ui/envelp/envprt.hxx +++ b/sw/source/ui/envelp/envprt.hxx @@ -26,6 +26,7 @@ #include #include #include +#include #include #include diff --git a/sw/source/uibase/config/viewopt.cxx b/sw/source/uibase/config/viewopt.cxx index 063f2128c69f..54b2c1064c51 100644 --- a/sw/source/uibase/config/viewopt.cxx +++ b/sw/source/uibase/config/viewopt.cxx @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include diff --git a/sw/source/uibase/frmdlg/colex.cxx b/sw/source/uibase/frmdlg/colex.cxx index f3ae1b67b49d..af1d833346d5 100644 --- a/sw/source/uibase/frmdlg/colex.cxx +++ b/sw/source/uibase/frmdlg/colex.cxx @@ -38,6 +38,7 @@ #include #include #include +#include // Taking the updated values from the set void SwPageExample::UpdateExample( const SfxItemSet& rSet ) diff --git a/sw/source/uibase/uiview/view0.cxx b/sw/source/uibase/uiview/view0.cxx index ba847a61a0ec..4cf1fbf78329 100644 --- a/sw/source/uibase/uiview/view0.cxx +++ b/sw/source/uibase/uiview/view0.cxx @@ -68,6 +68,7 @@ using namespace ::com::sun::star; #include +#include #include diff --git a/sw/source/uibase/web/wview.cxx b/sw/source/uibase/web/wview.cxx index 937dd898257d..1052dffcd426 100644 --- a/sw/source/uibase/web/wview.cxx +++ b/sw/source/uibase/web/wview.cxx @@ -62,6 +62,7 @@ #include // needed for -fsanitize=function visibility of typeinfo for functions of // type void(SfxShell*,SfxRequest&) defined in swslots.hxx +#include #define ShellClass_SwWebView #define ShellClass_Text #include -- cgit