summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells')
-rw-r--r--sw/source/uibase/shells/annotsh.cxx26
-rw-r--r--sw/source/uibase/shells/basesh.cxx23
-rw-r--r--sw/source/uibase/shells/beziersh.cxx5
-rw-r--r--sw/source/uibase/shells/drawdlg.cxx9
-rw-r--r--sw/source/uibase/shells/drawsh.cxx10
-rw-r--r--sw/source/uibase/shells/drformsh.cxx8
-rw-r--r--sw/source/uibase/shells/drwbassh.cxx9
-rw-r--r--sw/source/uibase/shells/drwtxtex.cxx19
-rw-r--r--sw/source/uibase/shells/drwtxtsh.cxx10
-rw-r--r--sw/source/uibase/shells/frmsh.cxx18
-rw-r--r--sw/source/uibase/shells/grfsh.cxx20
-rw-r--r--sw/source/uibase/shells/grfshex.cxx18
-rw-r--r--sw/source/uibase/shells/langhelper.cxx5
-rw-r--r--sw/source/uibase/shells/listsh.cxx15
-rw-r--r--sw/source/uibase/shells/mediash.cxx31
-rw-r--r--sw/source/uibase/shells/navsh.cxx7
-rw-r--r--sw/source/uibase/shells/olesh.cxx7
-rw-r--r--sw/source/uibase/shells/slotadd.cxx10
-rw-r--r--sw/source/uibase/shells/tabsh.cxx10
-rw-r--r--sw/source/uibase/shells/textdrw.cxx2
-rw-r--r--sw/source/uibase/shells/textfld.cxx24
-rw-r--r--sw/source/uibase/shells/textidx.cxx6
-rw-r--r--sw/source/uibase/shells/textsh.cxx34
-rw-r--r--sw/source/uibase/shells/textsh1.cxx29
-rw-r--r--sw/source/uibase/shells/textsh2.cxx13
-rw-r--r--sw/source/uibase/shells/txtattr.cxx6
-rw-r--r--sw/source/uibase/shells/txtcrsr.cxx5
-rw-r--r--sw/source/uibase/shells/txtnum.cxx4
28 files changed, 11 insertions, 372 deletions
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index e6478adf3292..c62232e2aee1 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -27,12 +27,10 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/linguistic2/XThesaurus.hpp>
-#include <i18nlangtag/mslangid.hxx>
#include <i18nutil/transliteration.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/bindings.hxx>
-#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/flstitem.hxx>
@@ -51,47 +49,30 @@
#include <editeng/hyphenzoneitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/fontitem.hxx>
-#include <editeng/fhgtitem.hxx>
#include <svx/clipfmtitem.hxx>
#include <svl/stritem.hxx>
#include <svl/slstitm.hxx>
#include <editeng/colritem.hxx>
-#include <editeng/wghtitem.hxx>
#include <editeng/contouritem.hxx>
-#include <editeng/postitem.hxx>
#include <editeng/frmdiritem.hxx>
-#include <svx/postattr.hxx>
-#include <svx/svdoutl.hxx>
#include <svl/whiter.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/ctloptions.hxx>
#include <unotools/useroptions.hxx>
#include <editeng/flditem.hxx>
-#include <editeng/editstat.hxx>
#include <svx/hlnkitem.hxx>
#include <sfx2/htmlmode.hxx>
#include <editeng/langitem.hxx>
-#include <editeng/unolingu.hxx>
#include <editeng/scripttypeitem.hxx>
-#include <editeng/writingmodeitem.hxx>
#include <swundo.hxx>
#include <doc.hxx>
#include <viewopt.hxx>
#include <wrtsh.hxx>
-#include <uitool.hxx>
#include <chrdlgmodes.hxx>
-#include <pardlg.hxx>
-#include <swdtflvr.hxx>
-#include <drwtxtsh.hxx>
-#include <swmodule.hxx>
-#include <initui.hxx>
#include <edtwin.hxx>
-#include <swwait.hxx>
-#include <docstat.hxx>
#include <SwRewriter.hxx>
#include <cmdid.h>
-#include <globals.hrc>
#include <strings.hrc>
#include <breakit.hxx>
#include <annotsh.hxx>
@@ -102,22 +83,16 @@
#include <swtypes.hxx>
#include <svx/svxdlg.hxx>
-#include <svx/dialogs.hrc>
-#include <svx/svxids.hrc>
#include <vcl/EnumContext.hxx>
#include <svl/itempool.hxx>
#include <editeng/outliner.hxx>
-#include <editeng/editeng.hxx>
#include <editeng/editview.hxx>
#include <svl/languageoptions.hxx>
-#include <svtools/langtab.hxx>
-#include <docsh.hxx>
#include <svl/undo.hxx>
#include <swabstdlg.hxx>
-#include <app.hrc>
#include <comphelper/string.hxx>
#include <comphelper/propertysequence.hxx>
@@ -125,7 +100,6 @@
#include <langhelper.hxx>
-#include <tools/diagnose_ex.h>
#include <memory>
using namespace ::com::sun::star;
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index e5dbc9f9eb3a..252d432e8558 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -22,21 +22,15 @@
#include <sal/config.h>
#include <hintids.hxx>
-#include <svl/urihelper.hxx>
#include <svl/languageoptions.hxx>
-#include <svx/svxids.hrc>
#include <sfx2/linkmgr.hxx>
#include <sfx2/htmlmode.hxx>
#include <svx/imapdlg.hxx>
#include <sfx2/dispatch.hxx>
-#include <sfx2/docfile.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/request.hxx>
#include <svl/whiter.hxx>
#include <svl/visitem.hxx>
-#include <sfx2/objitem.hxx>
-#include <vcl/graphicfilter.hxx>
-#include <svx/gallery.hxx>
#include <editeng/langitem.hxx>
#include <svx/clipfmtitem.hxx>
#include <svx/contdlg.hxx>
@@ -44,21 +38,16 @@
#include <vcl/inputctx.hxx>
#include <svl/slstitm.hxx>
#include <svl/ptitem.hxx>
-#include <svl/itemiter.hxx>
#include <svl/stritem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/boxitem.hxx>
-#include <svl/srchitem.hxx>
-#include <editeng/ulspitem.hxx>
-#include <editeng/lrspitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/opaqitem.hxx>
#include <editeng/sizeitem.hxx>
#include <svx/flagsdef.hxx>
-#include <svx/xflclit.hxx>
#include <editeng/scripttypeitem.hxx>
#include <sfx2/objface.hxx>
#include <fmturl.hxx>
@@ -74,9 +63,6 @@
#include <basesh.hxx>
#include <viewopt.hxx>
#include <fontcfg.hxx>
-#include <docstat.hxx>
-#include <usrfld.hxx>
-#include <expfld.hxx>
#include <fmtsrnd.hxx>
#include <fldmgr.hxx>
#include <frmmgr.hxx>
@@ -84,27 +70,20 @@
#include <mdiexp.hxx>
#include <swdtflvr.hxx>
#include <pagedesc.hxx>
-#include <convert.hxx>
#include <fmtcol.hxx>
#include <edtwin.hxx>
#include <tblafmt.hxx>
-#include <caption.hxx>
#include <swwait.hxx>
#include <cmdid.h>
-#include <globals.hrc>
#include <strings.hrc>
-#include <globals.h>
#include <unotxdoc.hxx>
-#include <fmtinfmt.hxx>
#include <doc.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentUndoRedo.hxx>
#include <swabstdlg.hxx>
#include <modcfg.hxx>
-#include <instable.hxx>
#include <svx/fmshell.hxx>
#include <SwRewriter.hxx>
-#include <unomid.h>
#include <svx/galleryitem.hxx>
#include <com/sun/star/gallery/GalleryItemType.hpp>
#include <memory>
@@ -115,8 +94,6 @@
#include <svx/svxdlg.hxx>
-#include <SwStyleNameMapper.hxx>
-#include <poolfmt.hxx>
#include <shellres.hxx>
#include <UndoTable.hxx>
diff --git a/sw/source/uibase/shells/beziersh.cxx b/sw/source/uibase/shells/beziersh.cxx
index 35e2afcec1ac..4764decede3b 100644
--- a/sw/source/uibase/shells/beziersh.cxx
+++ b/sw/source/uibase/shells/beziersh.cxx
@@ -19,11 +19,9 @@
#include <cmdid.h>
#include <svx/svdview.hxx>
-#include <svl/srchitem.hxx>
#include <svl/eitem.hxx>
#include <svl/whiter.hxx>
#include <svx/svdopath.hxx>
-#include <svx/svxids.hrc>
#include <vcl/EnumContext.hxx>
#include <sfx2/request.hxx>
#include <sfx2/dispatch.hxx>
@@ -33,15 +31,12 @@
#include <wrtsh.hxx>
#include <view.hxx>
#include <edtwin.hxx>
-#include <globals.hrc>
#include <drawbase.hxx>
#include <beziersh.hxx>
#define ShellClass_SwBezierShell
#include <sfx2/msg.hxx>
#include <swslots.hxx>
-#include <unomid.h>
-
SFX_IMPL_INTERFACE(SwBezierShell, SwBaseShell)
void SwBezierShell::InitInterface_Impl()
diff --git a/sw/source/uibase/shells/drawdlg.cxx b/sw/source/uibase/shells/drawdlg.cxx
index 0437340ebf98..78c49e0e5488 100644
--- a/sw/source/uibase/shells/drawdlg.cxx
+++ b/sw/source/uibase/shells/drawdlg.cxx
@@ -17,17 +17,13 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <svx/svxids.hrc>
#include <sfx2/request.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewfrm.hxx>
#include <svx/svdview.hxx>
-#include <svx/drawitem.hxx>
-#include <svx/xtable.hxx>
#include <view.hxx>
#include <wrtsh.hxx>
-#include <docsh.hxx>
#include <cmdid.h>
#include <drawsh.hxx>
@@ -39,12 +35,7 @@
#include <svx/xflclit.hxx>
#include <svx/chrtitem.hxx>
#include <svx/xlnwtit.hxx>
-#include <svx/xfillit0.hxx>
#include <svx/xflgrit.hxx>
-#include <comphelper/lok.hxx>
-#include <LibreOfficeKit/LibreOfficeKitEnums.h>
-
-#include <com/sun/star/drawing/FillStyle.hpp>
using namespace com::sun::star::drawing;
diff --git a/sw/source/uibase/shells/drawsh.cxx b/sw/source/uibase/shells/drawsh.cxx
index d1b72f12ca82..958a38b2a39a 100644
--- a/sw/source/uibase/shells/drawsh.cxx
+++ b/sw/source/uibase/shells/drawsh.cxx
@@ -26,8 +26,6 @@
#include <sfx2/bindings.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/viewfrm.hxx>
-#include <svl/itemiter.hxx>
-#include <svl/srchitem.hxx>
#include <svx/extrusionbar.hxx>
#include <svx/fontworkbar.hxx>
#include <uitool.hxx>
@@ -35,16 +33,11 @@
#include <textboxhelper.hxx>
#include <wview.hxx>
#include <swmodule.hxx>
-#include <swwait.hxx>
#include <doc.hxx>
#include <docsh.hxx>
-#include <docstat.hxx>
-#include <IDocumentStatistics.hxx>
-#include <tools/diagnose_ex.h>
#include <svx/svdoashp.hxx>
#include <svx/xfillit0.hxx>
-#include <svx/xtable.hxx>
#include <vcl/EnumContext.hxx>
#include <svx/svdoole2.hxx>
#include <sfx2/opengrf.hxx>
@@ -52,12 +45,10 @@
#include <svx/svdundo.hxx>
#include <svx/xbtmpit.hxx>
#include <svx/sdasitm.hxx>
-#include <svx/svxids.hrc>
#include <swundo.hxx>
#include <wrtsh.hxx>
#include <cmdid.h>
-#include <globals.hrc>
#include <strings.hrc>
#include <drwbassh.hxx>
#include <drawsh.hxx>
@@ -65,7 +56,6 @@
#define ShellClass_SwDrawShell
#include <sfx2/msg.hxx>
#include <swslots.hxx>
-#include <swabstdlg.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
diff --git a/sw/source/uibase/shells/drformsh.cxx b/sw/source/uibase/shells/drformsh.cxx
index d34a3d667dfd..2e2f5fd5210b 100644
--- a/sw/source/uibase/shells/drformsh.cxx
+++ b/sw/source/uibase/shells/drformsh.cxx
@@ -17,18 +17,14 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <hintids.hxx>
#include <svx/hlnkitem.hxx>
#include <svx/svdview.hxx>
#include <svl/whiter.hxx>
#include <sfx2/request.hxx>
#include <sfx2/objface.hxx>
-#include <sfx2/app.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/dispatch.hxx>
#include <vcl/EnumContext.hxx>
-#include <svl/srchitem.hxx>
-#include <svx/fmglob.hxx>
#include <svx/svdouno.hxx>
#include <com/sun/star/form/FormButtonType.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -37,10 +33,8 @@
#include <tools/urlobj.hxx>
#include <viewopt.hxx>
-#include <swmodule.hxx>
#include <wrtsh.hxx>
#include <cmdid.h>
-#include <globals.hrc>
#include <drwbassh.hxx>
#include <drformsh.hxx>
#include <svl/urihelper.hxx>
@@ -52,8 +46,6 @@
#include <sfx2/msg.hxx>
#include <swslots.hxx>
-#include <unomid.h>
-
using namespace ::com::sun::star;
SFX_IMPL_INTERFACE(SwDrawFormShell, SwDrawBaseShell)
diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx
index 12d87bab691b..cb44b8955e31 100644
--- a/sw/source/uibase/shells/drwbassh.cxx
+++ b/sw/source/uibase/shells/drwbassh.cxx
@@ -23,13 +23,10 @@
#include <sfx2/request.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
-#include <svl/aeitem.hxx>
#include <svx/svdview.hxx>
-#include <svl/srchitem.hxx>
#include <svl/whiter.hxx>
#include <svx/swframevalidation.hxx>
#include <svx/anchorid.hxx>
-#include <sfx2/htmlmode.hxx>
#include <drawdoc.hxx>
#include <uitool.hxx>
#include <fmtornt.hxx>
@@ -41,26 +38,20 @@
#include <viewopt.hxx>
#include <dcontact.hxx>
#include <frmfmt.hxx>
-#include <wrap.hxx>
#include <drawbase.hxx>
#include <drwbassh.hxx>
#include <swdtflvr.hxx>
-#include <svx/svdogrp.hxx>
-#include <svx/svdpage.hxx>
#include <svx/svditer.hxx>
#define ShellClass_SwDrawBaseShell
#include <sfx2/msg.hxx>
-#include <svx/svxids.hrc>
#include <swslots.hxx>
#include <svx/svxdlg.hxx>
-#include <svx/dialogs.hrc>
#include <swabstdlg.hxx>
#include <swundo.hxx>
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/RelOrientation.hpp>
#include <IDocumentDrawModelAccess.hxx>
-#include <memory>
#include <fmtfollowtextflow.hxx>
using namespace ::com::sun::star;
diff --git a/sw/source/uibase/shells/drwtxtex.cxx b/sw/source/uibase/shells/drwtxtex.cxx
index c63f96eb563c..120c6a162004 100644
--- a/sw/source/uibase/shells/drwtxtex.cxx
+++ b/sw/source/uibase/shells/drwtxtex.cxx
@@ -21,7 +21,6 @@
#include <com/sun/star/linguistic2/XThesaurus.hpp>
#include <comphelper/string.hxx>
-#include <i18nlangtag/mslangid.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
@@ -40,12 +39,9 @@
#include <editeng/crossedoutitem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/udlnitem.hxx>
-#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/colritem.hxx>
-#include <editeng/wghtitem.hxx>
#include <editeng/contouritem.hxx>
-#include <editeng/postitem.hxx>
#include <editeng/frmdiritem.hxx>
#include <editeng/urlfieldhelper.hxx>
#include <svx/svdoutl.hxx>
@@ -54,50 +50,35 @@
#include <svl/whiter.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/ctloptions.hxx>
-#include <svtools/langtab.hxx>
#include <svl/languageoptions.hxx>
#include <editeng/flditem.hxx>
#include <editeng/editstat.hxx>
#include <svx/clipfmtitem.hxx>
#include <svx/hlnkitem.hxx>
#include <svx/svxdlg.hxx>
-#include <svx/svxids.hrc>
#include <sfx2/htmlmode.hxx>
-#include <svl/slstitm.hxx>
#include <editeng/langitem.hxx>
-#include <editeng/unolingu.hxx>
#include <editeng/scripttypeitem.hxx>
#include <editeng/writingmodeitem.hxx>
#include <editeng/eeitem.hxx>
-#include <editeng/editeng.hxx>
#include <editeng/editdata.hxx>
#include <editeng/outliner.hxx>
#include <editeng/editview.hxx>
-#include <vcl/outdev.hxx>
#include <vcl/unohelp2.hxx>
#include <editeng/hyphenzoneitem.hxx>
-#include <tools/diagnose_ex.h>
#include <cmdid.h>
#include <doc.hxx>
-#include <docstat.hxx>
#include <drwtxtsh.hxx>
#include <edtwin.hxx>
-#include <globals.hrc>
#include <hintids.hxx>
-#include <initui.hxx>
#include <langhelper.hxx>
#include <chrdlgmodes.hxx>
-#include <pardlg.hxx>
-#include <string.h>
-#include <swdtflvr.hxx>
#include <swmodule.hxx>
-#include <swwait.hxx>
#include <uitool.hxx>
#include <viewopt.hxx>
#include <wrtsh.hxx>
#include <wview.hxx>
-#include <svx/chrtitem.hxx>
#include <swabstdlg.hxx>
#include <memory>
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx
index 674ed73378bf..23e4728f6a5a 100644
--- a/sw/source/uibase/shells/drwtxtsh.cxx
+++ b/sw/source/uibase/shells/drwtxtsh.cxx
@@ -22,15 +22,12 @@
#include <i18nutil/transliteration.hxx>
#include <svl/slstitm.hxx>
#include <svl/stritem.hxx>
-#include <svl/cjkoptions.hxx>
#include <editeng/fontitem.hxx>
-#include <editeng/langitem.hxx>
#include <svx/svdview.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/objface.hxx>
#include <svx/svdotext.hxx>
#include <svx/sdooitm.hxx>
-#include <svx/svxids.hrc>
#include <editeng/editeng.hxx>
#include <editeng/editview.hxx>
#include <editeng/eeitem.hxx>
@@ -54,13 +51,10 @@
#include <view.hxx>
#include <wrtsh.hxx>
#include <viewopt.hxx>
-#include <initui.hxx>
#include <drwtxtsh.hxx>
-#include <swundo.hxx>
#include <breakit.hxx>
#include <cmdid.h>
-#include <globals.hrc>
#define ShellClass_SwDrawTextShell
#include <sfx2/msg.hxx>
@@ -68,13 +62,9 @@
#include <uitool.hxx>
#include <wview.hxx>
#include <swmodule.hxx>
-#include <svx/dialogs.hrc>
#include <svx/svdoashp.hxx>
#include <svx/svxdlg.hxx>
-#include <svx/xtable.hxx>
-#include <cppuhelper/bootstrap.hxx>
#include <comphelper/processfactory.hxx>
-#include <swabstdlg.hxx>
#include <IDocumentUndoRedo.hxx>
#include <memory>
diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx
index 324dcdec9ea8..7a5a63011b01 100644
--- a/sw/source/uibase/shells/frmsh.cxx
+++ b/sw/source/uibase/shells/frmsh.cxx
@@ -21,13 +21,8 @@
#include <hintids.hxx>
#include <svl/whiter.hxx>
-#include <vcl/imapobj.hxx>
-#include <svtools/miscopt.hxx>
-#include <svl/srchitem.hxx>
-#include <vcl/imap.hxx>
#include <sfx2/viewfrm.hxx>
#include <basic/sbstar.hxx>
-#include <svl/rectitem.hxx>
#include <svl/ptitem.hxx>
#include <svl/stritem.hxx>
#include <svl/intitem.hxx>
@@ -35,7 +30,6 @@
#include <editeng/colritem.hxx>
#include <editeng/lineitem.hxx>
#include <editeng/boxitem.hxx>
-#include <editeng/protitem.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
#include <sfx2/objface.hxx>
@@ -55,29 +49,19 @@
#include <swmodule.hxx>
#include <wrtsh.hxx>
#include <wview.hxx>
-#include <frmatr.hxx>
#include <uitool.hxx>
#include <frmfmt.hxx>
#include <frmsh.hxx>
#include <frmmgr.hxx>
-#include <frmdlg.hxx>
-#include <swevent.hxx>
-#include <usrpref.hxx>
#include <edtwin.hxx>
#include <swdtflvr.hxx>
-#include <swwait.hxx>
-#include <docstat.hxx>
-#include <IDocumentStatistics.hxx>
+#include <viewopt.hxx>
#include <cmdid.h>
-#include <cfgitems.hxx>
-#include <globals.hrc>
#include <strings.hrc>
#include <swabstdlg.hxx>
-#include <svx/dialogs.hrc>
#include <svx/svxdlg.hxx>
-#include <svx/svxids.hrc>
#include <docsh.hxx>
#include <svx/drawitem.hxx>
diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx
index 0b417f441e76..1d91400926a3 100644
--- a/sw/source/uibase/shells/grfsh.cxx
+++ b/sw/source/uibase/shells/grfsh.cxx
@@ -23,51 +23,36 @@
#include <svl/stritem.hxx>
#include <svl/whiter.hxx>
#include <svl/urihelper.hxx>
+#include <sfx2/bindings.hxx>
#include <sfx2/docfile.hxx>
-#include <sfx2/dispatch.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/viewfrm.hxx>
#include <editeng/sizeitem.hxx>
-#include <editeng/protitem.hxx>
#include <sfx2/request.hxx>
#include <vcl/EnumContext.hxx>
-#include <svl/srchitem.hxx>
#include <sfx2/htmlmode.hxx>
-#include <svx/sdgluitm.hxx>
-#include <svx/sdgcoitm.hxx>
-#include <svx/sdggaitm.hxx>
-#include <svx/sdgtritm.hxx>
-#include <svx/sdginitm.hxx>
-#include <svx/sdgmoitm.hxx>
#include <svx/svdview.hxx>
#include <editeng/brushitem.hxx>
#include <svx/grfflt.hxx>
#include <svx/compressgraphicdialog.hxx>
-#include <vcl/GraphicNativeTransform.hxx>
#include <svx/tbxcolor.hxx>
#include <drawdoc.hxx>
-#include <fmturl.hxx>
#include <view.hxx>
#include <wrtsh.hxx>
#include <viewopt.hxx>
#include <swmodule.hxx>
-#include <frmatr.hxx>
#include <swundo.hxx>
#include <uitool.hxx>
#include <docsh.hxx>
#include <grfsh.hxx>
#include <frmmgr.hxx>
-#include <frmdlg.hxx>
#include <frmfmt.hxx>
#include <grfatr.hxx>
-#include <usrpref.hxx>
-#include <edtwin.hxx>
#include <swwait.hxx>
#include <svx/extedit.hxx>
#include <svx/graphichelper.hxx>
#include <doc.hxx>
#include <IDocumentDrawModelAccess.hxx>
-#include <svx/svxids.hrc>
#include <svx/drawitem.hxx>
#define ShellClass_SwGrfShell
@@ -77,9 +62,6 @@
#include <unocrsr.hxx>
#include <memory>
-#include <comphelper/lok.hxx>
-#include <LibreOfficeKit/LibreOfficeKitEnums.h>
-
#define TOOLBOX_NAME "colorbar"
class SwGrfShell::SwExternalToolEdit
diff --git a/sw/source/uibase/shells/grfshex.cxx b/sw/source/uibase/shells/grfshex.cxx
index 95237f233af4..5cd0e1cc58a0 100644
--- a/sw/source/uibase/shells/grfshex.cxx
+++ b/sw/source/uibase/shells/grfshex.cxx
@@ -17,38 +17,20 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <docary.hxx>
-#include <grfsh.hxx>
#include <wrtsh.hxx>
#include <view.hxx>
#include <textsh.hxx>
-#include <viewopt.hxx>
-#include <swundo.hxx>
-#include <caption.hxx>
-#include <vcl/graphicfilter.hxx>
-#include <sfx2/htmlmode.hxx>
#include <drawdoc.hxx>
#include <doc.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <docsh.hxx>
-#include <frmfmt.hxx>
-#include <frmmgr.hxx>
-#include <vcl/weld.hxx>
#include <svx/svdomedia.hxx>
-#include <svx/svdview.hxx>
-#include <svx/svdpagv.hxx>
-#include <SwStyleNameMapper.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/stritem.hxx>
#include <avmedia/mediawindow.hxx>
-#include <vcl/svapp.hxx>
-
-// -> #111827#
-#include <SwRewriter.hxx>
-// <- #111827#
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
diff --git a/sw/source/uibase/shells/langhelper.cxx b/sw/source/uibase/shells/langhelper.cxx
index 32a6cb1a5793..90904b37dcdc 100644
--- a/sw/source/uibase/shells/langhelper.cxx
+++ b/sw/source/uibase/shells/langhelper.cxx
@@ -27,15 +27,14 @@
#include <charfmt.hxx>
#include <sfx2/bindings.hxx>
-#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
+#include <sfx2/sfxdlg.hxx>
#include <sfx2/viewfrm.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/editeng.hxx>
#include <editeng/editdata.hxx>
#include <editeng/outliner.hxx>
#include <editeng/editview.hxx>
-#include <editeng/scripttypeitem.hxx>
#include <editeng/langitem.hxx>
#include <svl/languageoptions.hxx>
@@ -49,8 +48,6 @@
#include <view.hxx>
#include <viewopt.hxx>
-#include <swabstdlg.hxx>
-
#include <langhelper.hxx>
#include <memory>
diff --git a/sw/source/uibase/shells/listsh.cxx b/sw/source/uibase/shells/listsh.cxx
index 723a231ce0fd..1beb2bf489a9 100644
--- a/sw/source/uibase/shells/listsh.cxx
+++ b/sw/source/uibase/shells/listsh.cxx
@@ -18,32 +18,17 @@
*/
#include <cmdid.h>
-#include <hintids.hxx>
-#include <editeng/sizeitem.hxx>
-#include <editeng/brushitem.hxx>
-#include <sfx2/app.hxx>
#include <sfx2/request.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
-#include <svl/stritem.hxx>
#include <svl/eitem.hxx>
#include <svl/whiter.hxx>
-#include <svl/intitem.hxx>
-#include <svl/srchitem.hxx>
-#include <svx/svxids.hrc>
#include <numrule.hxx>
-#include <fmtornt.hxx>
#include <wrtsh.hxx>
-#include <swmodule.hxx>
-#include <frmatr.hxx>
-#include <globals.hrc>
-#include <uinums.hxx>
#include <listsh.hxx>
-#include <poolfmt.hxx>
#include <view.hxx>
-#include <edtwin.hxx>
#define ShellClass_SwListShell
#include <sfx2/msg.hxx>
diff --git a/sw/source/uibase/shells/mediash.cxx b/sw/source/uibase/shells/mediash.cxx
index 44ee00225128..932b2feb6529 100644
--- a/sw/source/uibase/shells/mediash.cxx
+++ b/sw/source/uibase/shells/mediash.cxx
@@ -18,42 +18,12 @@
*/
#include <cmdid.h>
-#include <hintids.hxx>
-#include <svl/stritem.hxx>
#include <svl/whiter.hxx>
-#include <svl/urihelper.hxx>
-#include <sfx2/dispatch.hxx>
-#include <editeng/sizeitem.hxx>
-#include <editeng/protitem.hxx>
#include <sfx2/request.hxx>
-#include <svl/srchitem.hxx>
-#include <sfx2/htmlmode.hxx>
-#include <svx/sdgluitm.hxx>
-#include <svx/sdgcoitm.hxx>
-#include <svx/sdggaitm.hxx>
-#include <svx/sdgtritm.hxx>
-#include <svx/sdginitm.hxx>
-#include <svx/sdgmoitm.hxx>
#include <svx/svdview.hxx>
-#include <editeng/brushitem.hxx>
-#include <svx/grfflt.hxx>
-#include <fmturl.hxx>
#include <view.hxx>
#include <wrtsh.hxx>
-#include <viewopt.hxx>
-#include <swmodule.hxx>
-#include <frmatr.hxx>
-#include <swundo.hxx>
-#include <uitool.hxx>
-#include <docsh.hxx>
#include <mediash.hxx>
-#include <frmmgr.hxx>
-#include <frmdlg.hxx>
-#include <frmfmt.hxx>
-#include <grfatr.hxx>
-#include <usrpref.hxx>
-#include <edtwin.hxx>
-#include <swwait.hxx>
#include <sfx2/objface.hxx>
#include <vcl/EnumContext.hxx>
@@ -64,7 +34,6 @@
#define ShellClass_SwMediaShell
#include <sfx2/msg.hxx>
#include <swslots.hxx>
-#include <swabstdlg.hxx>
#include <memory>
SFX_IMPL_INTERFACE(SwMediaShell, SwBaseShell)
diff --git a/sw/source/uibase/shells/navsh.cxx b/sw/source/uibase/shells/navsh.cxx
index cb3c7370722d..b5b9021cc1ac 100644
--- a/sw/source/uibase/shells/navsh.cxx
+++ b/sw/source/uibase/shells/navsh.cxx
@@ -9,21 +9,14 @@
#include <cmdid.h>
#include <svx/svdview.hxx>
-#include <svl/srchitem.hxx>
-#include <svl/eitem.hxx>
#include <svl/whiter.hxx>
-#include <svx/svdopath.hxx>
#include <sfx2/request.hxx>
-#include <sfx2/dispatch.hxx>
#include <sfx2/objface.hxx>
#include <wrtsh.hxx>
#include <view.hxx>
-#include <edtwin.hxx>
-#include <globals.hrc>
#include <navsh.hxx>
#define ShellClass_SwNavigationShell
#include <swslots.hxx>
-#include <unomid.h>
#include <navmgr.hxx>
SFX_IMPL_INTERFACE(SwNavigationShell, SwBaseShell)
diff --git a/sw/source/uibase/shells/olesh.cxx b/sw/source/uibase/shells/olesh.cxx
index c688072f9094..b8207d200c94 100644
--- a/sw/source/uibase/shells/olesh.cxx
+++ b/sw/source/uibase/shells/olesh.cxx
@@ -17,19 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <sfx2/app.hxx>
-#include <sfx2/request.hxx>
#include <sfx2/objface.hxx>
-#include <sfx2/objitem.hxx>
#include <vcl/EnumContext.hxx>
-#include <wrtsh.hxx>
#include <view.hxx>
-#include <globals.hrc>
#include <frmsh.hxx>
#include <olesh.hxx>
-#include <cmdid.h>
-
#define ShellClass_SwOleShell
#include <sfx2/msg.hxx>
#include <swslots.hxx>
diff --git a/sw/source/uibase/shells/slotadd.cxx b/sw/source/uibase/shells/slotadd.cxx
index 9f29aa6a8e58..a4f4fe72e9b7 100644
--- a/sw/source/uibase/shells/slotadd.cxx
+++ b/sw/source/uibase/shells/slotadd.cxx
@@ -19,8 +19,6 @@
#include <config_options.h>
-#include <hintids.hxx>
-#include <uiitems.hxx>
#include <cmdid.h>
#include <unomid.h>
#include <svx/unomid.hxx>
@@ -28,7 +26,6 @@
#include <svl/globalnameitem.hxx>
#include <editeng/memberids.h>
#include <svl/imageitm.hxx>
-#include <svl/aeitem.hxx>
#include <svl/rectitem.hxx>
#include <sfx2/objitem.hxx>
#include <sfx2/objsh.hxx>
@@ -79,7 +76,6 @@
#include <editeng/boxitem.hxx>
#include <editeng/sizeitem.hxx>
#include <editeng/lrspitem.hxx>
-#include <svx/xgrad.hxx>
#include <svx/xlnstit.hxx>
#include <svx/xlnedit.hxx>
#include <svx/xfillit0.hxx>
@@ -102,15 +98,10 @@
#include <svx/xftshxy.hxx>
#include <svx/grafctrl.hxx>
-#include <fmtornt.hxx>
#include <paratr.hxx>
#include <fmtinfmt.hxx>
-#include <fmtfsize.hxx>
#include <fmtsrnd.hxx>
#include <envimg.hxx>
-#include <frmatr.hxx>
-#include <cfgitems.hxx>
-#include <grfatr.hxx>
#include <fmtline.hxx>
#include <svx/clipfmtitem.hxx>
#include <editeng/blinkitem.hxx>
@@ -130,7 +121,6 @@
#include <svx/xflftrit.hxx>
#include <svx/xlncapit.hxx>
#include <svx/xlinjoit.hxx>
-#include <svx/AffineMatrixItem.hxx>
#include <svx/galleryitem.hxx>
#define SFX_TYPEMAP
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index 2c292bd9b72e..9ee2f5784703 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -22,15 +22,12 @@
#include <svl/stritem.hxx>
#include <svl/whiter.hxx>
#include <unotools/moduleoptions.hxx>
-#include <svx/rulritem.hxx>
-#include <svl/srchitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/spltitem.hxx>
-#include <editeng/langitem.hxx>
#include <editeng/keepitem.hxx>
#include <editeng/lineitem.hxx>
#include <editeng/colritem.hxx>
@@ -38,8 +35,6 @@
#include <svx/numinf.hxx>
#include <svx/svddef.hxx>
#include <svx/svxdlg.hxx>
-#include <svx/svxids.hrc>
-#include <svl/zformat.hxx>
#include <sfx2/bindings.hxx>
#include <vcl/weld.hxx>
#include <sfx2/request.hxx>
@@ -53,7 +48,6 @@
#include <editeng/itemtype.hxx>
#include <fmtornt.hxx>
-#include <fmtclds.hxx>
#include <fmtlsplt.hxx>
#include <fmtrowsplt.hxx>
#include <fmtfsize.hxx>
@@ -64,7 +58,6 @@
#include <uitool.hxx>
#include <inputwin.hxx>
#include <uiitems.hxx>
-#include <usrpref.hxx>
#include <tabsh.hxx>
#include <swtablerep.hxx>
#include <tablemgr.hxx>
@@ -74,11 +67,10 @@
#include <swtable.hxx>
#include <docsh.hxx>
#include <tblsel.hxx>
+#include <viewopt.hxx>
-#include <app.hrc>
#include <strings.hrc>
#include <cmdid.h>
-#include <globals.hrc>
#include <unobaseclass.hxx>
#define ShellClass_SwTableShell
diff --git a/sw/source/uibase/shells/textdrw.cxx b/sw/source/uibase/shells/textdrw.cxx
index c495e9b1b7aa..0303576e2fd6 100644
--- a/sw/source/uibase/shells/textdrw.cxx
+++ b/sw/source/uibase/shells/textdrw.cxx
@@ -37,8 +37,6 @@
#include <svl/urihelper.hxx>
#include <avmedia/mediawindow.hxx>
-#include <unomid.h>
-
using namespace ::com::sun::star;
void SwBaseShell::InsertURLButton(const OUString& rURL, const OUString& rTarget, const OUString& rText)
diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx
index c65d5d65da6a..a025187c8d75 100644
--- a/sw/source/uibase/shells/textfld.cxx
+++ b/sw/source/uibase/shells/textfld.cxx
@@ -19,18 +19,14 @@
#include <AnnotationWin.hxx>
#include <comphelper/lok.hxx>
-#include <chrdlgmodes.hxx>
#include <hintids.hxx>
#include <IDocumentFieldsAccess.hxx>
-#include <editeng/eeitem.hxx>
-#include <editeng/kernitem.hxx>
-#include <editeng/outliner.hxx>
+#include <sfx2/bindings.hxx>
#include <sfx2/lnkbase.hxx>
#include <fmtfld.hxx>
#include <txtfld.hxx>
#include <svl/itempool.hxx>
#include <tools/lineend.hxx>
-#include <unotools/useroptions.hxx>
#include <svl/whiter.hxx>
#include <svl/eitem.hxx>
#include <svl/macitem.hxx>
@@ -39,45 +35,27 @@
#include <svx/postattr.hxx>
#include <svx/hlnkitem.hxx>
#include <svx/svxdlg.hxx>
-#include <svx/svxids.hrc>
-#include <sfx2/linkmgr.hxx>
-#include <unotools/localedatawrapper.hxx>
-#include <sfx2/dispatch.hxx>
#include <fmtinfmt.hxx>
#include <fldwrap.hxx>
#include <redline.hxx>
#include <view.hxx>
#include <viewopt.hxx>
#include <wrtsh.hxx>
-#include <basesh.hxx>
-#include <flddat.hxx>
-#include <numrule.hxx>
#include <textsh.hxx>
-#include <docsh.hxx>
#include <docufld.hxx>
-#include <usrfld.hxx>
#include <ddefld.hxx>
-#include <expfld.hxx>
#include <fldmgr.hxx>
#include <uitool.hxx>
#include <cmdid.h>
#include <strings.hrc>
-#include <sfx2/app.hxx>
-#include <svx/dialogs.hrc>
#include <sfx2/event.hxx>
#include <swabstdlg.hxx>
#include <doc.hxx>
-#include <app.hrc>
-#include <edtwin.hxx>
#include <PostItMgr.hxx>
-#include <cstddef>
-#include <memory>
#include <swmodule.hxx>
-#include <MarkManager.hxx>
#include <xmloff/odffields.hxx>
#include <IDocumentContentOperations.hxx>
#include <IDocumentUndoRedo.hxx>
-#include <svx/numfmtsh.hxx>
#include <svl/zforlist.hxx>
#include <svl/zformat.hxx>
#include <IMark.hxx>
diff --git a/sw/source/uibase/shells/textidx.cxx b/sw/source/uibase/shells/textidx.cxx
index 53b5fa1969f2..8247dbdbfbb9 100644
--- a/sw/source/uibase/shells/textidx.cxx
+++ b/sw/source/uibase/shells/textidx.cxx
@@ -20,9 +20,7 @@
#include <hintids.hxx>
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
-#include <svl/stritem.hxx>
#include <svl/eitem.hxx>
-#include <svx/svxids.hrc>
#include <editeng/sizeitem.hxx>
#include <fmtfsize.hxx>
#include <fldbas.hxx>
@@ -31,14 +29,10 @@
#include <cmdid.h>
#include <view.hxx>
#include <wrtsh.hxx>
-#include <swundo.hxx>
#include <textsh.hxx>
#include <idxmrk.hxx>
-#include <cnttab.hxx>
#include <toxmgr.hxx>
#include <swabstdlg.hxx>
-#include <globals.hrc>
-#include <memory>
void SwTextShell::ExecIdx(SfxRequest const &rReq)
{
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index 35e589e3b961..ef1341d078bc 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -22,35 +22,24 @@
#include <hintids.hxx>
#include <comphelper/string.hxx>
#include <svl/globalnameitem.hxx>
-#include <svl/ownlist.hxx>
+#include <sfx2/bindings.hxx>
#include <sfx2/frmdescr.hxx>
#include <sfx2/objface.hxx>
-#include <sfx2/lnkbase.hxx>
#include <sfx2/viewfrm.hxx>
-#include <vcl/errinf.hxx>
-#include <svx/svdview.hxx>
-#include <svx/svxids.hrc>
+#include <i18nutil/transliteration.hxx>
+#include <svl/eitem.hxx>
#include <svl/ptitem.hxx>
#include <svl/stritem.hxx>
#include <unotools/moduleoptions.hxx>
-#include <sfx2/fcontnr.hxx>
#include <svx/hlnkitem.hxx>
-#include <svl/srchitem.hxx>
-#include <sfx2/dispatch.hxx>
-#include <sfx2/docfile.hxx>
-#include <svl/urihelper.hxx>
-#include <basic/sbxvar.hxx>
#include <svl/whiter.hxx>
#include <sfx2/request.hxx>
-#include <editeng/opaqitem.hxx>
#include <editeng/fontitem.hxx>
-#include <editeng/adjustitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/sizeitem.hxx>
#include <editeng/svxacorr.hxx>
#include <editeng/scripttypeitem.hxx>
-#include <vcl/graphicfilter.hxx>
#include <sfx2/htmlmode.hxx>
#include <svtools/htmlcfg.hxx>
#include <com/sun/star/embed/Aspects.hpp>
@@ -61,7 +50,6 @@
#include <wdocsh.hxx>
#include <fmtinfmt.hxx>
#include <fmtclds.hxx>
-#include <fmtsrnd.hxx>
#include <fmtfsize.hxx>
#include <swmodule.hxx>
#include <wrtsh.hxx>
@@ -77,36 +65,24 @@
#include <frmfmt.hxx>
#include <tablemgr.hxx>
#include <swundo.hxx>
-#include <shellio.hxx>
-#include <frmdlg.hxx>
-#include <usrpref.hxx>
-#include <swtable.hxx>
-#include <tblafmt.hxx>
-#include <caption.hxx>
-#include <idxmrk.hxx>
-#include <poolfmt.hxx>
#include <breakit.hxx>
-#include <modcfg.hxx>
-#include <column.hxx>
#include <edtwin.hxx>
#include <strings.hrc>
-#include <swerror.h>
#include <unochart.hxx>
-#include <tgrditem.hxx>
#include <chartins.hxx>
+#include <viewopt.hxx>
#define ShellClass_SwTextShell
#include <sfx2/msg.hxx>
#include <vcl/EnumContext.hxx>
#include <swslots.hxx>
#include <SwRewriter.hxx>
+#include <SwCapObjType.hxx>
using namespace ::com::sun::star;
#include <svx/svxdlg.hxx>
-#include <svx/dialogs.hrc>
#include <swabstdlg.hxx>
-#include <unomid.h>
#include <IDocumentDrawModelAccess.hxx>
#include <drawdoc.hxx>
#include <svtools/embedhlp.hxx>
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index a8e329b806b4..104bd7dbf999 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -22,29 +22,21 @@
#include <hintids.hxx>
#include <cmdid.h>
-#include <helpids.h>
#include <comphelper/lok.hxx>
#include <i18nutil/unicode.hxx>
#include <i18nlangtag/languagetag.hxx>
-#include <svl/languageoptions.hxx>
-#include <editeng/langitem.hxx>
#include <svtools/langtab.hxx>
#include <svl/slstitm.hxx>
-#include <svl/grabbagitem.hxx>
-#include <string.h>
#include <svl/stritem.hxx>
#include <sfx2/htmlmode.hxx>
#include <svl/whiter.hxx>
#include <sfx2/bindings.hxx>
-#include <sfx2/dispatch.hxx>
-#include <sfx2/objitem.hxx>
#include <sfx2/viewfrm.hxx>
#include <vcl/unohelp2.hxx>
#include <vcl/weld.hxx>
#include <sfx2/request.hxx>
#include <svl/eitem.hxx>
-#include <svl/macitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/tstpitem.hxx>
@@ -55,39 +47,26 @@
#include <IDocumentDrawModelAccess.hxx>
#include <IDocumentSettingAccess.hxx>
#include <charfmt.hxx>
-#include <editeng/fontitem.hxx>
#include <svx/SmartTagItem.hxx>
#include <fmtinfmt.hxx>
-#include <swwait.hxx>
#include <wrtsh.hxx>
#include <wview.hxx>
#include <swmodule.hxx>
#include <viewopt.hxx>
#include <uitool.hxx>
-#include <swevent.hxx>
-#include <pagedesc.hxx>
#include <textsh.hxx>
#include <IMark.hxx>
#include <swdtflvr.hxx>
-#include <docstat.hxx>
-#include <outline.hxx>
-#include <tablemgr.hxx>
#include <swundo.hxx>
#include <reffld.hxx>
#include <docsh.hxx>
-#include <mdiexp.hxx>
#include <inputwin.hxx>
#include <chrdlgmodes.hxx>
-#include <pardlg.hxx>
-#include <frmatr.hxx>
#include <fmtcol.hxx>
#include <cellatr.hxx>
#include <edtwin.hxx>
-#include <redlndlg.hxx>
#include <fldmgr.hxx>
-#include <globals.hrc>
#include <strings.hrc>
-#include <app.hrc>
#include <paratr.hxx>
#include <vcl/svapp.hxx>
#include <sfx2/app.hxx>
@@ -95,34 +74,26 @@
#include <SwSmartTagMgr.hxx>
#include <editeng/acorrcfg.hxx>
#include <swabstdlg.hxx>
-#include <IDocumentStatistics.hxx>
#include <sfx2/sfxdlg.hxx>
-#include <unotools/lingucfg.hxx>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
-#include <com/sun/star/util/XChangesBatch.hpp>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/linguistic2/ProofreadingResult.hpp>
#include <com/sun/star/linguistic2/XDictionary.hpp>
#include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
#include <editeng/unolingu.hxx>
-#include <unotools/syslocaleoptions.hxx>
#include <doc.hxx>
#include <drawdoc.hxx>
#include <view.hxx>
-#include <ndtxt.hxx>
#include <pam.hxx>
#include <sfx2/objface.hxx>
#include <langhelper.hxx>
#include <uiitems.hxx>
-#include <tools/diagnose_ex.h>
#include <svx/nbdtmgfact.hxx>
#include <svx/nbdtmg.hxx>
#include <SwRewriter.hxx>
-#include <svx/svdmodel.hxx>
#include <svx/drawitem.hxx>
-#include <svx/svxids.hrc>
#include <numrule.hxx>
#include <memory>
#include <xmloff/odffields.hxx>
diff --git a/sw/source/uibase/shells/textsh2.cxx b/sw/source/uibase/shells/textsh2.cxx
index 1dbcf1639fc2..0438d42aa3b1 100644
--- a/sw/source/uibase/shells/textsh2.cxx
+++ b/sw/source/uibase/shells/textsh2.cxx
@@ -17,12 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <cstdarg>
-
-#include <svl/eitem.hxx>
-#include <svl/whiter.hxx>
-#include <sfx2/event.hxx>
-#include <sfx2/dispatch.hxx>
+#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/stritem.hxx>
#include <svl/itemset.hxx>
@@ -43,14 +38,8 @@
#include <wrtsh.hxx>
#include <swtypes.hxx>
#include <cmdid.h>
-#include <swevent.hxx>
#include <textsh.hxx>
#include <swabstdlg.hxx>
-#include <dbui.hrc>
-
-#include <unomid.h>
-
-#include <memory>
using namespace ::svx;
using namespace ::com::sun::star;
diff --git a/sw/source/uibase/shells/txtattr.cxx b/sw/source/uibase/shells/txtattr.cxx
index c7fb5cc28965..839e7f760e47 100644
--- a/sw/source/uibase/shells/txtattr.cxx
+++ b/sw/source/uibase/shells/txtattr.cxx
@@ -21,9 +21,7 @@
#include <svl/whiter.hxx>
#include <svl/stritem.hxx>
-#include <svl/itemiter.hxx>
#include <svl/ctloptions.hxx>
-#include <svx/svxids.hrc>
#include <swmodule.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/request.hxx>
@@ -39,16 +37,13 @@
#include <editeng/frmdiritem.hxx>
#include <editeng/cmapitem.hxx>
#include <paratr.hxx>
-#include <comphelper/lok.hxx>
#include <fmtinfmt.hxx>
-#include <docsh.hxx>
#include <wrtsh.hxx>
#include <view.hxx>
#include <viewopt.hxx>
#include <uitool.hxx>
#include <textsh.hxx>
-#include <num.hxx>
#include <swundo.hxx>
#include <fmtcol.hxx>
@@ -56,7 +51,6 @@
#include <globals.h>
#include <SwStyleNameMapper.hxx>
#include <swabstdlg.hxx>
-#include <outline.hxx>
#include <memory>
const sal_uInt32 nFontInc = 40; // 2pt
diff --git a/sw/source/uibase/shells/txtcrsr.cxx b/sw/source/uibase/shells/txtcrsr.cxx
index 17f8d74c6042..4ca50d6dab4e 100644
--- a/sw/source/uibase/shells/txtcrsr.cxx
+++ b/sw/source/uibase/shells/txtcrsr.cxx
@@ -23,27 +23,22 @@
#include <sfx2/request.hxx>
#include <svl/eitem.hxx>
-#include <basic/sbxvar.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/bindings.hxx>
#include <view.hxx>
#include <wrtsh.hxx>
#include <textsh.hxx>
-#include <num.hxx>
#include <edtwin.hxx>
#include <doc.hxx>
#include <docsh.hxx>
#include <cmdid.h>
-#include <globals.h>
#include <globals.hrc>
#include <svx/svdouno.hxx>
#include <svx/fmshell.hxx>
#include <svx/sdrobjectfilter.hxx>
-#include <svx/svxids.hrc>
-#include <outline.hxx>
using namespace ::com::sun::star;
diff --git a/sw/source/uibase/shells/txtnum.cxx b/sw/source/uibase/shells/txtnum.cxx
index 91efc3e2b8bc..3b2fb5ab1457 100644
--- a/sw/source/uibase/shells/txtnum.cxx
+++ b/sw/source/uibase/shells/txtnum.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <hintids.hxx>
#include <sfx2/request.hxx>
#include <svl/eitem.hxx>
#include <svl/stritem.hxx>
@@ -32,14 +31,11 @@
#include <wdocsh.hxx>
#include <poolfmt.hxx>
#include <textsh.hxx>
-#include <uiitems.hxx>
#include <swabstdlg.hxx>
#include <SwStyleNameMapper.hxx>
-#include <globals.hrc>
#include <sfx2/tabdlg.hxx>
#include <svx/nbdtmg.hxx>
#include <svx/nbdtmgfact.hxx>
-#include <svx/svxids.hrc>
#include <sfx2/viewfrm.hxx>
#include <sfx2/bindings.hxx>
#include <memory>