summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-12-26 18:39:47 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-01-04 10:23:49 +0100
commit9ec128f8377182c0c50a4c5e6f21cd9b061ef016 (patch)
treec7ad31a7104824dee1d820ccda09b42f73d8b0a1 /starmath/source
parentb29f6e605210477ab9e13f0dad76d83023b360f2 (diff)
tdf#42949 Fix IWYU warnings in starmath/inc/*hxx & starmath/source/*hxx
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: If1a597f4c2241dc1ad5687d81199bbc5745e711f Reviewed-on: https://gerrit.libreoffice.org/65624 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/accessibility.cxx1
-rw-r--r--starmath/source/accessibility.hxx3
-rw-r--r--starmath/source/cfgitem.hxx4
-rw-r--r--starmath/source/dialog.cxx1
-rw-r--r--starmath/source/document.cxx1
-rw-r--r--starmath/source/edit.cxx2
-rw-r--r--starmath/source/eqnolefilehdr.hxx4
-rw-r--r--starmath/source/mathmlexport.cxx2
-rw-r--r--starmath/source/mathmlimport.cxx1
-rw-r--r--starmath/source/mathmlimport.hxx3
-rw-r--r--starmath/source/node.cxx1
-rw-r--r--starmath/source/parse.cxx1
-rw-r--r--starmath/source/rect.cxx2
-rw-r--r--starmath/source/smdetect.cxx1
-rw-r--r--starmath/source/smdetect.hxx1
-rw-r--r--starmath/source/smdll.cxx1
-rw-r--r--starmath/source/smmod.cxx1
-rw-r--r--starmath/source/tmpdevice.cxx1
-rw-r--r--starmath/source/unofilter.cxx1
-rw-r--r--starmath/source/unomodel.cxx2
-rw-r--r--starmath/source/utility.cxx1
-rw-r--r--starmath/source/view.cxx2
22 files changed, 29 insertions, 8 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index 345c70efcc16..85daa5092843 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -59,6 +59,7 @@
#include <view.hxx>
#include <o3tl/make_unique.hxx>
#include <strings.hrc>
+#include <smmod.hxx>
using namespace com::sun::star;
using namespace com::sun::star::lang;
diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx
index e74b5581b0c4..1e37fa35c6b1 100644
--- a/starmath/source/accessibility.hxx
+++ b/starmath/source/accessibility.hxx
@@ -36,7 +36,6 @@
#include <memory>
class SmGraphicWindow;
-class SmEditWindow;
class SmDocShell;
namespace accessibility { class AccessibleTextHelper; }
@@ -142,10 +141,8 @@ public:
class SmEditAccessible;
class SmEditSource;
-class EditEngine;
class EditView;
class SvxFieldItem;
-struct ESelection;
class SmViewForwarder :
diff --git a/starmath/source/cfgitem.hxx b/starmath/source/cfgitem.hxx
index 2959f3741f3c..4f1eabf0876d 100644
--- a/starmath/source/cfgitem.hxx
+++ b/starmath/source/cfgitem.hxx
@@ -24,8 +24,6 @@
#include <vector>
-#include <com/sun/star/uno/Sequence.hxx>
-
#include <rtl/ustring.hxx>
#include <svl/SfxBroadcaster.hxx>
#include <unotools/configitem.hxx>
@@ -33,6 +31,8 @@
#include <types.hxx>
#include <memory>
+namespace com { namespace sun { namespace star { namespace uno { template <class E> class Sequence; } } } }
+
class SmSym;
class SmSymbolManager;
class SmFormat;
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 550401d8f157..b8f7b276169b 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -32,6 +32,7 @@
#include <vcl/wall.hxx>
#include <vcl/fontcharmap.hxx>
#include <sfx2/dispatch.hxx>
+#include <svx/charmap.hxx>
#include <svx/ucsubset.hxx>
#include <dialog.hxx>
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 81ca45a18026..a4f03b654039 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -62,6 +62,7 @@
#include <format.hxx>
#include <starmath.hrc>
#include <strings.hrc>
+#include <smmod.hxx>
#include <symbol.hxx>
#include <unomodel.hxx>
#include <utility.hxx>
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index cb3b2853ee44..3cb28407d0da 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -33,8 +33,10 @@
#include <svl/stritem.hxx>
#include <sfx2/viewfrm.hxx>
#include <svx/AccessibleTextHelper.hxx>
+#include <svtools/colorcfg.hxx>
#include <edit.hxx>
+#include <smmod.hxx>
#include <view.hxx>
#include <document.hxx>
#include "cfgitem.hxx"
diff --git a/starmath/source/eqnolefilehdr.hxx b/starmath/source/eqnolefilehdr.hxx
index 119c2e19c960..29f93cd00265 100644
--- a/starmath/source/eqnolefilehdr.hxx
+++ b/starmath/source/eqnolefilehdr.hxx
@@ -21,7 +21,9 @@
#define INCLUDED_STARMATH_SOURCE_EQNOLEFILEHDR_HXX
#include <sal/types.h>
-#include <sot/storage.hxx>
+#include <tools/stream.hxx>
+
+class SotStorage;
#define EQNOLEFILEHDR_SIZE 28
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index d8924c95cb30..084efcf8ef77 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -36,6 +36,7 @@
#include <sfx2/sfxsids.hrc>
#include <osl/diagnose.h>
#include <unotools/saveopt.hxx>
+#include <sot/storage.hxx>
#include <svl/itemset.hxx>
#include <svl/stritem.hxx>
#include <comphelper/fileformat.h>
@@ -57,6 +58,7 @@
#include "mathmlexport.hxx"
#include <strings.hrc>
+#include <smmod.hxx>
#include <unomodel.hxx>
#include <document.hxx>
#include <utility.hxx>
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 1802d95474ca..c22d31db49d7 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -46,6 +46,7 @@ one go*/
#include <sfx2/docfile.hxx>
#include <sfx2/sfxsids.hrc>
#include <osl/diagnose.h>
+#include <sot/storage.hxx>
#include <svtools/sfxecode.hxx>
#include <svl/itemset.hxx>
#include <svl/stritem.hxx>
diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx
index 3c8a389edc37..c9a2f9d1f17c 100644
--- a/starmath/source/mathmlimport.hxx
+++ b/starmath/source/mathmlimport.hxx
@@ -21,11 +21,12 @@
#define INCLUDED_STARMATH_SOURCE_MATHMLIMPORT_HXX
#include <xmloff/xmlimp.hxx>
+#include <vcl/errcode.hxx>
-#include <node.hxx>
#include <deque>
#include <memory>
+class SmNode;
class SfxMedium;
namespace com { namespace sun { namespace star {
namespace beans {
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index d78e847350e1..ebbb57f3d7b7 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -31,6 +31,7 @@
#include <tools/color.hxx>
#include <tools/fract.hxx>
#include <tools/gen.hxx>
+#include <vcl/metric.hxx>
#include <vcl/outdev.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 6080e5711736..e4d6ca6bfb21 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -29,6 +29,7 @@
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <rtl/character.hxx>
+#include <node.hxx>
#include <parse.hxx>
#include <strings.hrc>
#include <smmod.hxx>
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index c59e43dd7c45..ab32022aac2a 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -18,10 +18,12 @@
*/
#include <osl/diagnose.h>
+#include <vcl/metric.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
#include <sal/log.hxx>
+#include <format.hxx>
#include <rect.hxx>
#include <types.hxx>
#include <smmod.hxx>
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index ad5dacfb8821..90d601157a3e 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -25,6 +25,7 @@
#include <sfx2/docfile.hxx>
#include <unotools/mediadescriptor.hxx>
#include <sal/log.hxx>
+#include <sot/storage.hxx>
#include "eqnolefilehdr.hxx"
diff --git a/starmath/source/smdetect.hxx b/starmath/source/smdetect.hxx
index fa616773bca1..7869146f414b 100644
--- a/starmath/source/smdetect.hxx
+++ b/starmath/source/smdetect.hxx
@@ -22,7 +22,6 @@
#include <rtl/ustring.hxx>
#include <com/sun/star/document/XExtendedFilterDetection.hpp>
-#include <com/sun/star/uno/Reference.h>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
diff --git a/starmath/source/smdll.cxx b/starmath/source/smdll.cxx
index ecd80501d80d..731f15d6f530 100644
--- a/starmath/source/smdll.cxx
+++ b/starmath/source/smdll.cxx
@@ -28,6 +28,7 @@
#include <sfx2/app.hxx>
#include <smdll.hxx>
+#include <smmod.hxx>
#include <document.hxx>
#include <view.hxx>
diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx
index 32cd5550d9e5..95086ecd52a5 100644
--- a/starmath/source/smmod.cxx
+++ b/starmath/source/smmod.cxx
@@ -35,6 +35,7 @@
#include <smmod.hrc>
#include <starmath.hrc>
#include <svx/modctrl.hxx>
+#include <svtools/colorcfg.hxx>
#define ShellClass_SmModule
diff --git a/starmath/source/tmpdevice.cxx b/starmath/source/tmpdevice.cxx
index cdfaf41337ba..d69dc0be2c89 100644
--- a/starmath/source/tmpdevice.cxx
+++ b/starmath/source/tmpdevice.cxx
@@ -20,6 +20,7 @@
#include <smmod.hxx>
#include "tmpdevice.hxx"
+#include <svtools/colorcfg.hxx>
#include <vcl/window.hxx>
#include <sal/log.hxx>
diff --git a/starmath/source/unofilter.cxx b/starmath/source/unofilter.cxx
index 11b0728a53f7..2379158cad8f 100644
--- a/starmath/source/unofilter.cxx
+++ b/starmath/source/unofilter.cxx
@@ -11,6 +11,7 @@
#include <unotools/mediadescriptor.hxx>
#include <unotools/ucbstreamhelper.hxx>
+#include <sot/storage.hxx>
#include <document.hxx>
#include "mathtype.hxx"
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index b19c1aab166d..f103b1440a96 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -39,6 +39,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <unotools/moduleoptions.hxx>
#include <tools/mapunit.hxx>
+#include <tools/stream.hxx>
#include <unomodel.hxx>
#include <document.hxx>
@@ -46,6 +47,7 @@
#include <symbol.hxx>
#include <starmath.hrc>
#include <strings.hrc>
+#include <smmod.hxx>
#include "cfgitem.hxx"
using namespace ::cppu;
diff --git a/starmath/source/utility.cxx b/starmath/source/utility.cxx
index e9cc71eda79f..a842c7ed66a2 100644
--- a/starmath/source/utility.cxx
+++ b/starmath/source/utility.cxx
@@ -18,6 +18,7 @@
*/
#include <strings.hrc>
+#include <smmod.hxx>
#include <utility.hxx>
#include <dialog.hxx>
#include <view.hxx>
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 76ad4c5fe541..596cb1597193 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -43,6 +43,7 @@
#include <svl/poolitem.hxx>
#include <svl/stritem.hxx>
#include <vcl/transfer.hxx>
+#include <svtools/colorcfg.hxx>
#include <svtools/miscopt.hxx>
#include <svl/whiter.hxx>
#include <svx/zoomslideritem.hxx>
@@ -64,6 +65,7 @@
#include <document.hxx>
#include <starmath.hrc>
#include <strings.hrc>
+#include <smmod.hxx>
#include "mathmlimport.hxx"
#include <cursor.hxx>
#include "accessibility.hxx"