tdf#42949 Fix IWYU warnings in sw/source/core/*/*hxx
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: Idbd13674578be9d4edce5d2a5f45df145474d86d
Reviewed-on: https://gerrit.libreoffice.org/72579
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
diff --git a/sw/IwyuFilter_sw.yaml b/sw/IwyuFilter_sw.yaml
index 2672bd5..69aa7bf 100644
--- a/sw/IwyuFilter_sw.yaml
+++ b/sw/IwyuFilter_sw.yaml
@@ -250,6 +250,20 @@ blacklist:
- com/sun/star/text/XRedline.hpp
# sw::UnoImplPtr typedef
- unobaseclass.hxx
sw/source/core/access/acccontext.hxx:
# Base class needs complete type
- com/sun/star/accessibility/XAccessibleComponent.hpp
- com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp
- com/sun/star/lang/XServiceInfo.hpp
sw/source/core/access/acchyperlink.hxx:
# Base class needs complete type
- com/sun/star/accessibility/XAccessibleHyperlink.hpp
sw/source/core/access/accnotexthyperlink.hxx:
# Base class needs complete type
- com/sun/star/accessibility/XAccessibleHyperlink.hpp
sw/source/core/docnode/cancellablejob.hxx:
# Base class needs complete type
- com/sun/star/util/XCancellable.hpp
sw/source/core/inc/acorrect.hxx:
# Needed for implicit dtor
- svl/itemset.hxx
diff --git a/sw/source/core/access/acccontext.hxx b/sw/source/core/access/acccontext.hxx
index 8df61e6..048619b 100644
--- a/sw/source/core/access/acccontext.hxx
+++ b/sw/source/core/access/acccontext.hxx
@@ -24,15 +24,12 @@
#include <accmap.hxx>
#include <com/sun/star/accessibility/XAccessibleComponent.hpp>
#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <memory>
namespace vcl { class Window; }
class SwAccessibleMap;
class SwCursorShell;
class SdrObject;
class SwPaM;
diff --git a/sw/source/core/access/accdoc.hxx b/sw/source/core/access/accdoc.hxx
index d8a281e..e815ebf 100644
--- a/sw/source/core/access/accdoc.hxx
+++ b/sw/source/core/access/accdoc.hxx
@@ -26,8 +26,6 @@
#include <com/sun/star/accessibility/XAccessibleGetAccFlowTo.hpp>
#include "accselectionhelper.hxx"
class VclSimpleEvent;
// base class for SwAccessibleDocument (in this same header file) and
// SwAccessiblePreview
class SwAccessibleDocumentBase : public SwAccessibleContext
diff --git a/sw/source/core/access/accframe.hxx b/sw/source/core/access/accframe.hxx
index 547eb08..c3ebd59 100644
--- a/sw/source/core/access/accframe.hxx
+++ b/sw/source/core/access/accframe.hxx
@@ -31,9 +31,6 @@
class SwAccessibleMap;
class SwFrame;
class SwViewShell;
namespace sw { namespace access {
class SwAccessibleChild;
}}
// Any method of this class must be called with an acquired solar mutex!
diff --git a/sw/source/core/access/accframebase.hxx b/sw/source/core/access/accframebase.hxx
index 286dafe..ad45a63 100644
--- a/sw/source/core/access/accframebase.hxx
+++ b/sw/source/core/access/accframebase.hxx
@@ -22,7 +22,7 @@
#include "acccontext.hxx"
#include <calbck.hxx>
#include <pam.hxx>
#include <ndtyp.hxx>
class SwFlyFrame;
diff --git a/sw/source/core/access/acchyperlink.hxx b/sw/source/core/access/acchyperlink.hxx
index cc2497c..fdbc714 100644
--- a/sw/source/core/access/acchyperlink.hxx
+++ b/sw/source/core/access/acchyperlink.hxx
@@ -25,8 +25,7 @@
#include <cppuhelper/implbase.hxx>
#include <svl/listener.hxx>
#include <fmtinfmt.hxx>
class SwFormatINetFormat;
class SwAccessibleParagraph;
class SwTextAttr;
diff --git a/sw/source/core/access/accnotextframe.hxx b/sw/source/core/access/accnotextframe.hxx
index e5bf081..374f1ee 100644
--- a/sw/source/core/access/accnotextframe.hxx
+++ b/sw/source/core/access/accnotextframe.hxx
@@ -24,14 +24,8 @@
#include <com/sun/star/accessibility/XAccessibleImage.hpp>
#include <com/sun/star/accessibility/XAccessibleHypertext.hpp>
namespace utl { class AccessibleRelationSetHelper; }
namespace com { namespace star {
namespace accessibility { struct AccessibleRelation; }
} }
class SwFlyFrame;
class SwNoTextNode;
class SwAccessibleNoTextHyperlink;
class SwAccessibleNoTextFrame : public SwAccessibleFrameBase,
public css::accessibility::XAccessibleImage,
diff --git a/sw/source/core/access/accnotexthyperlink.hxx b/sw/source/core/access/accnotexthyperlink.hxx
index d9b9a7a..b986abc8 100644
--- a/sw/source/core/access/accnotexthyperlink.hxx
+++ b/sw/source/core/access/accnotexthyperlink.hxx
@@ -20,10 +20,7 @@
#define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCNOTEXTHYPERLINK_HXX
#include <com/sun/star/accessibility/XAccessibleHyperlink.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <cppuhelper/implbase.hxx>
#include <fmtinfmt.hxx>
#include <frame.hxx>
#include <layfrm.hxx>
#include "accnotextframe.hxx"
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index 30d28c9..32bf6cb 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -42,6 +42,7 @@
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/beans/UnknownPropertyException.hpp>
#include <breakit.hxx>
#include "accpara.hxx"
diff --git a/sw/source/core/access/accpara.hxx b/sw/source/core/access/accpara.hxx
index 3584800..5e6fed4 100644
--- a/sw/source/core/access/accpara.hxx
+++ b/sw/source/core/access/accpara.hxx
@@ -26,16 +26,13 @@
#include <com/sun/star/accessibility/XAccessibleTextMarkup.hpp>
#include <com/sun/star/accessibility/XAccessibleMultiLineText.hpp>
#include <com/sun/star/accessibility/XAccessibleTextSelection.hpp>
#include <txmsrt.hxx>
#include <com/sun/star/accessibility/XAccessibleExtendedAttributes.hpp>
#include <com/sun/star/accessibility/XAccessibleTextAttributes.hpp>
#include "accselectionhelper.hxx"
#include <calbck.hxx>
#include <unordered_map>
#include <svl/lstner.hxx>
class SwField;
class SwTextFrame;
class SwTextNode;
class SwPaM;
class SwAccessiblePortionData;
class SwAccessibleHyperTextData;
diff --git a/sw/source/core/access/accselectionhelper.hxx b/sw/source/core/access/accselectionhelper.hxx
index 52c2e77..10d78d9 100644
--- a/sw/source/core/access/accselectionhelper.hxx
+++ b/sw/source/core/access/accselectionhelper.hxx
@@ -22,7 +22,8 @@
#include <sal/types.h>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/accessibility/XAccessible.hpp>
namespace com::sun::star::accessibility { class XAccessible; }
class SwAccessibleContext;
class SwFEShell;
diff --git a/sw/source/core/access/acctextframe.hxx b/sw/source/core/access/acctextframe.hxx
index 4337ebe..a9d743d 100644
--- a/sw/source/core/access/acctextframe.hxx
+++ b/sw/source/core/access/acctextframe.hxx
@@ -25,10 +25,6 @@
#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
class SwFlyFrame;
namespace utl { class AccessibleRelationSetHelper; }
namespace com { namespace star {
namespace accessibility { struct AccessibleRelation; }
} }
class SwAccessibleTextFrame : public SwAccessibleFrameBase,
public css::accessibility::XAccessibleSelection
diff --git a/sw/source/core/access/textmarkuphelper.cxx b/sw/source/core/access/textmarkuphelper.cxx
index 8633789..19bd4d5 100644
--- a/sw/source/core/access/textmarkuphelper.cxx
+++ b/sw/source/core/access/textmarkuphelper.cxx
@@ -25,6 +25,8 @@
#include <com/sun/star/text/TextMarkupType.hpp>
#include <com/sun/star/accessibility/TextSegment.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <osl/diagnose.h>
#include <ndtxt.hxx>
diff --git a/sw/source/core/access/textmarkuphelper.hxx b/sw/source/core/access/textmarkuphelper.hxx
index 56a1cac..a359e15 100644
--- a/sw/source/core/access/textmarkuphelper.hxx
+++ b/sw/source/core/access/textmarkuphelper.hxx
@@ -20,9 +20,6 @@
#define INCLUDED_SW_SOURCE_CORE_ACCESS_TEXTMARKUPHELPER_HXX
#include <sal/types.h>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/uno/Sequence.h>
namespace com { namespace sun { namespace star { namespace accessibility {
diff --git a/sw/source/core/crsr/BlockCursor.hxx b/sw/source/core/crsr/BlockCursor.hxx
index 2dd535c..805b4a9 100644
--- a/sw/source/core/crsr/BlockCursor.hxx
+++ b/sw/source/core/crsr/BlockCursor.hxx
@@ -19,12 +19,13 @@
#ifndef INCLUDED_SW_SOURCE_CORE_CRSR_BLOCKCURSOR_HXX
#define INCLUDED_SW_SOURCE_CORE_CRSR_BLOCKCURSOR_HXX
#include <crsrsh.hxx>
#include <boost/optional.hpp>
#include <tools/gen.hxx>
#include <viscrs.hxx>
class SwCursorShell;
struct SwPosition;
class Point;
/** Access to the block cursor
diff --git a/sw/source/core/docnode/cancellablejob.hxx b/sw/source/core/docnode/cancellablejob.hxx
index 23606ed..ecd226b 100644
--- a/sw/source/core/docnode/cancellablejob.hxx
+++ b/sw/source/core/docnode/cancellablejob.hxx
@@ -26,7 +26,7 @@
#include <rtl/ref.hxx>
class ObservableThread;
#include <observablethread.hxx>
class CancellableJob : public ::cppu::WeakImplHelper<css::util::XCancellable>
{
diff --git a/sw/source/core/docnode/threadmanager.cxx b/sw/source/core/docnode/threadmanager.cxx
index f500f29c..3be5cdc 100644
--- a/sw/source/core/docnode/threadmanager.cxx
+++ b/sw/source/core/docnode/threadmanager.cxx
@@ -16,12 +16,17 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "cancellablejob.hxx"
#include "threadmanager.hxx"
#include <threadlistener.hxx>
#include <osl/diagnose.h>
#include <algorithm>
#include <com/sun/star/util/XJobManager.hpp>
using namespace ::com::sun::star;
/** class to manage threads
diff --git a/sw/source/core/docnode/threadmanager.hxx b/sw/source/core/docnode/threadmanager.hxx
index ab5dec9..84ee87b 100644
--- a/sw/source/core/docnode/threadmanager.hxx
+++ b/sw/source/core/docnode/threadmanager.hxx
@@ -19,23 +19,23 @@
#ifndef INCLUDED_SW_SOURCE_CORE_DOCNODE_THREADMANAGER_HXX
#define INCLUDED_SW_SOURCE_CORE_DOCNODE_THREADMANAGER_HXX
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <osl/mutex.hxx>
#include <osl/interlck.h>
#include <rtl/ref.hxx>
#include <deque>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/weakref.hxx>
#include <com/sun/star/util/XJobManager.hpp>
#include <observablethread.hxx>
#include "cancellablejob.hxx"
#include <threadlistener.hxx>
#include <memory>
#include <ifinishedthreadlistener.hxx>
namespace com::sun::star::util { class XCancellable; }
namespace com::sun::star::util { class XJobManager; }
class IFinishedThreadListener;
class ThreadListener;
class Timer;
/** class to manage threads
diff --git a/sw/source/core/layout/layhelp.hxx b/sw/source/core/layout/layhelp.hxx
index c052231..0f39b1b 100644
--- a/sw/source/core/layout/layhelp.hxx
+++ b/sw/source/core/layout/layhelp.hxx
@@ -22,6 +22,9 @@
#include <swrect.hxx>
#include <tools/solar.h>
#include <memory>
#include <vector>
#include <deque>
@@ -29,7 +32,6 @@ class SwDoc;
class SwFrame;
class SwLayoutFrame;
class SwPageFrame;
class SwFlyFrame;
class SwSectionFrame;
class SwSectionNode;
class SvStream;
diff --git a/sw/source/core/layout/virtoutp.hxx b/sw/source/core/layout/virtoutp.hxx
index d690f31..c120f8c 100644
--- a/sw/source/core/layout/virtoutp.hxx
+++ b/sw/source/core/layout/virtoutp.hxx
@@ -21,7 +21,6 @@
#include <vcl/virdev.hxx>
#include <swtypes.hxx>
#include <swrect.hxx>
class SwViewShell;
diff --git a/sw/source/core/text/atrhndl.hxx b/sw/source/core/text/atrhndl.hxx
index 688b0ae..f12bd76 100644
--- a/sw/source/core/text/atrhndl.hxx
+++ b/sw/source/core/text/atrhndl.hxx
@@ -24,9 +24,9 @@
#define NUM_ATTRIBUTE_STACKS 44
#include <memory>
#include <txatbase.hxx>
#include <swfntcch.hxx>
class SwTextAttr;
class SwAttrSet;
class IDocumentSettingAccess;
class SwViewShell;
diff --git a/sw/source/core/text/guess.cxx b/sw/source/core/text/guess.cxx
index d6fbbab..4c0af10 100644
--- a/sw/source/core/text/guess.cxx
+++ b/sw/source/core/text/guess.cxx
@@ -18,6 +18,7 @@
*/
#include <editeng/unolingu.hxx>
#include <breakit.hxx>
#include <dlelstnr.hxx>
#include <swmodule.hxx>
#include <IDocumentSettingAccess.hxx>
diff --git a/sw/source/core/text/guess.hxx b/sw/source/core/text/guess.hxx
index d23e5ce..5ff7e74 100644
--- a/sw/source/core/text/guess.hxx
+++ b/sw/source/core/text/guess.hxx
@@ -19,12 +19,13 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_GUESS_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_GUESS_HXX
#include <memory>
#include <com/sun/star/linguistic2/XHyphenatedWord.hpp>
#include <swtypes.hxx>
#include <breakit.hxx>
#include "porrst.hxx"
#include <com/sun/star/uno/Reference.hxx>
namespace com::sun::star::linguistic2 { class XHyphenatedWord; }
class SwTextFormatInfo;
class SwTextGuess
diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx
index 48f8400..0b87191 100644
--- a/sw/source/core/text/inftxt.hxx
+++ b/sw/source/core/text/inftxt.hxx
@@ -19,7 +19,6 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_INFTXT_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_INFTXT_HXX
#include <memory>
#include <com/sun/star/linguistic2/XHyphenatedWord.hpp>
#include <com/sun/star/beans/PropertyValues.hpp>
#include <map>
@@ -34,22 +33,16 @@
#include <editeng/paravertalignitem.hxx>
#include <sal/log.hxx>
namespace vcl { class Font; }
class OutputDevice;
namespace com::sun::star::linguistic2 { class XHyphenatedWord; }
class SvxBrushItem;
class SvxLineSpacingItem;
class SvxTabStop;
class SvxTabStopItem;
class SwAttrSet;
class SwFieldPortion;
class SwFlyPortion;
class SwFormatDrop;
class SwLineLayout;
class SwLinePortion;
class SwParaPortion;
class SwTabPortion;
class SwTextFrame;
class SwTextSizeInfo;
class SwViewOption;
class SwViewShell;
class SwAttrIter;
diff --git a/sw/source/core/text/itratr.hxx b/sw/source/core/text/itratr.hxx
index dd3a755..78130e5 100644
--- a/sw/source/core/text/itratr.hxx
+++ b/sw/source/core/text/itratr.hxx
@@ -20,16 +20,10 @@
#define INCLUDED_SW_SOURCE_CORE_TEXT_ITRATR_HXX
#include <o3tl/deleter.hxx>
#include "atrhndl.hxx"
#include <swtypes.hxx>
#include <swfont.hxx>
#include "porlay.hxx"
namespace sw { struct MergedPara; }
class OutputDevice;
class SwFont;
class SwpHints;
class SwTextAttr;
class SwAttrSet;
class SwTextNode;
class SwRedlineItr;
class SwViewShell;
diff --git a/sw/source/core/text/itrform2.hxx b/sw/source/core/text/itrform2.hxx
index 555fed2..53db28c 100644
--- a/sw/source/core/text/itrform2.hxx
+++ b/sw/source/core/text/itrform2.hxx
@@ -21,7 +21,6 @@
#include "itrpaint.hxx"
class SwFlyCntPortion;
class SwInterHyphInfo;
class SwDropPortion;
class SwFormatDrop;
class SwTextAttr;
@@ -31,8 +30,6 @@ class SwExpandPortion;
class SwMultiPortion;
class SwFootnotePortion;
namespace sw { class MergedAttrIterByEnd; }
class SwTextFormatter : public SwTextPainter
{
const SwFormatDrop *pDropFormat;
diff --git a/sw/source/core/text/itrtxt.cxx b/sw/source/core/text/itrtxt.cxx
index c975a68..5a9976b 100644
--- a/sw/source/core/text/itrtxt.cxx
+++ b/sw/source/core/text/itrtxt.cxx
@@ -19,6 +19,7 @@
#include <ndtxt.hxx>
#include <flyfrm.hxx>
#include <txatbase.hxx>
#include <paratr.hxx>
#include <vcl/outdev.hxx>
#include <editeng/paravertalignitem.hxx>
diff --git a/sw/source/core/text/itrtxt.hxx b/sw/source/core/text/itrtxt.hxx
index bdf6cd0..9c4e5ea 100644
--- a/sw/source/core/text/itrtxt.hxx
+++ b/sw/source/core/text/itrtxt.hxx
@@ -22,7 +22,6 @@
#include "itratr.hxx"
#include "inftxt.hxx"
class SwTextFrame;
struct SwPosition;
struct SwCursorMoveState;
class SwMarginPortion;
diff --git a/sw/source/core/text/porfld.cxx b/sw/source/core/text/porfld.cxx
index 760a0a8..5249d904da 100644
--- a/sw/source/core/text/porfld.cxx
+++ b/sw/source/core/text/porfld.cxx
@@ -31,6 +31,7 @@
#include "porfld.hxx"
#include "inftxt.hxx"
#include <blink.hxx>
#include <fmtornt.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include <viewsh.hxx>
diff --git a/sw/source/core/text/porfld.hxx b/sw/source/core/text/porfld.hxx
index 998f33e..5436cc9 100644
--- a/sw/source/core/text/porfld.hxx
+++ b/sw/source/core/text/porfld.hxx
@@ -22,10 +22,8 @@
#include <swtypes.hxx>
#include <swfont.hxx>
#include "porexp.hxx"
#include <fmtornt.hxx>
#include <o3tl/enumarray.hxx>
class SwFont;
class SvxBrushItem;
class SwFormatVertOrient;
diff --git a/sw/source/core/text/porfly.hxx b/sw/source/core/text/porfly.hxx
index e2c0360..7d859ad 100644
--- a/sw/source/core/text/porfly.hxx
+++ b/sw/source/core/text/porfly.hxx
@@ -25,7 +25,6 @@
#include <flyfrms.hxx>
class SwDrawContact;
class SwFlyInContentFrame;
class SwTextFrame;
struct SwCursorMoveState;
diff --git a/sw/source/core/text/porftn.hxx b/sw/source/core/text/porftn.hxx
index 06f05a15..49a3d5d 100644
--- a/sw/source/core/text/porftn.hxx
+++ b/sw/source/core/text/porftn.hxx
@@ -21,7 +21,6 @@
#include "porfld.hxx"
class SwTextFrame;
class SwTextFootnote;
class SwFootnotePortion : public SwFieldPortion
diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx
index 871ced3..46b3c60 100644
--- a/sw/source/core/text/porlay.cxx
+++ b/sw/source/core/text/porlay.cxx
@@ -53,6 +53,7 @@
#include <calbck.hxx>
#include <doc.hxx>
#include <swscanner.hxx>
#include <txatbase.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentContentOperations.hxx>
diff --git a/sw/source/core/text/porlay.hxx b/sw/source/core/text/porlay.hxx
index 38aabd6..2997b88c 100644
--- a/sw/source/core/text/porlay.hxx
+++ b/sw/source/core/text/porlay.hxx
@@ -19,19 +19,17 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_PORLAY_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_PORLAY_HXX
#include <tools/fract.hxx>
#include <scriptinfo.hxx>
#include <swrect.hxx>
#include <swtypes.hxx>
#include "portxt.hxx"
#include <swfont.hxx>
#include <vector>
#include <deque>
class SwMarginPortion;
class SwDropPortion;
class SvStream;
class SwTextFormatter;
class SwCharRange
diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx
index 2b45e75..6de5a61 100644
--- a/sw/source/core/text/porlin.hxx
+++ b/sw/source/core/text/porlin.hxx
@@ -22,10 +22,7 @@
#include "possiz.hxx"
#include <txttypes.hxx>
#include <TextFrameIndex.hxx>
#ifdef DBG_UTIL
#include <libxml/xmlwriter.h>
#endif
#include <rtl/ustring.hxx>
class SwTextSizeInfo;
class SwTextPaintInfo;
diff --git a/sw/source/core/text/pormulti.hxx b/sw/source/core/text/pormulti.hxx
index 412efef..b78dc62 100644
--- a/sw/source/core/text/pormulti.hxx
+++ b/sw/source/core/text/pormulti.hxx
@@ -21,13 +21,11 @@
#include <memory>
#include "porlay.hxx"
#include "porexp.hxx"
#include <com/sun/star/text/RubyAdjust.hpp>
class IDocumentSettingAccess;
class SwTextFormatInfo;
class SwFieldPortion;
class SwTextCursor;
class SwLineLayout;
class SwTextPaintInfo;
class SwTextAttr;
class SfxPoolItem;
diff --git a/sw/source/core/text/porrst.hxx b/sw/source/core/text/porrst.hxx
index a7ae25d..85e85d1 100644
--- a/sw/source/core/text/porrst.hxx
+++ b/sw/source/core/text/porrst.hxx
@@ -18,8 +18,19 @@
*/
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_PORRST_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_PORRST_HXX
#include "porlay.hxx"
#include "porexp.hxx"
#include <tools/gen.hxx>
#include <TextFrameIndex.hxx>
#include <txttypes.hxx>
#include "porlin.hxx"
#include "portxt.hxx"
#include "possiz.hxx"
class SwPortionHandler;
class SwTextPaintInfo;
class SwTextSizeInfo;
#define LINE_BREAK_WIDTH 150
#define SPECIAL_FONT_HEIGHT 200
diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx
index f9e364c..5dd92da 100644
--- a/sw/source/core/text/portxt.cxx
+++ b/sw/source/core/text/portxt.cxx
@@ -20,6 +20,7 @@
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <i18nlangtag/mslangid.hxx>
#include <breakit.hxx>
#include <hintids.hxx>
#include <EnhancedPDFExportHelper.hxx>
#include <SwPortionHandler.hxx>
diff --git a/sw/source/core/text/redlnitr.cxx b/sw/source/core/text/redlnitr.cxx
index 95ce480..e982400 100644
--- a/sw/source/core/text/redlnitr.cxx
+++ b/sw/source/core/text/redlnitr.cxx
@@ -24,6 +24,7 @@
#include <hintids.hxx>
#include <svl/whiter.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <scriptinfo.hxx>
#include <swmodule.hxx>
#include <redline.hxx>
#include <txtatr.hxx>
diff --git a/sw/source/core/text/redlnitr.hxx b/sw/source/core/text/redlnitr.hxx
index 96a8401..0d6d365 100644
--- a/sw/source/core/text/redlnitr.hxx
+++ b/sw/source/core/text/redlnitr.hxx
@@ -19,8 +19,6 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_REDLNITR_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_REDLNITR_HXX
#include <ndhints.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <swfont.hxx>
@@ -28,6 +26,7 @@
#include <vcl/commandevent.hxx>
#include <cstddef>
#include <deque>
#include <memory>
#include <vector>
diff --git a/sw/source/core/text/txtcache.hxx b/sw/source/core/text/txtcache.hxx
index 0fa90c3..c5f5294 100644
--- a/sw/source/core/text/txtcache.hxx
+++ b/sw/source/core/text/txtcache.hxx
@@ -19,11 +19,10 @@
#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_TXTCACHE_HXX
#define INCLUDED_SW_SOURCE_CORE_TEXT_TXTCACHE_HXX
#include <sal/types.h>
#include <swcache.hxx>
#include "porlay.hxx"
#include <memory>
class SwParaPortion;
class SwTextFrame;
class SwTextLine : public SwCacheObj
diff --git a/sw/source/core/text/txtfly.cxx b/sw/source/core/text/txtfly.cxx
index 124648a..2502c02 100644
--- a/sw/source/core/text/txtfly.cxx
+++ b/sw/source/core/text/txtfly.cxx
@@ -27,6 +27,7 @@
#include <swregion.hxx>
#include <dflyobj.hxx>
#include <flyfrm.hxx>
#include <fmtornt.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include "porfly.hxx"
diff --git a/sw/source/core/text/txthyph.cxx b/sw/source/core/text/txthyph.cxx
index d2edb6a..615c287 100644
--- a/sw/source/core/text/txthyph.cxx
+++ b/sw/source/core/text/txthyph.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <breakit.hxx>
#include <hintids.hxx>
#include <editeng/unolingu.hxx>
#include <com/sun/star/i18n/WordType.hpp>
diff --git a/sw/source/core/text/txtpaint.cxx b/sw/source/core/text/txtpaint.cxx
index 5609a17..0518d33 100644
--- a/sw/source/core/text/txtpaint.cxx
+++ b/sw/source/core/text/txtpaint.cxx
@@ -18,6 +18,7 @@
*/
#include "txtpaint.hxx"
#include <txtfrm.hxx>
#include <swrect.hxx>
#include <rootfrm.hxx>
diff --git a/sw/source/core/text/txtpaint.hxx b/sw/source/core/text/txtpaint.hxx
index eba46093..68149c9 100644
--- a/sw/source/core/text/txtpaint.hxx
+++ b/sw/source/core/text/txtpaint.hxx
@@ -21,7 +21,7 @@
#include <vcl/outdev.hxx>
class SwRect; // SwSaveClip
#include <txtfrm.hxx>
class SwTextFrame;
class SwSaveClip final
{
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index a905e10..6dfeaca 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -23,6 +23,7 @@
#include "porlay.hxx"
#include "portxt.hxx"
#include <sortedobjs.hxx>
#include <swfont.hxx>
#include <anchoredobject.hxx>
#include <libxml/xmlwriter.h>
#include <SwPortionHandler.hxx>