diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-04-07 18:43:32 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-04-08 11:55:43 +0200 |
commit | 4a6dc219fc0bb04f3e6a7f32344afcd058b38ebe (patch) | |
tree | da327f3364a1c55a226f8f2384832f7be32df635 /sw | |
parent | a3ee61550e4308782d53265c4b1685aeb8bf0ed7 (diff) |
tdf#42949 Fix IWYU warnings in include/sfx2/[t-z]*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: Ib3252828385d1dc8faf48a428b1593199647a679
Reviewed-on: https://gerrit.libreoffice.org/70383
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
36 files changed, 47 insertions, 0 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index e39564cc2dca..6d2841fc6be3 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -21,6 +21,7 @@ #include <doc.hxx> #include <com/sun/star/script/vba/XVBAEventProcessor.hpp> +#include <com/sun/star/frame/XModel.hpp> #include <DocumentFieldsManager.hxx> #include <DocumentSettingManager.hxx> #include <DocumentDrawModelManager.hxx> diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index c570d094fe3a..2b35ad3ffe7e 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -102,6 +102,7 @@ #include <com/sun/star/embed/EmbedMisc.hpp> #include <com/sun/star/embed/Aspects.hpp> +#include <com/sun/star/embed/XEmbeddedObject.hpp> #include <svx/srchdlg.hxx> diff --git a/sw/source/filter/html/htmlform.cxx b/sw/source/filter/html/htmlform.cxx index afee3575fb06..f0e14faa4471 100644 --- a/sw/source/filter/html/htmlform.cxx +++ b/sw/source/filter/html/htmlform.cxx @@ -29,6 +29,7 @@ #include <sfx2/request.hxx> #include <sfx2/docfile.hxx> #include <sfx2/event.hxx> +#include <sfx2/sfxsids.hrc> #include <sfx2/viewfrm.hxx> #include <editeng/lrspitem.hxx> #include <editeng/ulspitem.hxx> diff --git a/sw/source/ui/envelp/mailmrge.cxx b/sw/source/ui/envelp/mailmrge.cxx index f9648fdd83fa..bdde9b8cd9d6 100644 --- a/sw/source/ui/envelp/mailmrge.cxx +++ b/sw/source/ui/envelp/mailmrge.cxx @@ -49,6 +49,7 @@ #include <com/sun/star/sdb/XResultSetAccess.hpp> #include <com/sun/star/sdbc/XDataSource.hpp> #include <com/sun/star/ui/dialogs/FolderPicker.hpp> +#include <com/sun/star/view/XSelectionSupplier.hpp> #include <toolkit/helper/vclunohelper.hxx> #include <comphelper/processfactory.hxx> #include <cppuhelper/implbase.hxx> diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index c5564ac48163..d83066cd4737 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -19,6 +19,7 @@ #include <com/sun/star/embed/Aspects.hpp> #include <com/sun/star/embed/EmbedMisc.hpp> +#include <com/sun/star/embed/XEmbeddedObject.hpp> #include <cmdid.h> #include <hintids.hxx> diff --git a/sw/source/uibase/app/swwait.cxx b/sw/source/uibase/app/swwait.cxx index dcffdb0c3b96..f76b79d0bc70 100644 --- a/sw/source/uibase/app/swwait.cxx +++ b/sw/source/uibase/app/swwait.cxx @@ -23,6 +23,8 @@ #include <sfx2/viewfrm.hxx> #include <sfx2/dispatch.hxx> +#include <vcl/window.hxx> + SwWait::SwWait( SwDocShell &rDocShell, const bool bLockUnlockDispatcher ) diff --git a/sw/source/uibase/dbui/mmconfigitem.cxx b/sw/source/uibase/dbui/mmconfigitem.cxx index 930c5631864c..416b68b8dae8 100644 --- a/sw/source/uibase/dbui/mmconfigitem.cxx +++ b/sw/source/uibase/dbui/mmconfigitem.cxx @@ -29,6 +29,7 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/sdbc/XRowSet.hpp> +#include <com/sun/star/view/XSelectionSupplier.hpp> #include <comphelper/processfactory.hxx> #include <comphelper/types.hxx> #include <com/sun/star/sdb/CommandType.hpp> diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx b/sw/source/uibase/docvw/AnnotationWin.cxx index 34be32bb86d3..66efdf9c2a8d 100644 --- a/sw/source/uibase/docvw/AnnotationWin.cxx +++ b/sw/source/uibase/docvw/AnnotationWin.cxx @@ -26,6 +26,7 @@ #include <cmdid.h> #include <vcl/menu.hxx> +#include <vcl/scrbar.hxx> #include <svl/undo.hxx> #include <unotools/localedatawrapper.hxx> diff --git a/sw/source/uibase/docvw/SidebarTxtControl.cxx b/sw/source/uibase/docvw/SidebarTxtControl.cxx index 4e4edeff75b6..ef1f9f915977 100644 --- a/sw/source/uibase/docvw/SidebarTxtControl.cxx +++ b/sw/source/uibase/docvw/SidebarTxtControl.cxx @@ -35,6 +35,7 @@ #include <sfx2/bindings.hxx> #include <sfx2/dispatch.hxx> +#include <vcl/commandevent.hxx> #include <vcl/svapp.hxx> #include <vcl/help.hxx> #include <vcl/weld.hxx> diff --git a/sw/source/uibase/docvw/edtdd.cxx b/sw/source/uibase/docvw/edtdd.cxx index 9c5413a85aad..2a4fdb2eb9e9 100644 --- a/sw/source/uibase/docvw/edtdd.cxx +++ b/sw/source/uibase/docvw/edtdd.cxx @@ -25,6 +25,7 @@ #include <sot/exchange.hxx> #include <sot/formats.hxx> #include <sfx2/bindings.hxx> +#include <vcl/commandevent.hxx> #include <sfx2/viewfrm.hxx> #include <fmturl.hxx> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 06dcaa126e8b..59b0114e5707 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -30,6 +30,7 @@ #include <com/sun/star/i18n/UnicodeScript.hpp> #include <com/sun/star/i18n/CalendarFieldIndex.hpp> +#include <com/sun/star/ui/ContextMenuExecuteEvent.hpp> #include <vcl/inputctx.hxx> #include <vcl/help.hxx> diff --git a/sw/source/uibase/docvw/srcedtw.cxx b/sw/source/uibase/docvw/srcedtw.cxx index 68353b9f4d2f..cc0793e372e6 100644 --- a/sw/source/uibase/docvw/srcedtw.cxx +++ b/sw/source/uibase/docvw/srcedtw.cxx @@ -28,6 +28,9 @@ #include <officecfg/Office/Common.hxx> #include <rtl/ustring.hxx> #include <sal/log.hxx> +#include <vcl/commandevent.hxx> +#include <vcl/event.hxx> +#include <vcl/svapp.hxx> #include <vcl/textview.hxx> #include <svx/svxids.hrc> #include <vcl/scrbar.hxx> diff --git a/sw/source/uibase/inc/navipi.hxx b/sw/source/uibase/inc/navipi.hxx index 17b86aada357..95025b428ad9 100644 --- a/sw/source/uibase/inc/navipi.hxx +++ b/sw/source/uibase/inc/navipi.hxx @@ -19,6 +19,7 @@ #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_NAVIPI_HXX #define INCLUDED_SW_SOURCE_UIBASE_INC_NAVIPI_HXX +#include <vcl/layout.hxx> #include <vcl/lstbox.hxx> #include <vcl/toolbox.hxx> #include <vcl/idle.hxx> diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx index b95222cd095a..f6d838024ec2 100644 --- a/sw/source/uibase/inc/optpage.hxx +++ b/sw/source/uibase/inc/optpage.hxx @@ -21,6 +21,7 @@ #include <sfx2/tabdlg.hxx> #include <vcl/button.hxx> +#include <vcl/layout.hxx> #include <vcl/lstbox.hxx> #include <vcl/field.hxx> #include <vcl/fixed.hxx> diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx index acf893bcac0a..6e5cbc4b0fdd 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -79,6 +79,7 @@ #include <map> #include <com/sun/star/document/XDocumentLanguages.hpp> +#include <com/sun/star/frame/XFrame.hpp> #include <com/sun/star/frame/XStorable.hpp> #include <com/sun/star/i18n/ScriptType.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx index 2eaaecee0eb7..71bcf99cc62b 100644 --- a/sw/source/uibase/misc/redlndlg.cxx +++ b/sw/source/uibase/misc/redlndlg.cxx @@ -44,6 +44,7 @@ #include <vector> #include <svx/svxdlg.hxx> #include <svx/dialogs.hrc> +#include <vcl/layout.hxx> #include <vcl/lstbox.hxx> #include <bitmaps.hlst> diff --git a/sw/source/uibase/misc/swruler.cxx b/sw/source/uibase/misc/swruler.cxx index 03acdf57c3ca..f9aeac807745 100644 --- a/sw/source/uibase/misc/swruler.cxx +++ b/sw/source/uibase/misc/swruler.cxx @@ -20,6 +20,7 @@ #include <view.hxx> #include <cmdid.h> #include <sfx2/request.hxx> +#include <vcl/commandevent.hxx> #include <vcl/svapp.hxx> #include <vcl/window.hxx> #include <vcl/settings.hxx> diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx index 5828a4997eff..8a331f173687 100644 --- a/sw/source/uibase/ribbar/workctrl.cxx +++ b/sw/source/uibase/ribbar/workctrl.cxx @@ -40,6 +40,7 @@ #include <cppuhelper/queryinterface.hxx> #include <cppuhelper/supportsservice.hxx> #include <svl/imageitm.hxx> +#include <vcl/fixed.hxx> #include <vcl/lstbox.hxx> #include <vcl/settings.hxx> #include <rtl/ustring.hxx> @@ -53,6 +54,8 @@ #include <toolkit/helper/vclunohelper.hxx> #include <svx/srchdlg.hxx> #include <com/sun/star/util/XURLTransformer.hpp> +#include <com/sun/star/frame/XDispatchProvider.hpp> +#include <com/sun/star/frame/XFrame.hpp> // Size check #define NAVI_ENTRIES 20 diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx index dbf9df01a536..1132b2da61ab 100644 --- a/sw/source/uibase/shells/annotsh.cxx +++ b/sw/source/uibase/shells/annotsh.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/i18n/TextConversionOption.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> +#include <com/sun/star/awt/XWindow.hpp> #include <i18nlangtag/mslangid.hxx> #include <i18nutil/transliteration.hxx> diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index 768efcb4db2b..9bc1292501ee 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -44,6 +44,7 @@ #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/awt/XWindow.hpp> #include <comphelper/propertysequence.hxx> #include <swtypes.hxx> #include <view.hxx> diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index 3045978009be..3b7b5d41d57e 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -53,6 +53,7 @@ #include <sfx2/htmlmode.hxx> #include <svtools/htmlcfg.hxx> #include <com/sun/star/embed/Aspects.hpp> +#include <com/sun/star/embed/XEmbeddedObject.hpp> #include <comphelper/classids.hxx> #include <editeng/acorrcfg.hxx> diff --git a/sw/source/uibase/sidebar/PageFormatPanel.cxx b/sw/source/uibase/sidebar/PageFormatPanel.cxx index 97754775ab3d..701f801c8f5e 100644 --- a/sw/source/uibase/sidebar/PageFormatPanel.cxx +++ b/sw/source/uibase/sidebar/PageFormatPanel.cxx @@ -31,6 +31,7 @@ #include <sfx2/sidebar/ControlFactory.hxx> #include <sfx2/dispatch.hxx> #include <sfx2/bindings.hxx> +#include <sfx2/module.hxx> #include <sfx2/viewsh.hxx> #include <sfx2/objsh.hxx> #include <sfx2/viewfrm.hxx> diff --git a/sw/source/uibase/sidebar/PageMarginControl.cxx b/sw/source/uibase/sidebar/PageMarginControl.cxx index a42ede147425..9b0e66da58dc 100644 --- a/sw/source/uibase/sidebar/PageMarginControl.cxx +++ b/sw/source/uibase/sidebar/PageMarginControl.cxx @@ -28,6 +28,7 @@ #include <editeng/sizeitem.hxx> #include <sfx2/app.hxx> #include <sfx2/dispatch.hxx> +#include <sfx2/module.hxx> #include <sfx2/viewfrm.hxx> #include <svx/svxids.hrc> #include <svx/pageitem.hxx> @@ -39,6 +40,7 @@ #include <com/sun/star/document/XUndoManagerSupplier.hpp> #include <com/sun/star/beans/NamedValue.hpp> +#include <com/sun/star/frame/XFrame.hpp> #include <vcl/settings.hxx> diff --git a/sw/source/uibase/sidebar/PageOrientationControl.cxx b/sw/source/uibase/sidebar/PageOrientationControl.cxx index c553d04ce914..f6eba0d97e2d 100644 --- a/sw/source/uibase/sidebar/PageOrientationControl.cxx +++ b/sw/source/uibase/sidebar/PageOrientationControl.cxx @@ -21,6 +21,7 @@ #include "PageMarginControl.hxx" #include <com/sun/star/document/XUndoManager.hpp> #include <com/sun/star/document/XUndoManagerSupplier.hpp> +#include <com/sun/star/frame/XFrame.hpp> #include <swtypes.hxx> #include <sfx2/viewsh.hxx> diff --git a/sw/source/uibase/sidebar/PageSizeControl.cxx b/sw/source/uibase/sidebar/PageSizeControl.cxx index 7afe30a4d859..c5c7a9bbda73 100644 --- a/sw/source/uibase/sidebar/PageSizeControl.cxx +++ b/sw/source/uibase/sidebar/PageSizeControl.cxx @@ -32,6 +32,7 @@ #include <sfx2/app.hxx> #include <sfx2/bindings.hxx> #include <sfx2/dispatch.hxx> +#include <sfx2/module.hxx> #include <sfx2/viewfrm.hxx> #include <vcl/settings.hxx> diff --git a/sw/source/uibase/sidebar/StylePresetsPanel.cxx b/sw/source/uibase/sidebar/StylePresetsPanel.cxx index 659df9f73d6a..f296fe1cb3e4 100644 --- a/sw/source/uibase/sidebar/StylePresetsPanel.cxx +++ b/sw/source/uibase/sidebar/StylePresetsPanel.cxx @@ -20,6 +20,7 @@ #include <svx/dlgutil.hxx> #include <svx/rulritem.hxx> #include <vcl/virdev.hxx> +#include <vcl/svapp.hxx> #include <sfx2/sidebar/ControlFactory.hxx> #include <sfx2/dispatch.hxx> diff --git a/sw/source/uibase/sidebar/ThemePanel.cxx b/sw/source/uibase/sidebar/ThemePanel.cxx index 84883940a290..39d4c4800654 100644 --- a/sw/source/uibase/sidebar/ThemePanel.cxx +++ b/sw/source/uibase/sidebar/ThemePanel.cxx @@ -31,6 +31,7 @@ #include <editeng/fontitem.hxx> #include <editeng/boxitem.hxx> #include <editeng/borderline.hxx> +#include <vcl/svapp.hxx> #include <vcl/virdev.hxx> #include <charatr.hxx> #include <charfmt.hxx> diff --git a/sw/source/uibase/table/chartins.cxx b/sw/source/uibase/table/chartins.cxx index e05cf11fc238..8d3ad82cf38f 100644 --- a/sw/source/uibase/table/chartins.cxx +++ b/sw/source/uibase/table/chartins.cxx @@ -47,7 +47,10 @@ #include <cppuhelper/bootstrap.hxx> #include <cppuhelper/component_context.hxx> #include <comphelper/propertysequence.hxx> +#include <com/sun/star/awt/Point.hpp> +#include <com/sun/star/awt/XWindow.hpp> #include <com/sun/star/chart2/data/XDataProvider.hpp> +#include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/lang/XMultiComponentFactory.hpp> #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> diff --git a/sw/source/uibase/table/tablemgr.cxx b/sw/source/uibase/table/tablemgr.cxx index da16e077bad8..882f4f99329d 100644 --- a/sw/source/uibase/table/tablemgr.cxx +++ b/sw/source/uibase/table/tablemgr.cxx @@ -23,6 +23,7 @@ #include <com/sun/star/chart2/XChartDocument.hpp> #include <com/sun/star/beans/PropertyState.hpp> #include <com/sun/star/embed/EmbedVerbs.hpp> +#include <com/sun/star/embed/XComponentSupplier.hpp> #include <sot/storage.hxx> #include <comphelper/classids.hxx> diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx index b94b017c2ad4..681557a9edc6 100644 --- a/sw/source/uibase/uiview/pview.cxx +++ b/sw/source/uibase/uiview/pview.cxx @@ -40,6 +40,7 @@ #include <svx/dlgutil.hxx> #include <svx/zoomslideritem.hxx> #include <svx/svxids.hrc> +#include <tools/svborder.hxx> #include <swwait.hxx> #include <globdoc.hxx> diff --git a/sw/source/uibase/uiview/srcview.cxx b/sw/source/uibase/uiview/srcview.cxx index 388406d7ce22..d96b18fb6972 100644 --- a/sw/source/uibase/uiview/srcview.cxx +++ b/sw/source/uibase/uiview/srcview.cxx @@ -18,6 +18,7 @@ */ #include <rtl/tencinfo.h> +#include <osl/diagnose.h> #include <hintids.hxx> #include <com/sun/star/ui/dialogs/TemplateDescription.hpp> #include <unotools/tempfile.hxx> @@ -28,6 +29,7 @@ #include <vcl/wrkwin.hxx> #include <vcl/metric.hxx> #include <vcl/textview.hxx> +#include <vcl/svapp.hxx> #include <svtools/ctrltool.hxx> #include <svl/intitem.hxx> #include <svl/stritem.hxx> diff --git a/sw/source/uibase/uiview/swcli.cxx b/sw/source/uibase/uiview/swcli.cxx index 4d896b52792b..bd0692cb10ad 100644 --- a/sw/source/uibase/uiview/swcli.cxx +++ b/sw/source/uibase/uiview/swcli.cxx @@ -18,6 +18,7 @@ */ #include <com/sun/star/embed/NoVisualAreaSizeException.hpp> +#include <com/sun/star/embed/XEmbeddedObject.hpp> #include <wrtsh.hxx> #include <doc.hxx> #include <IDocumentSettingAccess.hxx> diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index 3ac2ebcadd3e..9e9d30b09f0b 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -66,6 +66,7 @@ #include <hhcwrp.hxx> #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> +#include <com/sun/star/ui/ContextMenuExecuteEvent.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/frame/XDispatch.hpp> #include <com/sun/star/frame/XDispatchProvider.hpp> diff --git a/sw/source/uibase/uiview/viewport.cxx b/sw/source/uibase/uiview/viewport.cxx index 1e20b2caa231..09697b2c96ed 100644 --- a/sw/source/uibase/uiview/viewport.cxx +++ b/sw/source/uibase/uiview/viewport.cxx @@ -21,6 +21,7 @@ #include <hintids.hxx> +#include <vcl/commandevent.hxx> #include <vcl/help.hxx> #include <vcl/settings.hxx> @@ -50,6 +51,7 @@ #include <basegfx/utils/zoomtools.hxx> #include <comphelper/lok.hxx> #include <vcl/weld.hxx> +#include <tools/svborder.hxx> #include "viewfunc.hxx" diff --git a/sw/source/uibase/uno/unodispatch.cxx b/sw/source/uibase/uno/unodispatch.cxx index c97431bc9c45..0d4db10ab71a 100644 --- a/sw/source/uibase/uno/unodispatch.cxx +++ b/sw/source/uibase/uno/unodispatch.cxx @@ -19,6 +19,8 @@ #include <config_features.h> +#include <com/sun/star/view/XSelectionSupplier.hpp> + #include <vcl/svapp.hxx> #include <sfx2/viewfrm.hxx> #include <sfx2/dispatch.hxx> diff --git a/sw/source/uibase/utlui/tmplctrl.cxx b/sw/source/uibase/utlui/tmplctrl.cxx index 43b046c698d8..11b304d660be 100644 --- a/sw/source/uibase/utlui/tmplctrl.cxx +++ b/sw/source/uibase/utlui/tmplctrl.cxx @@ -22,6 +22,7 @@ #include <svl/stritem.hxx> #include <sfx2/dispatch.hxx> #include <sfx2/viewfrm.hxx> +#include <vcl/commandevent.hxx> #include <vcl/status.hxx> #include <swtypes.hxx> |