diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-03-30 09:40:28 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-04-01 10:39:44 +0200 |
commit | 80152c8c5e3482c1dc29ef1a8fbb1aea4399c39e (patch) | |
tree | 61530f38e0967e9f947364220aac4923902ff794 /sw | |
parent | e296468412ee9640572103d1e6a932f8528fe83b (diff) |
tdf#42949 Fix IWYU warnings in include/sfx2/[sS]*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: I4a3baffa8944b522b16b50975185759081662020
Reviewed-on: https://gerrit.libreoffice.org/69945
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
25 files changed, 28 insertions, 0 deletions
diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx index f3f6657af420..ea856f80d9c4 100644 --- a/sw/inc/docsh.hxx +++ b/sw/inc/docsh.hxx @@ -20,6 +20,7 @@ #define INCLUDED_SW_INC_DOCSH_HXX #include <memory> +#include <vector> #include <rtl/ref.hxx> #include <com/sun/star/uno/Sequence.h> #include <sfx2/docfac.hxx> diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index 0ceb70b3f888..7c956e374492 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -77,6 +77,7 @@ class SwXDrawPage; class SwUnoCursor; class SwXDocumentPropertyHelper; class SfxViewFrame; +class SfxViewShell; class SwPrintUIOptions; class SwPrintData; class SwRenderData; diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx index ac80522b1cb0..b229b466ff78 100644 --- a/sw/source/core/access/acccell.cxx +++ b/sw/source/core/access/acccell.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <unotools/accessiblestatesethelper.hxx> #include <cppuhelper/supportsservice.hxx> +#include <cppuhelper/typeprovider.hxx> #include <vcl/svapp.hxx> #include <cellfrm.hxx> #include <tabfrm.hxx> diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx index a88b9ee4fdba..933806e084e0 100644 --- a/sw/source/core/access/accdoc.cxx +++ b/sw/source/core/access/accdoc.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <unotools/accessiblestatesethelper.hxx> +#include <cppuhelper/typeprovider.hxx> #include <sfx2/viewsh.hxx> #include <vcl/svapp.hxx> #include <cppuhelper/supportsservice.hxx> diff --git a/sw/source/core/access/accembedded.cxx b/sw/source/core/access/accembedded.cxx index 7f0278c85a20..a9ee92d26531 100644 --- a/sw/source/core/access/accembedded.cxx +++ b/sw/source/core/access/accembedded.cxx @@ -20,6 +20,7 @@ #include <vcl/svapp.hxx> #include <com/sun/star/accessibility/AccessibleRole.hpp> #include <com/sun/star/uno/RuntimeException.hpp> +#include <cppuhelper/queryinterface.hxx> #include <cppuhelper/supportsservice.hxx> #include <flyfrm.hxx> #include "accembedded.hxx" diff --git a/sw/source/core/access/accnotextframe.cxx b/sw/source/core/access/accnotextframe.cxx index b78e534ab4e0..48abb68cacfb 100644 --- a/sw/source/core/access/accnotextframe.cxx +++ b/sw/source/core/access/accnotextframe.cxx @@ -20,6 +20,7 @@ #include <vcl/svapp.hxx> #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <unotools/accessiblestatesethelper.hxx> +#include <cppuhelper/typeprovider.hxx> #include <frmfmt.hxx> #include <ndnotxt.hxx> #include <flyfrm.hxx> diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 3abbd7a60826..350458840bcb 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -87,6 +87,7 @@ #include "parachangetrackinginfo.hxx" #include <com/sun/star/text/TextMarkupType.hpp> #include <cppuhelper/supportsservice.hxx> +#include <cppuhelper/typeprovider.hxx> #include <svx/colorwindow.hxx> #include <editeng/editids.hrc> diff --git a/sw/source/core/access/acctextframe.cxx b/sw/source/core/access/acctextframe.cxx index 11a4043c314d..22f7c6b917dd 100644 --- a/sw/source/core/access/acctextframe.cxx +++ b/sw/source/core/access/acctextframe.cxx @@ -18,6 +18,7 @@ */ #include <com/sun/star/accessibility/XAccessibleContext.hpp> +#include <cppuhelper/queryinterface.hxx> #include <cppuhelper/supportsservice.hxx> #include <vcl/svapp.hxx> #include <sal/log.hxx> diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx index 1cc1d4ba1237..e8cd7792a1a2 100644 --- a/sw/source/core/doc/number.cxx +++ b/sw/source/core/doc/number.cxx @@ -58,6 +58,8 @@ #include <IDocumentStylePoolAccess.hxx> #include <IDocumentState.hxx> +#include <com/sun/star/beans/PropertyValue.hpp> + using namespace ::com::sun::star; sal_uInt16 SwNumRule::mnRefCount = 0; diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index 2c7f54651237..b908b4d31a6f 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -29,6 +29,7 @@ #include <com/sun/star/drawing/XShape.hpp> #include <com/sun/star/drawing/XEnhancedCustomShapeDefaulter.hpp> #include <com/sun/star/drawing/XShapes.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> #include <com/sun/star/text/RelOrientation.hpp> diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx index 1e9f868f1fb1..61f0f3500c74 100644 --- a/sw/source/core/unocore/unocrsrhelper.cxx +++ b/sw/source/core/unocore/unocrsrhelper.cxx @@ -28,6 +28,7 @@ #include <com/sun/star/embed/XStorage.hpp> #include <com/sun/star/io/IOException.hpp> #include <com/sun/star/text/XTextSection.hpp> +#include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <svx/svxids.hrc> #include <svx/unoshape.hxx> diff --git a/sw/source/core/unocore/unoredline.cxx b/sw/source/core/unocore/unoredline.cxx index b3f0f71d60de..ef8226d511b4 100644 --- a/sw/source/core/unocore/unoredline.cxx +++ b/sw/source/core/unocore/unoredline.cxx @@ -25,6 +25,7 @@ #include <com/sun/star/util/DateTime.hpp> #include <com/sun/star/text/XTextTable.hpp> +#include <cppuhelper/typeprovider.hxx> #include <vcl/svapp.hxx> #include <pagedesc.hxx> diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 9d0f3ed3c344..9c71b4f816ad 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -82,6 +82,7 @@ #include <comphelper/servicehelper.hxx> #include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/supportsservice.hxx> +#include <cppuhelper/typeprovider.hxx> #include <comphelper/sequence.hxx> #include <sal/log.hxx> diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx index dc141851a29a..47bef0ee7fa5 100644 --- a/sw/source/filter/rtf/swparrtf.cxx +++ b/sw/source/filter/rtf/swparrtf.cxx @@ -35,6 +35,7 @@ #include <com/sun/star/document/XFilter.hpp> #include <com/sun/star/document/XImporter.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> using namespace ::com::sun::star; diff --git a/sw/source/filter/ww8/docxtablestyleexport.cxx b/sw/source/filter/ww8/docxtablestyleexport.cxx index dea7b0209bca..2e3aa4892cdd 100644 --- a/sw/source/filter/ww8/docxtablestyleexport.cxx +++ b/sw/source/filter/ww8/docxtablestyleexport.cxx @@ -18,6 +18,7 @@ #include <boost/optional.hpp> #include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/beans/PropertyValue.hpp> using namespace com::sun::star; using namespace oox; diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index bd32d7db8864..0cc938391fab 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -25,6 +25,7 @@ #include <com/sun/star/embed/Aspects.hpp> #include <com/sun/star/embed/ElementModes.hpp> #include <com/sun/star/frame/XModel.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <i18nlangtag/languagetag.hxx> diff --git a/sw/source/filter/xml/xmlexp.cxx b/sw/source/filter/xml/xmlexp.cxx index f6b0032dea00..5c21ff3a4309 100644 --- a/sw/source/filter/xml/xmlexp.cxx +++ b/sw/source/filter/xml/xmlexp.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/document/IndexedPropertyValues.hpp> #include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/xforms/XFormsSupplier.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <o3tl/any.hxx> #include <officecfg/Office/Common.hxx> diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx index 5355627160e6..5828a4997eff 100644 --- a/sw/source/uibase/ribbar/workctrl.cxx +++ b/sw/source/uibase/ribbar/workctrl.cxx @@ -37,6 +37,8 @@ #include <cmdid.h> #include <helpids.h> #include <wrtsh.hxx> +#include <cppuhelper/queryinterface.hxx> +#include <cppuhelper/supportsservice.hxx> #include <svl/imageitm.hxx> #include <vcl/lstbox.hxx> #include <vcl/settings.hxx> diff --git a/sw/source/uibase/sidebar/PageMarginControl.cxx b/sw/source/uibase/sidebar/PageMarginControl.cxx index 2083966a01d2..a42ede147425 100644 --- a/sw/source/uibase/sidebar/PageMarginControl.cxx +++ b/sw/source/uibase/sidebar/PageMarginControl.cxx @@ -38,6 +38,7 @@ #include <cmdid.h> #include <com/sun/star/document/XUndoManagerSupplier.hpp> +#include <com/sun/star/beans/NamedValue.hpp> #include <vcl/settings.hxx> diff --git a/sw/source/uibase/sidebar/StylePresetsPanel.cxx b/sw/source/uibase/sidebar/StylePresetsPanel.cxx index e55712fdbe18..659df9f73d6a 100644 --- a/sw/source/uibase/sidebar/StylePresetsPanel.cxx +++ b/sw/source/uibase/sidebar/StylePresetsPanel.cxx @@ -26,6 +26,7 @@ #include <sfx2/bindings.hxx> #include <sfx2/viewsh.hxx> #include <sfx2/objsh.hxx> +#include <sfx2/StylePreviewRenderer.hxx> #include <com/sun/star/frame/DocumentTemplates.hpp> #include <com/sun/star/lang/IllegalArgumentException.hpp> diff --git a/sw/source/uibase/uno/SwXDocumentSettings.cxx b/sw/source/uibase/uno/SwXDocumentSettings.cxx index 20feb24d8e46..1e7bb75f04a5 100644 --- a/sw/source/uibase/uno/SwXDocumentSettings.cxx +++ b/sw/source/uibase/uno/SwXDocumentSettings.cxx @@ -28,6 +28,7 @@ #include <sfx2/sfxbasecontroller.hxx> #include "SwXDocumentSettings.hxx" #include <comphelper/MasterPropertySetInfo.hxx> +#include <cppuhelper/queryinterface.hxx> #include <cppuhelper/supportsservice.hxx> #include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/i18n/XForbiddenCharacters.hpp> diff --git a/sw/source/uibase/uno/SwXDocumentSettings.hxx b/sw/source/uibase/uno/SwXDocumentSettings.hxx index 6f4adc542f2f..ab4cc5f2311c 100644 --- a/sw/source/uibase/uno/SwXDocumentSettings.hxx +++ b/sw/source/uibase/uno/SwXDocumentSettings.hxx @@ -25,6 +25,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XTypeProvider.hpp> #include <cppuhelper/weak.hxx> +#include <vcl/vclptr.hxx> class SwXTextDocument; class SwDocShell; diff --git a/sw/source/uibase/uno/unofreg.cxx b/sw/source/uibase/uno/unofreg.cxx index 74620c241033..eed079f6801a 100644 --- a/sw/source/uibase/uno/unofreg.cxx +++ b/sw/source/uibase/uno/unofreg.cxx @@ -28,6 +28,8 @@ #include <sfx2/sfxmodelfactory.hxx> #include <vcl/svapp.hxx> +#include <com/sun/star/lang/XSingleServiceFactory.hpp> + #include <string.h> using namespace ::com::sun::star; diff --git a/sw/source/uibase/uno/unotxvw.cxx b/sw/source/uibase/uno/unotxvw.cxx index 51c0c9243970..dd4b8c148d32 100644 --- a/sw/source/uibase/uno/unotxvw.cxx +++ b/sw/source/uibase/uno/unotxvw.cxx @@ -77,6 +77,7 @@ #include <comphelper/profilezone.hxx> #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> +#include <cppuhelper/typeprovider.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx index 29f698df0a0d..ce935fb17ead 100644 --- a/sw/source/uibase/utlui/unotools.cxx +++ b/sw/source/uibase/utlui/unotools.cxx @@ -38,6 +38,7 @@ #include <com/sun/star/view/XViewSettingsSupplier.hpp> #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/frame/XLayoutManager.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <comphelper/processfactory.hxx> #include <comphelper/propertysequence.hxx> #include <sfx2/dispatch.hxx> |