From baf3ad4dc9ef4e18306b492a70eadc285f6dbe51 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 30 Jan 2018 21:20:50 +0100 Subject: Fix some IWYU warnings Change-Id: I85a096505b0de98fd1de6179b9239318622fc34a Reviewed-on: https://gerrit.libreoffice.org/48933 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/inc/PostItMgr.hxx | 4 +--- sw/inc/SwAppletImpl.hxx | 3 --- sw/inc/SwDocIdle.hxx | 3 ++- sw/inc/ToxTabStopTokenHandler.hxx | 1 - sw/inc/ToxTextGenerator.hxx | 1 - sw/inc/ToxWhitespaceStripper.hxx | 1 - sw/inc/UndoParagraphSignature.hxx | 8 ++++---- sw/inc/accessibilityoptions.hxx | 2 -- sw/inc/accmap.hxx | 5 ++--- sw/inc/authratr.hxx | 3 +-- sw/inc/breakit.hxx | 1 - sw/inc/calbck.hxx | 7 +++---- sw/inc/swevent.hxx | 1 + sw/source/core/access/accfrmobj.cxx | 2 ++ sw/source/core/access/accfrmobj.hxx | 1 + sw/source/core/doc/SwDocIdle.cxx | 1 + sw/source/filter/html/SwAppletImpl.cxx | 1 + sw/source/filter/xml/xmltexti.cxx | 1 + sw/source/uibase/docvw/AnnotationWin.cxx | 1 + sw/source/uibase/docvw/AnnotationWin2.cxx | 1 + sw/source/uibase/docvw/PostItMgr.cxx | 1 + 21 files changed, 23 insertions(+), 26 deletions(-) (limited to 'sw') diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx index 7f01f6ff09d6..dade2cd0026b 100644 --- a/sw/inc/PostItMgr.hxx +++ b/sw/inc/PostItMgr.hxx @@ -27,18 +27,15 @@ #include #include #include -#include #include #include #include #include "swrect.hxx" #include -#include #include #include "SidebarWindowsTypes.hxx" #include #include -#include class OutputDevice; class SwWrtShell; @@ -66,6 +63,7 @@ class SwFrame; namespace vcl { class Window; } struct ImplSVEvent; class OutlinerSearchable; +class OutlinerParaObject; namespace i18nutil { struct SearchOptions2; } #define COL_NOTES_SIDEPANE_ARROW_ENABLED RGB_COLORDATA(0,0,0) diff --git a/sw/inc/SwAppletImpl.hxx b/sw/inc/SwAppletImpl.hxx index aaa600b2453e..046893f70803 100644 --- a/sw/inc/SwAppletImpl.hxx +++ b/sw/inc/SwAppletImpl.hxx @@ -23,9 +23,6 @@ #include #include -#include -#include -#include #include #include diff --git a/sw/inc/SwDocIdle.hxx b/sw/inc/SwDocIdle.hxx index def54cdcc287..38072f8f3cdf 100644 --- a/sw/inc/SwDocIdle.hxx +++ b/sw/inc/SwDocIdle.hxx @@ -19,9 +19,10 @@ #ifndef INCLUDED_SW_INC_SWDOCIDLE_HXX #define INCLUDED_SW_INC_SWDOCIDLE_HXX -#include "doc.hxx" #include +class SwDoc; + namespace sw { /** diff --git a/sw/inc/ToxTabStopTokenHandler.hxx b/sw/inc/ToxTabStopTokenHandler.hxx index 0f16033bfe6e..7da924599b5e 100644 --- a/sw/inc/ToxTabStopTokenHandler.hxx +++ b/sw/inc/ToxTabStopTokenHandler.hxx @@ -11,7 +11,6 @@ #ifndef TOXTABSTOPTOKENHANDLER_HXX_ #define TOXTABSTOPTOKENHANDLER_HXX_ -#include "swdllapi.h" #include #include diff --git a/sw/inc/ToxTextGenerator.hxx b/sw/inc/ToxTextGenerator.hxx index 78de181df56d..4f996c44e150 100644 --- a/sw/inc/ToxTextGenerator.hxx +++ b/sw/inc/ToxTextGenerator.hxx @@ -22,7 +22,6 @@ #include #include -#include "swdllapi.h" #include #include diff --git a/sw/inc/ToxWhitespaceStripper.hxx b/sw/inc/ToxWhitespaceStripper.hxx index bbe261312301..9185fa5a4ee9 100644 --- a/sw/inc/ToxWhitespaceStripper.hxx +++ b/sw/inc/ToxWhitespaceStripper.hxx @@ -12,7 +12,6 @@ #define TOXWHITESPACESTRIPPER_HXX_ #include -#include "swdllapi.h" #include namespace sw { diff --git a/sw/inc/UndoParagraphSignature.hxx b/sw/inc/UndoParagraphSignature.hxx index 39b6dbf5d770..30b6ddbf4555 100644 --- a/sw/inc/UndoParagraphSignature.hxx +++ b/sw/inc/UndoParagraphSignature.hxx @@ -34,8 +34,8 @@ class SwUndoParagraphSigning : public SwUndo { private: SwDoc* m_pDoc; - uno::Reference m_xField; - uno::Reference m_xParent; + css::uno::Reference m_xField; + css::uno::Reference m_xParent; OUString m_signature; OUString m_usage; OUString m_display; @@ -43,8 +43,8 @@ private: public: SwUndoParagraphSigning(SwDoc* pDoc, - const uno::Reference& xField, - const uno::Reference& xParent, + const css::uno::Reference& xField, + const css::uno::Reference& xParent, const bool bRemove); virtual void UndoImpl(::sw::UndoRedoContext&) override; diff --git a/sw/inc/accessibilityoptions.hxx b/sw/inc/accessibilityoptions.hxx index 9e54e7449f73..05ce3665b1ce 100644 --- a/sw/inc/accessibilityoptions.hxx +++ b/sw/inc/accessibilityoptions.hxx @@ -19,8 +19,6 @@ #ifndef INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX #define INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX -#include - struct SwAccessibilityOptions { bool bIsAlwaysAutoColor :1; diff --git a/sw/inc/accmap.hxx b/sw/inc/accmap.hxx index 2739b1a78a01..975c01f559b9 100644 --- a/sw/inc/accmap.hxx +++ b/sw/inc/accmap.hxx @@ -25,11 +25,8 @@ #include #include #include -#include #include -#include -#include "fesh.hxx" #include #include @@ -55,6 +52,8 @@ class SwAccessibleSelectedParas_Impl; class SwRect; class MapMode; class SwAccPreviewData; +class SwFEShell; +class Fraction; struct PreviewPage; namespace vcl { class Window; } diff --git a/sw/inc/authratr.hxx b/sw/inc/authratr.hxx index 1507e088addf..cb932d88bddc 100644 --- a/sw/inc/authratr.hxx +++ b/sw/inc/authratr.hxx @@ -20,8 +20,7 @@ #ifndef INCLUDED_SW_INC_AUTHRATR_HXX #define INCLUDED_SW_INC_AUTHRATR_HXX -#include -#include +#include #include "swdllapi.h" class SW_DLLPUBLIC AuthorCharAttr diff --git a/sw/inc/breakit.hxx b/sw/inc/breakit.hxx index 2dc5af732927..525c896ddb35 100644 --- a/sw/inc/breakit.hxx +++ b/sw/inc/breakit.hxx @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include "swdllapi.h" diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx index ea4181a190ea..d42f1e95dbd0 100644 --- a/sw/inc/calbck.hxx +++ b/sw/inc/calbck.hxx @@ -20,17 +20,16 @@ #ifndef INCLUDED_SW_INC_CALBCK_HXX #define INCLUDED_SW_INC_CALBCK_HXX +#include +#include #include "swdllapi.h" #include "ring.hxx" #include "hintids.hxx" -#include "hints.hxx" -#include #include class SwModify; -class SfxPoolItem; -class SfxHint; +class SwPtrMsgPoolItem; /* SwModify and SwClient cooperate in propagating attribute changes. diff --git a/sw/inc/swevent.hxx b/sw/inc/swevent.hxx index 9b6b4b3b84f1..a618d8ca7f74 100644 --- a/sw/inc/swevent.hxx +++ b/sw/inc/swevent.hxx @@ -24,6 +24,7 @@ #include #include "calbck.hxx" #include "frmfmt.hxx" +#include "hints.hxx" #define STR_SW_EVENT_PAGE_COUNT 0 #define STR_SW_EVENT_MAIL_MERGE 1 diff --git a/sw/source/core/access/accfrmobj.cxx b/sw/source/core/access/accfrmobj.cxx index 041698987d52..c617a62a4e22 100644 --- a/sw/source/core/access/accfrmobj.cxx +++ b/sw/source/core/access/accfrmobj.cxx @@ -95,6 +95,8 @@ SwAccessibleChild::SwAccessibleChild( const SwFrame* pFrame, } +SwAccessibleChild::~SwAccessibleChild() = default; + void SwAccessibleChild::Init( const SdrObject* pDrawObj ) { mpDrawObj = pDrawObj; diff --git a/sw/source/core/access/accfrmobj.hxx b/sw/source/core/access/accfrmobj.hxx index 4e1c90f6ce37..5806f4abd179 100644 --- a/sw/source/core/access/accfrmobj.hxx +++ b/sw/source/core/access/accfrmobj.hxx @@ -34,6 +34,7 @@ class SwAccessibleChild { public: SwAccessibleChild(); + ~SwAccessibleChild(); explicit SwAccessibleChild( const SdrObject* pDrawObj ); explicit SwAccessibleChild( const SwFrame* pFrame ); explicit SwAccessibleChild( vcl::Window* pWindow ); diff --git a/sw/source/core/doc/SwDocIdle.cxx b/sw/source/core/doc/SwDocIdle.cxx index f81c7a5de53d..d2bf04f408dc 100644 --- a/sw/source/core/doc/SwDocIdle.cxx +++ b/sw/source/core/doc/SwDocIdle.cxx @@ -19,6 +19,7 @@ #include #include +#include #include #include #include diff --git a/sw/source/filter/html/SwAppletImpl.cxx b/sw/source/filter/html/SwAppletImpl.cxx index 8d3a8858c9da..ce4bfc54e460 100644 --- a/sw/source/filter/html/SwAppletImpl.cxx +++ b/sw/source/filter/html/SwAppletImpl.cxx @@ -26,6 +26,7 @@ #include #include #include +#include #include using namespace com::sun::star; diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx index 78cab08507f0..0986e089a6ae 100644 --- a/sw/source/filter/xml/xmltexti.cxx +++ b/sw/source/filter/xml/xmltexti.cxx @@ -58,6 +58,7 @@ #include #include #include +#include using namespace ::com::sun::star; using namespace ::com::sun::star::uno; diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx b/sw/source/uibase/docvw/AnnotationWin.cxx index 4a5cf6da9d6f..7fef02cdf522 100644 --- a/sw/source/uibase/docvw/AnnotationWin.cxx +++ b/sw/source/uibase/docvw/AnnotationWin.cxx @@ -39,6 +39,7 @@ #include #include #include +#include #include #include diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx b/sw/source/uibase/docvw/AnnotationWin2.cxx index 6199d7c3cc34..a3ab401c4ac6 100644 --- a/sw/source/uibase/docvw/AnnotationWin2.cxx +++ b/sw/source/uibase/docvw/AnnotationWin2.cxx @@ -46,6 +46,7 @@ #include #include #include +#include #include #include diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index c19ec007369d..479770bf6d70 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -73,6 +73,7 @@ #include #include #include +#include #include #include -- cgit