tdf#42949 Fix IWYU warnings in sw/source/core/inc/[t-w]*

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: I7cd9837360e244741bfa22b4693fd221241daf12
Reviewed-on: https://gerrit.libreoffice.org/71833
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
diff --git a/sw/IwyuFilter_sw.yaml b/sw/IwyuFilter_sw.yaml
index 15e849e..2672bd5 100644
--- a/sw/IwyuFilter_sw.yaml
+++ b/sw/IwyuFilter_sw.yaml
@@ -270,6 +270,101 @@ blacklist:
    sw/source/core/inc/swthreadjoiner.hxx:
    # Needed for css shortcut
    - sal/types.h
    sw/source/core/inc/unobookmark.hxx:
    # Base class needs complete type
    - com/sun/star/lang/XUnoTunnel.hpp
    - com/sun/star/lang/XServiceInfo.hpp
    - com/sun/star/beans/XPropertySet.hpp
    - com/sun/star/container/XNamed.hpp
    - com/sun/star/text/XTextContent.hpp
    - com/sun/star/text/XFormField.hpp
    # Needed for UnoImplPtr template
    - unobaseclass.hxx
    sw/source/core/inc/unofield.hxx:
    # Base class needs complete type
    - com/sun/star/container/XEnumeration.hpp
    - com/sun/star/lang/XServiceInfo.hpp
    - com/sun/star/lang/XUnoTunnel.hpp
    - com/sun/star/text/XDependentTextField.hpp
    - com/sun/star/util/XUpdatable.hpp
    # Needed for UnoImplPtr template
    - unobaseclass.hxx
    include/svtools/unoevent.hxx:
    # Don't give false positives checking sw/source/core/inc/unoevent.hxx
    - com/sun/star/container/XNameReplace.hpp
    - com/sun/star/lang/XServiceInfo.hpp
    sw/source/core/inc/unoflatpara.hxx:
    # Base class needs complete type
    - com/sun/star/beans/XPropertySet.hpp
    - com/sun/star/lang/XUnoTunnel.hpp
    - com/sun/star/text/XFlatParagraph.hpp
    - com/sun/star/text/XFlatParagraphIterator.hpp
    sw/source/core/inc/unofootnote.hxx:
    # Base class needs complete type
    - com/sun/star/lang/XUnoTunnel.hpp
    - com/sun/star/lang/XServiceInfo.hpp
    - com/sun/star/beans/XPropertySet.hpp
    - com/sun/star/container/XEnumerationAccess.hpp
    - com/sun/star/text/XFootnote.hpp
    sw/source/core/inc/unoidx.hxx:
    # Base class needs complete type
    - com/sun/star/lang/XServiceInfo.hpp
    - com/sun/star/lang/XUnoTunnel.hpp
    - com/sun/star/beans/XPropertySet.hpp
    - com/sun/star/container/XNamed.hpp
    - com/sun/star/util/XRefreshable.hpp
    - com/sun/star/text/XDocumentIndexMark.hpp
    - com/sun/star/text/XDocumentIndex.hpp
    # Needed for UnoImplPtr template
    - unobaseclass.hxx
    sw/source/core/inc/unometa.hxx:
    # Base class needs complete type
    - com/sun/star/lang/XServiceInfo.hpp
    - com/sun/star/lang/XUnoTunnel.hpp
    - com/sun/star/beans/XPropertySet.hpp
    - com/sun/star/container/XChild.hpp
    - com/sun/star/container/XEnumerationAccess.hpp
    - com/sun/star/text/XTextContent.hpp
    - com/sun/star/text/XTextField.hpp
    # Needed for UnoImplPtr template
    - unobaseclass.hxx
    sw/source/core/inc/unorefmark.hxx:
    # Base class needs complete type
    - com/sun/star/lang/XUnoTunnel.hpp
    - com/sun/star/lang/XServiceInfo.hpp
    - com/sun/star/beans/XPropertySet.hpp
    - com/sun/star/container/XNamed.hpp
    - com/sun/star/text/XTextContent.hpp
    # Needed for UnoImplPtr template
    - unobaseclass.hxx
    sw/source/core/inc/unoport.hxx:
    # Base class needs complete type
    - com/sun/star/text/XTextRange.hpp
    - com/sun/star/beans/XPropertySet.hpp
    - com/sun/star/container/XEnumeration.hpp
    - com/sun/star/lang/XServiceInfo.hpp
    - com/sun/star/lang/XUnoTunnel.hpp
    - com/sun/star/container/XContentEnumerationAccess.hpp
    - com/sun/star/beans/XMultiPropertySet.hpp
    - com/sun/star/beans/XPropertyState.hpp
    - com/sun/star/beans/XTolerantMultiPropertySet.hpp
    sw/source/core/inc/unotextmarkup.hxx:
    # Base class needs complete type
    - com/sun/star/text/XTextMarkup.hpp
    - com/sun/star/text/XMultiTextMarkup.hpp
    # Needed for UnoImplPtr template
    - unobaseclass.hxx
    sw/source/core/inc/unosection.hxx:
    # Base class needs complete type
    - com/sun/star/lang/XUnoTunnel.hpp
    - com/sun/star/lang/XServiceInfo.hpp
    - com/sun/star/beans/XPropertySet.hpp
    - com/sun/star/beans/XPropertyState.hpp
    - com/sun/star/beans/XMultiPropertySet.hpp
    - com/sun/star/container/XNamed.hpp
    - com/sun/star/text/XTextSection.hpp
    # Needed for UnoImplPtr template
    - unobaseclass.hxx
    sw/qa/extras/odfexport/odfexport.cxx:
    # Needed for getProperty template
    - com/sun/star/graphic/XGraphic.hpp
