summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-03-06 07:23:33 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-03-08 09:29:10 +0100
commit1e21df65c89de18c26d4602e1b8744c49f9ae183 (patch)
treef545eabb2535d81f2ea4381879fcd134fa64b85b /starmath
parent9c2cf30333a3d1434c4184ed7a1e824c9fa3abb5 (diff)
tdf#42949 Fix IWYU warnings in starmath/*/*cxx
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I18dc216a59a5770456b20162c881c8726e2f44b2 Reviewed-on: https://gerrit.libreoffice.org/68788 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/IwyuFilter_starmath.yaml16
-rw-r--r--starmath/qa/cppunit/test_cursor.cxx1
-rw-r--r--starmath/qa/cppunit/test_nodetotextvisitors.cxx1
-rw-r--r--starmath/qa/cppunit/test_starmath.cxx1
-rw-r--r--starmath/qa/extras/mmlexport-test.cxx2
-rw-r--r--starmath/qa/unit/starmath-dialogs-test.cxx3
-rw-r--r--starmath/source/accessibility.cxx1
-rw-r--r--starmath/source/accessibility.hxx2
-rw-r--r--starmath/source/edit.cxx4
-rw-r--r--starmath/source/mathmlattr.cxx1
-rw-r--r--starmath/source/mathmlimport.cxx3
-rw-r--r--starmath/source/ooxmlimport.cxx1
-rw-r--r--starmath/source/register.cxx1
-rw-r--r--starmath/source/smdetect.cxx1
-rw-r--r--starmath/source/typemap.cxx3
-rw-r--r--starmath/source/uiobject.hxx3
-rw-r--r--starmath/source/unodoc.cxx1
-rw-r--r--starmath/source/unomodel.cxx1
-rw-r--r--starmath/source/view.cxx1
19 files changed, 19 insertions, 28 deletions
diff --git a/starmath/IwyuFilter_starmath.yaml b/starmath/IwyuFilter_starmath.yaml
index 4c925d91c96c..9df24573b6e2 100644
--- a/starmath/IwyuFilter_starmath.yaml
+++ b/starmath/IwyuFilter_starmath.yaml
@@ -13,3 +13,19 @@ blacklist:
# Base class needs complete type
- com/sun/star/document/XExtendedFilterDetection.hpp
- com/sun/star/lang/XServiceInfo.hpp
+ starmath/source/accessibility.cxx:
+ # Needed for implicit dtor
+ - editeng/editobj.hxx
+ starmath/source/smdll.cxx:
+ # Needed to inherit linker visibility
+ - smdll.hxx
+ starmath/source/typemap.cxx:
+ # Needed for smslots.hxx to build
+ - config_options.h
+ - sfx2/msg.hxx
+ - sfx2/zoomitem.hxx
+ - svx/zoomslideritem.hxx
+ - svl/slstitm.hxx
+ starmath/source/unodoc.cxx:
+ # Avoid loplugin:unreffun error
+ - register.hxx
diff --git a/starmath/qa/cppunit/test_cursor.cxx b/starmath/qa/cppunit/test_cursor.cxx
index 461ae5461c37..080e7a274c4d 100644
--- a/starmath/qa/cppunit/test_cursor.cxx
+++ b/starmath/qa/cppunit/test_cursor.cxx
@@ -10,7 +10,6 @@
#include <sal/config.h>
#include <test/bootstrapfixture.hxx>
-#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
#include <sfx2/sfxmodelfactory.hxx>
#include <smdll.hxx>
diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
index 00ec2949a69e..e76cc4e1d5e9 100644
--- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx
+++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
@@ -10,7 +10,6 @@
#include <sal/config.h>
#include <test/bootstrapfixture.hxx>
-#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
#include <sfx2/sfxmodelfactory.hxx>
#include <smdll.hxx>
diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx
index 41fcf3d75f88..f694cd888a23 100644
--- a/starmath/qa/cppunit/test_starmath.cxx
+++ b/starmath/qa/cppunit/test_starmath.cxx
@@ -20,7 +20,6 @@
#include <sfx2/dispatch.hxx>
#include <editeng/editeng.hxx>
-#include <editeng/editview.hxx>
#include <sfx2/zoomitem.hxx>
#include <starmath.hrc>
diff --git a/starmath/qa/extras/mmlexport-test.cxx b/starmath/qa/extras/mmlexport-test.cxx
index 8fdaa566a778..b26fcc1baac1 100644
--- a/starmath/qa/extras/mmlexport-test.cxx
+++ b/starmath/qa/extras/mmlexport-test.cxx
@@ -18,8 +18,6 @@
#include <document.hxx>
#include <smdll.hxx>
-#include <node.hxx>
-#include <parse.hxx>
#include <memory>
diff --git a/starmath/qa/unit/starmath-dialogs-test.cxx b/starmath/qa/unit/starmath-dialogs-test.cxx
index 37e95487071f..42e6ef45cdee 100644
--- a/starmath/qa/unit/starmath-dialogs-test.cxx
+++ b/starmath/qa/unit/starmath-dialogs-test.cxx
@@ -9,9 +9,6 @@
#include <sal/config.h>
#include <test/screenshot_test.hxx>
-#include <rtl/strbuf.hxx>
-#include <osl/file.hxx>
-#include <sfx2/app.hxx>
#include <vcl/abstdlg.hxx>
using namespace ::com::sun::star;
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index 71a8fd0ae887..9dfce2e83134 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -25,7 +25,6 @@
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
#include <com/sun/star/accessibility/AccessibleTextType.hpp>
-#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
#include <com/sun/star/accessibility/AccessibleEventObject.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <unotools/accessiblerelationsethelper.hxx>
diff --git a/starmath/source/accessibility.hxx b/starmath/source/accessibility.hxx
index 1e37fa35c6b1..b1e3dc6ddd07 100644
--- a/starmath/source/accessibility.hxx
+++ b/starmath/source/accessibility.hxx
@@ -33,9 +33,9 @@
#include <editeng/editeng.hxx>
#include <editeng/unoedsrc.hxx>
#include <edit.hxx>
+#include <view.hxx>
#include <memory>
-class SmGraphicWindow;
class SmDocShell;
namespace accessibility { class AccessibleTextHelper; }
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index d4ee00cd7a37..06eff8e5e37e 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -17,17 +17,13 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <com/sun/star/accessibility/XAccessible.hpp>
-
#include <starmath.hrc>
#include <helpids.h>
-#include <vcl/menu.hxx>
#include <vcl/settings.hxx>
#include <editeng/editview.hxx>
#include <editeng/editeng.hxx>
-#include <editeng/editstat.hxx>
#include <sfx2/dispatch.hxx>
#include <svl/stritem.hxx>
#include <sfx2/viewfrm.hxx>
diff --git a/starmath/source/mathmlattr.cxx b/starmath/source/mathmlattr.cxx
index a65e8d3f9a36..5e3f09df9f9e 100644
--- a/starmath/source/mathmlattr.cxx
+++ b/starmath/source/mathmlattr.cxx
@@ -9,7 +9,6 @@
#include "mathmlattr.hxx"
-#include <cassert>
#include <unordered_map>
static sal_Int32 ParseMathMLUnsignedNumber(const OUString &rStr, Fraction& rUN)
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index c702333b8ea0..4f9510aaac12 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -26,7 +26,6 @@ one go*/
#include <com/sun/star/xml/sax/Parser.hpp>
#include <com/sun/star/xml/sax/XFastParser.hpp>
#include <com/sun/star/xml/sax/SAXParseException.hpp>
-#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/packages/WrongPasswordException.hpp>
#include <com/sun/star/packages/zip/ZipIOException.hpp>
@@ -46,6 +45,7 @@ one go*/
#include <sfx2/frame.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/sfxsids.hrc>
+#include <sfx2/sfxmodelfactory.hxx>
#include <osl/diagnose.h>
#include <sot/storage.hxx>
#include <svtools/sfxecode.hxx>
@@ -67,7 +67,6 @@ one go*/
#include "mathmlattr.hxx"
#include "mathmlimport.hxx"
-#include "register.hxx"
#include <document.hxx>
#include <smdll.hxx>
#include <unomodel.hxx>
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index ca636f9138e6..4b2100439143 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -12,7 +12,6 @@
#include <types.hxx>
#include <oox/mathml/importutils.hxx>
-#include <oox/token/tokens.hxx>
#include <oox/token/namespaces.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
diff --git a/starmath/source/register.cxx b/starmath/source/register.cxx
index 3e06241484c3..da5ac3630982 100644
--- a/starmath/source/register.cxx
+++ b/starmath/source/register.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <cppuhelper/factory.hxx>
#include <rtl/ustring.hxx>
#include <sfx2/sfxmodelfactory.hxx>
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx
index 90d601157a3e..9c57a6e8a88e 100644
--- a/starmath/source/smdetect.cxx
+++ b/starmath/source/smdetect.cxx
@@ -21,7 +21,6 @@
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/ucb/ContentCreationException.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
#include <sfx2/docfile.hxx>
#include <unotools/mediadescriptor.hxx>
#include <sal/log.hxx>
diff --git a/starmath/source/typemap.cxx b/starmath/source/typemap.cxx
index e0a7641b69af..ba7910747bfd 100644
--- a/starmath/source/typemap.cxx
+++ b/starmath/source/typemap.cxx
@@ -20,11 +20,8 @@
#include <config_options.h>
#include <sfx2/msg.hxx>
-#include <svl/stritem.hxx>
-#include <svl/eitem.hxx>
#include <sfx2/zoomitem.hxx>
#include <svx/zoomslideritem.hxx>
-#include <svx/svxids.hrc>
#include <svl/slstitm.hxx>
#ifdef DISABLE_DYNLOADING
diff --git a/starmath/source/uiobject.hxx b/starmath/source/uiobject.hxx
index 616066f85df2..1e8ea9826687 100644
--- a/starmath/source/uiobject.hxx
+++ b/starmath/source/uiobject.hxx
@@ -13,8 +13,7 @@
#include <memory>
#include <vcl/uitest/uiobject.hxx>
-class SmElementsControl;
-class SmElement;
+#include <ElementsDockingWindow.hxx>
class ElementUIObject : public UIObject
{
diff --git a/starmath/source/unodoc.cxx b/starmath/source/unodoc.cxx
index 6355b5860f2f..ac2e35ca14ef 100644
--- a/starmath/source/unodoc.cxx
+++ b/starmath/source/unodoc.cxx
@@ -18,7 +18,6 @@
*/
#include <sfx2/sfxmodelfactory.hxx>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include "register.hxx"
#include <smdll.hxx>
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 73dc76130dc6..f033b79e435c 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -32,7 +32,6 @@
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/formula/SymbolDescriptor.hpp>
#include <com/sun/star/awt/Size.hpp>
-#include <com/sun/star/script/XLibraryContainer.hpp>
#include <comphelper/propertysetinfo.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/servicehelper.hxx>
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index f8c7b2f276d6..f86530dc4252 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -19,7 +19,6 @@
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
-#include <com/sun/star/accessibility/XAccessible.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XFramesSupplier.hpp>
#include <com/sun/star/container/XChild.hpp>