summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-02-18 23:46:24 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-02-21 12:03:22 +0100
commite5c3d5f3b0b9dc6af4c347f30636535dd69ee64f (patch)
tree76dcc6e076dcdd1677382b99c9f02858faa88a0b /sc/source/ui/app
parent00e89430a2f8cd1f9ec702a7583a1e4c886a2b46 (diff)
tdf#42949 Fix IWYU warnings in sc/source/ui/[a-c]*
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I5e810ed15cc33900d106b64353584d21f081517f Reviewed-on: https://gerrit.libreoffice.org/67992 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/client.cxx4
-rw-r--r--sc/source/ui/app/drwtrans.cxx9
-rw-r--r--sc/source/ui/app/inputhdl.cxx5
-rw-r--r--sc/source/ui/app/inputwin.cxx12
-rw-r--r--sc/source/ui/app/msgpool.cxx1
-rw-r--r--sc/source/ui/app/scdll.cxx17
-rw-r--r--sc/source/ui/app/scmod.cxx23
-rw-r--r--sc/source/ui/app/seltrans.cxx1
-rw-r--r--sc/source/ui/app/transobj.cxx11
-rw-r--r--sc/source/ui/app/typemap.cxx12
10 files changed, 3 insertions, 92 deletions
diff --git a/sc/source/ui/app/client.cxx b/sc/source/ui/app/client.cxx
index 42da11f3d8b4..338be8331cfb 100644
--- a/sc/source/ui/app/client.cxx
+++ b/sc/source/ui/app/client.cxx
@@ -22,15 +22,11 @@
#include <toolkit/helper/vclunohelper.hxx>
#include <sfx2/objsh.hxx>
-#include <sfx2/viewfrm.hxx>
#include <svx/svditer.hxx>
#include <svx/svdobj.hxx>
#include <svx/svdmodel.hxx>
#include <svx/svdpage.hxx>
#include <svx/svdoole2.hxx>
-#include <svx/svdview.hxx>
-#include <svx/svdograf.hxx>
-#include <svtools/embedhlp.hxx>
#include <client.hxx>
#include <tabvwsh.hxx>
diff --git a/sc/source/ui/app/drwtrans.cxx b/sc/source/ui/app/drwtrans.cxx
index 163f155a2ebc..178bd5c85e35 100644
--- a/sc/source/ui/app/drwtrans.cxx
+++ b/sc/source/ui/app/drwtrans.cxx
@@ -35,14 +35,10 @@
#include <svtools/embedtransfer.hxx>
#include <sot/storage.hxx>
-#include <vcl/virdev.hxx>
-#include <svx/fmglob.hxx>
#include <svx/svditer.hxx>
#include <svx/svdograf.hxx>
#include <svx/svdoole2.hxx>
#include <svx/svdouno.hxx>
-#include <svx/svdpage.hxx>
-#include <svx/svdxcgv.hxx>
#include <sfx2/docfile.hxx>
#include <svl/itempool.hxx>
#include <svl/urlbmk.hxx>
@@ -54,13 +50,8 @@
#include <drawview.hxx>
#include <viewdata.hxx>
#include <scmod.hxx>
-#include <chartlis.hxx>
-#include <rangeutl.hxx>
-#include <formula/grammar.hxx>
#include <dragdata.hxx>
-#include <scitems.hxx>
-
#include <editeng/eeitem.hxx>
#include <editeng/fhgtitem.hxx>
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 55aaf256398e..5e9e3ee46ee9 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -27,7 +27,6 @@
#include <sfx2/app.hxx>
#include <editeng/acorrcfg.hxx>
#include <formula/errorcodes.hxx>
-#include <svx/algitem.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/brushitem.hxx>
#include <svtools/colorcfg.hxx>
@@ -35,8 +34,6 @@
#include <editeng/editobj.hxx>
#include <editeng/editstat.hxx>
#include <editeng/editview.hxx>
-#include <editeng/escapementitem.hxx>
-#include <editeng/forbiddencharacterstable.hxx>
#include <editeng/langitem.hxx>
#include <editeng/svxacorr.hxx>
#include <editeng/unolingu.hxx>
@@ -45,7 +42,6 @@
#include <editeng/misspellrange.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
-#include <sfx2/dispatch.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/printer.hxx>
#include <svl/zforlist.hxx>
@@ -77,7 +73,6 @@
#include <appoptio.hxx>
#include <docoptio.hxx>
#include <validat.hxx>
-#include <userlist.hxx>
#include <rfindlst.hxx>
#include <inputopt.hxx>
#include <simpleformulacalc.hxx>
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index a6c1096e9f48..5684ba566b54 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -20,14 +20,12 @@
#include <memory>
#include <algorithm>
-#include <scitems.hxx>
#include <editeng/eeitem.hxx>
#include <sfx2/app.hxx>
#include <editeng/adjustitem.hxx>
#include <editeng/editview.hxx>
#include <editeng/editstat.hxx>
-#include <editeng/frmdiritem.hxx>
#include <editeng/lspcitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/wghtitem.hxx>
@@ -37,9 +35,7 @@
#include <sfx2/viewfrm.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/event.hxx>
-#include <stdlib.h>
#include <editeng/scriptspaceitem.hxx>
-#include <editeng/scripttypeitem.hxx>
#include <vcl/cursor.hxx>
#include <vcl/help.hxx>
#include <vcl/settings.hxx>
@@ -48,7 +44,6 @@
#include <inputwin.hxx>
#include <scmod.hxx>
-#include <uiitems.hxx>
#include <global.hxx>
#include <scresid.hxx>
#include <strings.hrc>
@@ -62,21 +57,18 @@
#include <docsh.hxx>
#include <appoptio.hxx>
#include <rangenam.hxx>
-#include <formula/compiler.hxx>
-#include <dbdata.hxx>
#include <rangeutl.hxx>
#include <docfunc.hxx>
#include <funcdesc.hxx>
-#include <markdata.hxx>
#include <editeng/fontitem.hxx>
-#include <com/sun/star/accessibility/XAccessible.hpp>
#include <AccessibleEditObject.hxx>
#include <AccessibleText.hxx>
-#include <svtools/miscopt.hxx>
#include <comphelper/string.hxx>
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <helpids.h>
+namespace com::sun::star::accessibility { class XAccessible; }
+
#define THESIZE 1000000 // Should be more than enough!
#define TBX_WINDOW_HEIGHT 22 // in pixel - TODO: The same on all systems?
#define MULTILINE_BUTTON_WIDTH 20 // Width of the button which opens the multiline dropdown
diff --git a/sc/source/ui/app/msgpool.cxx b/sc/source/ui/app/msgpool.cxx
index fb0dbbd67012..8a48a87bd290 100644
--- a/sc/source/ui/app/msgpool.cxx
+++ b/sc/source/ui/app/msgpool.cxx
@@ -18,7 +18,6 @@
*/
#include <scitems.hxx>
-#include <svx/dialogs.hrc>
#include <sc.hrc>
#include <docpool.hxx>
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx
index 0959849f85c9..69bf6a33d28a 100644
--- a/sc/source/ui/app/scdll.cxx
+++ b/sc/source/ui/app/scdll.cxx
@@ -19,30 +19,19 @@
#include <config_features.h>
-#include <editeng/eeitem.hxx>
-
#include <svx/fmobjfac.hxx>
#include <svx/objfac3d.hxx>
-#include <svx/tbxcolor.hxx>
-#include <comphelper/classids.hxx>
#include <sfx2/sidebar/SidebarChildWindow.hxx>
-#include <sfx2/docfilt.hxx>
-#include <sfx2/fcontnr.hxx>
-#include <sfx2/docfile.hxx>
#include <sfx2/app.hxx>
-#include <avmedia/mediaplayer.hxx>
#include <avmedia/mediatoolbox.hxx>
#include <svx/ParaLineSpacingPopup.hxx>
#include <svx/TextCharacterSpacingPopup.hxx>
#include <svx/TextUnderlinePopup.hxx>
#include <NumberFormatControl.hxx>
-#include <svtools/parhtml.hxx>
#include <unotools/resmgr.hxx>
-#include <sot/formats.hxx>
-#include <scitems.hxx>
#include <scmod.hxx>
#include <scresid.hxx>
#include <sc.hrc>
@@ -64,7 +53,6 @@
#include <pgbrksh.hxx>
#include <scdll.hxx>
-#include <docpool.hxx>
#include <appoptio.hxx>
#include <searchresults.hxx>
@@ -77,7 +65,6 @@
#include <svx/selctrl.hxx>
#include <svx/insctrl.hxx>
#include <svx/zoomctrl.hxx>
-#include <editeng/flditem.hxx>
#include <svx/modctrl.hxx>
#include <svx/pszctrl.hxx>
#include <svx/grafctrl.hxx>
@@ -101,10 +88,6 @@
#include <svx/hyperdlg.hxx>
#include <svx/imapdlg.hxx>
-#include <editutil.hxx>
-
-#include <dwfunctr.hxx>
-#include <acredlin.hxx>
#include <filter.hxx>
#include <scabstdlg.hxx>
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 90641caa52fe..6c184421f210 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -17,31 +17,24 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <config_features.h>
-
#include <com/sun/star/ui/dialogs/XSLTFilterDialog.hpp>
#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
#include <scitems.hxx>
#include <sfx2/app.hxx>
-#include <editeng/eeitem.hxx>
#include <editeng/flditem.hxx>
#include <editeng/outliner.hxx>
-#include <basic/sbstar.hxx>
-#include <sfx2/sfxdlg.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/objface.hxx>
#include <IAnyRefDialog.hxx>
-#include <anyrefdg.hxx>
#include <svtools/ehdl.hxx>
#include <svtools/accessibilityoptions.hxx>
#include <svl/ctloptions.hxx>
#include <unotools/useroptions.hxx>
-#include <vcl/status.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/request.hxx>
#include <sfx2/printer.hxx>
@@ -50,17 +43,10 @@
#include <svl/whiter.hxx>
#include <svx/dialogs.hrc>
-#include <svx/selctrl.hxx>
-#include <svx/insctrl.hxx>
-#include <svx/zoomctrl.hxx>
-#include <svx/modctrl.hxx>
-#include <svx/pszctrl.hxx>
-#include <svx/zoomsliderctrl.hxx>
#include <svl/inethist.hxx>
#include <vcl/waitobj.hxx>
#include <svx/svxerr.hxx>
#include <tools/diagnose_ex.h>
-#include <unotools/resmgr.hxx>
#include <editeng/unolingu.hxx>
#include <unotools/lingucfg.hxx>
@@ -68,8 +54,6 @@
#include <i18nlangtag/languagetag.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/linguistic2/XThesaurus.hpp>
-#include <com/sun/star/lang/Locale.hpp>
-#include <com/sun/star/datatransfer/XTransferable2.hpp>
#include <ooo/vba/XSinkCaller.hpp>
#include <scmod.hxx>
@@ -97,24 +81,17 @@
#include <inputhdl.hxx>
#include <inputwin.hxx>
#include <msgpool.hxx>
-#include <dwfunctr.hxx>
#include <formdata.hxx>
-#include <tpprint.hxx>
-#include <tpdefaults.hxx>
-#include <transobj.hxx>
#include <detfunc.hxx>
#include <preview.hxx>
#include <dragdata.hxx>
#include <markdata.hxx>
-#include <svx/xmlsecctrl.hxx>
-
#define ShellClass_ScModule
#include <scslots.hxx>
#include <scabstdlg.hxx>
#include <formula/errorcodes.hxx>
-#include <formulagroup.hxx>
#include <documentlinkmgr.hxx>
#define SC_IDLE_MIN 150
diff --git a/sc/source/ui/app/seltrans.cxx b/sc/source/ui/app/seltrans.cxx
index 84a0e6b23778..79a0437f6061 100644
--- a/sc/source/ui/app/seltrans.cxx
+++ b/sc/source/ui/app/seltrans.cxx
@@ -23,7 +23,6 @@
#include <tools/urlobj.hxx>
#include <sfx2/docfile.hxx>
-#include <svx/fmglob.hxx>
#include <svx/svdograf.hxx>
#include <svx/svdouno.hxx>
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index e3a88e6decf8..404fcb535bb3 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -18,13 +18,10 @@
*/
#include <scitems.hxx>
-#include <editeng/eeitem.hxx>
#include <editeng/justifyitem.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/embed/XTransactedObject.hpp>
-#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
-#include <com/sun/star/datatransfer/clipboard/SystemClipboard.hpp>
#include <unotools/tempfile.hxx>
#include <unotools/ucbstreamhelper.hxx>
@@ -35,10 +32,7 @@
#include <vcl/gdimtf.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
-#include <vcl/wrkwin.hxx>
-#include <sfx2/app.hxx>
#include <sfx2/docfile.hxx>
-#include <sfx2/viewfrm.hxx>
#include <transobj.hxx>
#include <patattr.hxx>
@@ -53,14 +47,10 @@
#include <docfunc.hxx>
#include <scmod.hxx>
#include <dragdata.hxx>
-#include <clipparam.hxx>
#include <editeng/paperinf.hxx>
#include <editeng/sizeitem.hxx>
#include <formula/errorcodes.hxx>
-#include <svx/algitem.hxx>
-#include <svl/intitem.hxx>
-#include <svl/zforlist.hxx>
#include <docsh.hxx>
#include <markdata.hxx>
#include <stlpool.hxx>
@@ -69,7 +59,6 @@
#include <cellsuno.hxx>
#include <stringutil.hxx>
#include <formulaiter.hxx>
-#include <gridwin.hxx>
using namespace com::sun::star;
diff --git a/sc/source/ui/app/typemap.cxx b/sc/source/ui/app/typemap.cxx
index c4aaaa9bebb2..3a0f55977a00 100644
--- a/sc/source/ui/app/typemap.cxx
+++ b/sc/source/ui/app/typemap.cxx
@@ -19,14 +19,10 @@
#include <config_options.h>
-#include <svx/svxids.hrc>
-#include <sc.hrc>
#include <mid.h>
-#include <scitems.hxx>
#include <editeng/memberids.h>
#include <sfx2/msg.hxx>
-#include <svl/stritem.hxx>
#include <svl/slstitm.hxx>
#include <editeng/fontitem.hxx>
#include <svx/hlnkitem.hxx>
@@ -50,8 +46,6 @@
#include <svx/xlnedit.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflclit.hxx>
-#include <svx/xgrad.hxx>
-#include <svx/xflgrit.hxx>
#include <svx/xflhtit.hxx>
#include <svx/xbtmpit.hxx>
#include <svx/xlineit0.hxx>
@@ -69,12 +63,10 @@
#include <svx/xftshxy.hxx>
#include <editeng/langitem.hxx>
#include <editeng/justifyitem.hxx>
-#include <svx/grafctrl.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/contouritem.hxx>
#include <editeng/crossedoutitem.hxx>
-#include <editeng/formatbreakitem.hxx>
#include <editeng/charreliefitem.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/lspcitem.hxx>
@@ -89,10 +81,8 @@
#include <svx/xflftrit.hxx>
#include <svx/xlncapit.hxx>
#include <svx/xlinjoit.hxx>
-#include <svx/AffineMatrixItem.hxx>
#include <svx/galleryitem.hxx>
-#include <svx/sdshitm.hxx>
-#include <svl/aeitem.hxx>
+#include <svx/sdooitm.hxx>
#include <avmedia/mediaitem.hxx>
#include <sfx2/frame.hxx>
#include <attrib.hxx>