diff --git a/sw/inc/unoredline.hxx b/sw/inc/unoredline.hxx
index 80a3db1..f2893bf 100644
--- a/sw/inc/unoredline.hxx
+++ b/sw/inc/unoredline.hxx
@@ -20,6 +20,7 @@
#define INCLUDED_SW_INC_UNOREDLINE_HXX

#include <svl/listener.hxx>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include "unotext.hxx"
#include "ndindex.hxx"

diff --git a/sw/source/core/crsr/findfmt.cxx b/sw/source/core/crsr/findfmt.cxx
index 1193cf8..3125dd5 100644
--- a/sw/source/core/crsr/findfmt.cxx
+++ b/sw/source/core/crsr/findfmt.cxx
@@ -21,6 +21,7 @@
#include <pamtyp.hxx>
#include <pam.hxx>
#include <txtfrm.hxx>
#include <ndtxt.hxx>
#include <memory>

namespace sw {
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index ab84f48..baf3280 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -44,6 +44,7 @@
#include <SwGrammarMarkUp.hxx>
#include <docedt.hxx>
#include <frmfmt.hxx>
#include <ndtxt.hxx>

#include <vector>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
diff --git a/sw/source/core/fields/textapi.cxx b/sw/source/core/fields/textapi.cxx
index fc753af..29729fd 100644
--- a/sw/source/core/fields/textapi.cxx
+++ b/sw/source/core/fields/textapi.cxx
@@ -21,9 +21,14 @@
#include <doc.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <docsh.hxx>
#include <comphelper/propertysetinfo.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/editeng.hxx>
#include <editeng/outlobj.hxx>
#include <editeng/outliner.hxx>
#include <editeng/unoprnms.hxx>
#include <editeng/unoforou.hxx>
#include <editeng/unoipset.hxx>

#include <com/sun/star/text/XTextField.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
diff --git a/sw/source/core/frmedt/fedesc.cxx b/sw/source/core/frmedt/fedesc.cxx
index f386ffe..8ab4e1e 100644
--- a/sw/source/core/frmedt/fedesc.cxx
+++ b/sw/source/core/frmedt/fedesc.cxx
@@ -34,6 +34,7 @@
#include <tabfrm.hxx>
#include <edimp.hxx>
#include <SwStyleNameMapper.hxx>
#include <ndtxt.hxx>

size_t SwFEShell::GetPageDescCnt() const
{
diff --git a/sw/source/core/inc/UndoCore.hxx b/sw/source/core/inc/UndoCore.hxx
index 8dfbf4e..002f2eb 100644
--- a/sw/source/core/inc/UndoCore.hxx
+++ b/sw/source/core/inc/UndoCore.hxx
@@ -34,7 +34,6 @@ class SwFormatColl;
class SwFormatAnchor;
class SdrMarkList;
class SwUndoDelete;
class SwFormat;

namespace sw {
    class UndoManager;
diff --git a/sw/source/core/inc/UndoDraw.hxx b/sw/source/core/inc/UndoDraw.hxx
index e75d8b8..0cd836e 100644
--- a/sw/source/core/inc/UndoDraw.hxx
+++ b/sw/source/core/inc/UndoDraw.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SW_SOURCE_CORE_INC_UNDODRAW_HXX

#include <undobj.hxx>
#include <svx/svdundo.hxx>
#include <memory>

struct SwUndoGroupObjImpl;
diff --git a/sw/source/core/inc/UndoOverwrite.hxx b/sw/source/core/inc/UndoOverwrite.hxx
index 443d13a..0fe66a6 100644
--- a/sw/source/core/inc/UndoOverwrite.hxx
+++ b/sw/source/core/inc/UndoOverwrite.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_SW_SOURCE_CORE_INC_UNDOOVERWRITE_HXX

#include <memory>
#include <com/sun/star/uno/Sequence.h>
#include <rtl/ustring.hxx>
#include <undobj.hxx>

diff --git a/sw/source/core/inc/UndoSection.hxx b/sw/source/core/inc/UndoSection.hxx
index 9852597..3bb1e3e 100644
--- a/sw/source/core/inc/UndoSection.hxx
+++ b/sw/source/core/inc/UndoSection.hxx
@@ -22,7 +22,6 @@

#include <undobj.hxx>
#include <memory>
#include <swdllapi.h>

class SfxItemSet;
class SwTextNode;
diff --git a/sw/source/core/inc/UndoTable.hxx b/sw/source/core/inc/UndoTable.hxx
index 193638b..65a62d2 100644
--- a/sw/source/core/inc/UndoTable.hxx
+++ b/sw/source/core/inc/UndoTable.hxx
@@ -24,7 +24,6 @@
#include <ndarr.hxx>
#include <undobj.hxx>
#include <set>
#include <swtypes.hxx>
#include <itabenum.hxx>
#include <tblenum.hxx>
#include <memory>
diff --git a/sw/source/core/inc/tblrwcl.hxx b/sw/source/core/inc/tblrwcl.hxx
index 97416a6..25ae789 100644
--- a/sw/source/core/inc/tblrwcl.hxx
+++ b/sw/source/core/inc/tblrwcl.hxx
@@ -24,15 +24,12 @@
#include <vector>

#include <swtypes.hxx>
#include <tblsel.hxx>
#include <swtable.hxx>

namespace editeng { class SvxBorderLine; }

class SwDoc;
class SwTableNode;
class SwTableLine;
class SwTableBox;
class SwTableBoxFormat;
class SwHistory;
class SwContentNode;
diff --git a/sw/source/core/inc/textapi.hxx b/sw/source/core/inc/textapi.hxx
index e2d7045..ee8bd31 100644
--- a/sw/source/core/inc/textapi.hxx
+++ b/sw/source/core/inc/textapi.hxx
@@ -22,11 +22,7 @@

#include <editeng/unoedsrc.hxx>
#include <editeng/unotext.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/outliner.hxx>
#include <editeng/unoipset.hxx>
#include <editeng/unoprnms.hxx>
#include <editeng/unoforou.hxx>
#include <editeng/outlobj.hxx>

class SwDoc;

diff --git a/sw/source/core/inc/threadlistener.hxx b/sw/source/core/inc/threadlistener.hxx
index 8a5c1e9..4917296 100644
--- a/sw/source/core/inc/threadlistener.hxx
+++ b/sw/source/core/inc/threadlistener.hxx
@@ -20,9 +20,9 @@
#define INCLUDED_SW_SOURCE_CORE_INC_THREADLISTENER_HXX

#include "ifinishedthreadlistener.hxx"
#include "observablethread.hxx"

class ThreadManager;
class ObservableThread;

/** helper class to observe threads

diff --git a/sw/source/core/inc/tolayoutanchoredobjectposition.hxx b/sw/source/core/inc/tolayoutanchoredobjectposition.hxx
index 1b538da..14bda97 100644
--- a/sw/source/core/inc/tolayoutanchoredobjectposition.hxx
+++ b/sw/source/core/inc/tolayoutanchoredobjectposition.hxx
@@ -19,8 +19,6 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_TOLAYOUTANCHOREDOBJECTPOSITION_HXX
#define INCLUDED_SW_SOURCE_CORE_INC_TOLAYOUTANCHOREDOBJECTPOSITION_HXX
#include "anchoredobjectposition.hxx"
#include <swtypes.hxx>
#include <swrect.hxx>

namespace objectpositioning
{
diff --git a/sw/source/core/inc/txtfly.hxx b/sw/source/core/inc/txtfly.hxx
index f8b2979..62eda5b 100644
--- a/sw/source/core/inc/txtfly.hxx
+++ b/sw/source/core/inc/txtfly.hxx
@@ -19,6 +19,7 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_TXTFLY_HXX
#define INCLUDED_SW_SOURCE_CORE_INC_TXTFLY_HXX

#include <editeng/txtrange.hxx>
#include <tools/solar.h>
#include <swtypes.hxx>
#include <swrect.hxx>
@@ -27,11 +28,9 @@
#include <vector>

class OutputDevice;
class SwContentFrame;
class SwPageFrame;
class SdrObject;
class SwFormat;
class TextRanger;
class SwAnchoredObject;
class SwTextFrame;
class SwDrawTextInfo;
diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx
index 51eaf62..c9deeb0 100644
--- a/sw/source/core/inc/txtfrm.hxx
+++ b/sw/source/core/inc/txtfrm.hxx
@@ -21,11 +21,12 @@

#include <com/sun/star/uno/Sequence.hxx>
#include "cntfrm.hxx"
#include <ndtxt.hxx>
#include "TextFrameIndex.hxx"

#include <boost/version.hpp>

#include <set>

namespace com { namespace sun { namespace star { namespace linguistic2 { class XHyphenatedWord; } } } }

namespace sw { namespace mark { class IMark; } }
@@ -36,19 +37,17 @@ class SwTextFormatter;
class SwTextFormatInfo;
class SwParaPortion;
class WidowsAndOrphans;
class SwBodyFrame;
class SwTextFootnote;
class SwInterHyphInfo;      // Hyphenate()
class SwCache;
class SwBorderAttrs;
class SwFrameFormat;
class OutputDevice;
class SwTestFormat;
struct SwCursorMoveState;
struct SwFillData;
class SwPortionHandler;
class SwScriptInfo;
enum class ExpandMode;
class SwTextAttr;

#define NON_PRINTING_CHARACTER_COLOR Color(0x26, 0x8b, 0xd2)

diff --git a/sw/source/core/inc/txttypes.hxx b/sw/source/core/inc/txttypes.hxx
index 89db78b..442b997 100644
--- a/sw/source/core/inc/txttypes.hxx
+++ b/sw/source/core/inc/txttypes.hxx
@@ -19,8 +19,6 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_TXTTYPES_HXX
#define INCLUDED_SW_SOURCE_CORE_INC_TXTTYPES_HXX

#include <swtypes.hxx>

enum class PortionType
{
    NONE        = 0x0000,
diff --git a/sw/source/core/inc/unoevent.hxx b/sw/source/core/inc/unoevent.hxx
index dd99a5a..1989a6f 100644
--- a/sw/source/core/inc/unoevent.hxx
+++ b/sw/source/core/inc/unoevent.hxx
@@ -20,8 +20,6 @@
#define INCLUDED_SW_SOURCE_CORE_INC_UNOEVENT_HXX

#include <svtools/unoevent.hxx>
#include <unostyle.hxx>
#include <svl/macitem.hxx>

class SvxMacroItem;
class SwXFrame;
@@ -29,6 +27,7 @@ class SwXTextFrame;
class SwXTextGraphicObject;
class SwXTextEmbeddedObject;
class SwFormatINetFormat;
namespace sw { class ICoreFrameStyle; }

class SwHyperlinkEventDescriptor : public SvDetachedEventDescriptor
{
diff --git a/sw/source/core/inc/unofield.hxx b/sw/source/core/inc/unofield.hxx
index 723b954..47f9f0c 100644
--- a/sw/source/core/inc/unofield.hxx
+++ b/sw/source/core/inc/unofield.hxx
@@ -32,7 +32,6 @@
#include <unocoll.hxx>
#include <fldbas.hxx>

class SwFieldType;
class SwDoc;
class SwFormatField;
class SwSetExpField;
diff --git a/sw/source/core/inc/unoflatpara.hxx b/sw/source/core/inc/unoflatpara.hxx
index ad584db..b59c03a 100644
--- a/sw/source/core/inc/unoflatpara.hxx
+++ b/sw/source/core/inc/unoflatpara.hxx
@@ -27,7 +27,6 @@
#include <com/sun/star/text/XFlatParagraph.hpp>
#include <com/sun/star/text/XFlatParagraphIterator.hpp>
#include <svl/listener.hxx>
#include <modeltoviewhelper.hxx>
#include "unotextmarkup.hxx"

#include <set>
@@ -42,6 +41,7 @@ namespace com { namespace sun { namespace star { namespace text {

class SwTextNode;
class SwDoc;
class ModelToViewHelper;

typedef ::cppu::ImplInheritanceHelper
<   SwXTextMarkup
diff --git a/sw/source/core/inc/unofldmid.h b/sw/source/core/inc/unofldmid.h
index 949f554..2bb13a6 100644
--- a/sw/source/core/inc/unofldmid.h
+++ b/sw/source/core/inc/unofldmid.h
@@ -19,12 +19,6 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_UNOFLDMID_H
#define INCLUDED_SW_SOURCE_CORE_INC_UNOFLDMID_H

#include <tools/solar.h>

namespace com { namespace sun { namespace star { namespace uno {
    class Any;
} } } }

// mapping of the properties on the descriptor
#define FIELD_PROP_PAR1             10
#define FIELD_PROP_PAR2             11
diff --git a/sw/source/core/inc/unofreg.hxx b/sw/source/core/inc/unofreg.hxx
index e8d99c1..8350cc7 100644
--- a/sw/source/core/inc/unofreg.hxx
+++ b/sw/source/core/inc/unofreg.hxx
@@ -23,7 +23,6 @@
#include <sal/config.h>
#include <sfx2/sfxmodelfactory.hxx>

#include <com/sun/star/uno/Exception.hpp>
#include <com/sun/star/uno/Sequence.hxx>

namespace com { namespace sun { namespace star { namespace lang {
diff --git a/sw/source/core/inc/unoparaframeenum.hxx b/sw/source/core/inc/unoparaframeenum.hxx
index cd9b1bc..17b1b00 100644
--- a/sw/source/core/inc/unoparaframeenum.hxx
+++ b/sw/source/core/inc/unoparaframeenum.hxx
@@ -22,9 +22,6 @@

#include <deque>


#include <cppuhelper/implbase.hxx>

#include <calbck.hxx>
#include <unobaseclass.hxx>

diff --git a/sw/source/core/inc/unoport.hxx b/sw/source/core/inc/unoport.hxx
index 2cb9ddb..afe00a0 100644
--- a/sw/source/core/inc/unoport.hxx
+++ b/sw/source/core/inc/unoport.hxx
@@ -23,16 +23,12 @@
#include <deque>

#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <com/sun/star/container/XEnumeration.hpp>
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <com/sun/star/beans/XTolerantMultiPropertySet.hpp>
#include <com/sun/star/text/XTextField.hpp>
#include <com/sun/star/text/XFootnote.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>

@@ -42,8 +38,10 @@

#include <unocrsr.hxx>
#include <calbck.hxx>
#include <unobaseclass.hxx>
#include <IDocumentRedlineAccess.hxx>

namespace com::sun::star::beans { struct PropertyValue; }
namespace com::sun::star::text { class XTextField; }
namespace com::sun::star::text { class XFootnote; }

class SwFrameFormat;
class SwRangeRedline;
diff --git a/sw/source/core/inc/viewimp.hxx b/sw/source/core/inc/viewimp.hxx
index 8a62ae2..4a59930 100644
--- a/sw/source/core/inc/viewimp.hxx
+++ b/sw/source/core/inc/viewimp.hxx
@@ -19,15 +19,13 @@
#ifndef INCLUDED_SW_SOURCE_CORE_INC_VIEWIMP_HXX
#define INCLUDED_SW_SOURCE_CORE_INC_VIEWIMP_HXX

#include <rtl/ustring.hxx>
#include <tools/color.hxx>
#include <svx/svdtypes.hxx>
#include <vcl/timer.hxx>
#include <swrect.hxx>
#include <swtypes.hxx>
#include <vector>
#include <memory>

class OutputDevice;
class SwViewShell;
class SwFlyFrame;
class SwViewOption;
@@ -38,7 +36,6 @@ class SwLayIdle;
class SwDrawView;
class SdrPageView;
class SwPageFrame;
class SwRegionRects;
class SwAccessibleMap;
class SdrObject;
class Fraction;
diff --git a/sw/source/core/layout/calcmove.cxx b/sw/source/core/layout/calcmove.cxx
index c09efcb..914b179 100644
--- a/sw/source/core/layout/calcmove.cxx
+++ b/sw/source/core/layout/calcmove.cxx
@@ -25,6 +25,7 @@
#include <frmtool.hxx>
#include <txtftn.hxx>
#include <fmtftn.hxx>
#include <ndtxt.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/keepitem.hxx>
#include <svx/sdtaitm.hxx>
diff --git a/sw/source/core/layout/dbg_lay.cxx b/sw/source/core/layout/dbg_lay.cxx
index 0ad2d95..c69e27b 100644
--- a/sw/source/core/layout/dbg_lay.cxx
+++ b/sw/source/core/layout/dbg_lay.cxx
@@ -107,6 +107,7 @@
#include <layfrm.hxx>
#include <frame.hxx>
#include <swtable.hxx>
#include <ndtxt.hxx>
#include <sal/log.hxx>
#include <tools/stream.hxx>

diff --git a/sw/source/core/layout/findfrm.cxx b/sw/source/core/layout/findfrm.cxx
index 1e98e75..786c762 100644
--- a/sw/source/core/layout/findfrm.cxx
+++ b/sw/source/core/layout/findfrm.cxx
@@ -35,6 +35,7 @@
#include <bodyfrm.hxx>
#include <calbck.hxx>
#include <viewopt.hxx>
#include <ndtxt.hxx>
#include <sal/log.hxx>

/// Searches the first ContentFrame in BodyText below the page.
diff --git a/sw/source/core/layout/flowfrm.cxx b/sw/source/core/layout/flowfrm.cxx
index 76ace95..6285a8b 100644
--- a/sw/source/core/layout/flowfrm.cxx
+++ b/sw/source/core/layout/flowfrm.cxx
@@ -60,6 +60,7 @@
#include <IDocumentSettingAccess.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>

bool SwFlowFrame::m_bMoveBwdJump = false;

diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index c701c9d..b02b911 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -75,6 +75,7 @@
#include <edtwin.hxx>
#include <bodyfrm.hxx>
#include <FrameControlsManager.hxx>
#include <ndtxt.hxx>

using namespace ::com::sun::star;

diff --git a/sw/source/core/layout/flycnt.cxx b/sw/source/core/layout/flycnt.cxx
index 9163098..f3c442a 100644
--- a/sw/source/core/layout/flycnt.cxx
+++ b/sw/source/core/layout/flycnt.cxx
@@ -46,6 +46,7 @@
#include <layouter.hxx>
#include "objectformattertxtfrm.hxx"
#include <HandleAnchorNodeChg.hxx>
#include <ndtxt.hxx>

using namespace ::com::sun::star;

diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index b5e458e..2cfab46 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -64,6 +64,7 @@
#include <sortedobjs.hxx>
#include <objectformatter.hxx>
#include <calbck.hxx>
#include <ndtxt.hxx>
#include <DocumentSettingManager.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <IDocumentTimerAccess.hxx>
diff --git a/sw/source/core/layout/ftnfrm.cxx b/sw/source/core/layout/ftnfrm.cxx
index 7f5ac35..280e6ed 100644
--- a/sw/source/core/layout/ftnfrm.cxx
+++ b/sw/source/core/layout/ftnfrm.cxx
@@ -35,6 +35,7 @@
#include <calbck.hxx>
#include <ndindex.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
#include <sal/log.hxx>

#define ENDNOTE 0x80000000
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index 8b5922c..174e156 100644
--- a/sw/source/core/layout/layact.cxx
+++ b/sw/source/core/layout/layact.cxx
@@ -50,6 +50,7 @@
#include <fmtsrnd.hxx>
#include <docsh.hxx>

#include <ndtxt.hxx>
#include <tabfrm.hxx>
#include <ftnfrm.hxx>
#include <txtfrm.hxx>
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx
index 99e0c83..dbf74df 100644
--- a/sw/source/core/layout/laycache.cxx
+++ b/sw/source/core/layout/laycache.cxx
@@ -44,6 +44,7 @@
#include <sortedobjs.hxx>
#include <ndindex.hxx>
#include <node.hxx>
#include <ndtxt.hxx>

#include <limits>
#include <set>
diff --git a/sw/source/core/layout/movedfwdfrmsbyobjpos.cxx b/sw/source/core/layout/movedfwdfrmsbyobjpos.cxx
index 7585cd2..7aba4b7 100644
--- a/sw/source/core/layout/movedfwdfrmsbyobjpos.cxx
+++ b/sw/source/core/layout/movedfwdfrmsbyobjpos.cxx
@@ -22,6 +22,7 @@
#include <rowfrm.hxx>
#include <pagefrm.hxx>
#include <calbck.hxx>
#include <ndtxt.hxx>

SwMovedFwdFramesByObjPos::SwMovedFwdFramesByObjPos()
{
diff --git a/sw/source/core/layout/softpagebreak.cxx b/sw/source/core/layout/softpagebreak.cxx
index 9113ed7..c1fda88 100644
--- a/sw/source/core/layout/softpagebreak.cxx
+++ b/sw/source/core/layout/softpagebreak.cxx
@@ -24,6 +24,7 @@
#include <rowfrm.hxx>
#include <tabfrm.hxx>
#include <calbck.hxx>
#include <ndtxt.hxx>

void SwTextNode::fillSoftPageBreakList( SwSoftPageBreakList& rBreak ) const
{
diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx
index 9e496a1..4e80de5 100644
--- a/sw/source/core/layout/ssfrm.cxx
+++ b/sw/source/core/layout/ssfrm.cxx
@@ -33,6 +33,7 @@
#include <sortedobjs.hxx>
#include <hints.hxx>
#include <frmtool.hxx>
#include <ndtxt.hxx>

    // No inline cause we need the function pointers
long SwFrame::GetTopMargin() const
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index c78c588..eb36094 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -60,6 +60,7 @@
#include <sal/log.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include <ndtxt.hxx>

using namespace ::com::sun::star;

diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index 86747c4..24b9f6b 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -47,6 +47,7 @@
#include <fldbas.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include <ndtxt.hxx>

#include <cfloat>
#include <swselectionlist.hxx>
diff --git a/sw/source/core/layout/wsfrm.cxx b/sw/source/core/layout/wsfrm.cxx
index 187f64e..b6014dd 100644
--- a/sw/source/core/layout/wsfrm.cxx
+++ b/sw/source/core/layout/wsfrm.cxx
@@ -56,6 +56,7 @@
#include <sortedobjs.hxx>
#include <frmatr.hxx>
#include <frmtool.hxx>
#include <ndtxt.hxx>

// RotateFlyFrame3
#include <basegfx/matrix/b2dhommatrixtools.hxx>
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index b99645b..a905e10 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -18,6 +18,7 @@
#include <hffrm.hxx>
#include <rootfrm.hxx>
#include <editsh.hxx>
#include <ndtxt.hxx>
#include "porlin.hxx"
#include "porlay.hxx"
#include "portxt.hxx"
diff --git a/sw/source/core/undo/undobj1.cxx b/sw/source/core/undo/undobj1.cxx
index 4b532ad..f88611b 100644
--- a/sw/source/core/undo/undobj1.cxx
+++ b/sw/source/core/undo/undobj1.cxx
@@ -18,6 +18,7 @@
 */

#include <svl/itemiter.hxx>
#include <svx/svdundo.hxx>
#include <hintids.hxx>
#include <hints.hxx>
#include <fmtflcnt.hxx>
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index 6361449..efb4ff9 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -86,6 +86,7 @@
#include <scriptinfo.hxx>
#include <tools/datetime.hxx>
#include <tools/urlobj.hxx>
#include <svl/itemprop.hxx>
#include <svl/listener.hxx>
#include <svx/dataaccessdescriptor.hxx>
#include <o3tl/any.hxx>
diff --git a/sw/source/core/unocore/unoport.cxx b/sw/source/core/unocore/unoport.cxx
index bd5cd91..7c03d12 100644
--- a/sw/source/core/unocore/unoport.cxx
+++ b/sw/source/core/unocore/unoport.cxx
@@ -44,6 +44,8 @@
#include <com/sun/star/beans/GetPropertyTolerantResult.hpp>
#include <com/sun/star/beans/TolerantPropertySetResultType.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/text/XFootnote.hpp>
#include <com/sun/star/text/XTextField.hpp>
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <comphelper/sequence.hxx>
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx
index b8c37eb..8c4f120 100644
--- a/sw/source/core/unocore/unoportenum.cxx
+++ b/sw/source/core/unocore/unoportenum.cxx
@@ -61,6 +61,7 @@
#include <comphelper/string.hxx>
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/container/XEnumeration.hpp>
#include <algorithm>
#include <memory>
#include <set>
diff --git a/sw/source/uibase/docvw/PageBreakWin.cxx b/sw/source/uibase/docvw/PageBreakWin.cxx
index d10ff2b..1556aaf 100644
--- a/sw/source/uibase/docvw/PageBreakWin.cxx
+++ b/sw/source/uibase/docvw/PageBreakWin.cxx
@@ -14,6 +14,7 @@
#include <cntfrm.hxx>
#include <txtfrm.hxx>
#include <notxtfrm.hxx>
#include <ndtxt.hxx>
#include <DashedLine.hxx>
#include <doc.hxx>
#include <edtwin.hxx>
diff --git a/sw/source/uibase/docvw/UnfloatTableButton.cxx b/sw/source/uibase/docvw/UnfloatTableButton.cxx
index a4a92be..63604b6 100644
--- a/sw/source/uibase/docvw/UnfloatTableButton.cxx
+++ b/sw/source/uibase/docvw/UnfloatTableButton.cxx
@@ -24,6 +24,7 @@
#include <txtfrm.hxx>
#include <pagefrm.hxx>
#include <ndindex.hxx>
#include <ndtxt.hxx>
#include <swtable.hxx>
#include <IDocumentState.hxx>
#include <IDocumentUndoRedo.hxx>