diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-29 10:51:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-29 17:27:23 +0100 |
commit | 2cd6ff8a54b0db76b2f4c5f75988367cfb0feaf0 (patch) | |
tree | dd828b1b677f78db2da39e0e5ad2b6db6bb5c432 /sfx2 | |
parent | 93bf9aee23706a36cabbe51c2677752f93d57812 (diff) |
remove unnecessary includes
Change-Id: Ia4a622b34ff3f71963cff7a1aa8658a4df12f04f
Reviewed-on: https://gerrit.libreoffice.org/81676
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
28 files changed, 21 insertions, 15 deletions
diff --git a/sfx2/source/appl/appbas.cxx b/sfx2/source/appl/appbas.cxx index 7fe75421ecfc..89063f729b3a 100644 --- a/sfx2/source/appl/appbas.cxx +++ b/sfx2/source/appl/appbas.cxx @@ -38,7 +38,6 @@ #include <svl/whiter.hxx> #include <basic/sbmeth.hxx> #include <basic/sbstar.hxx> -#include <vcl/wrkwin.hxx> #include <basic/sbuno.hxx> #include <svtools/sfxecode.hxx> #include <svtools/ehdl.hxx> diff --git a/sfx2/source/appl/appbaslib.cxx b/sfx2/source/appl/appbaslib.cxx index 1e8654eeb530..7b3dd295d4ee 100644 --- a/sfx2/source/appl/appbaslib.cxx +++ b/sfx2/source/appl/appbaslib.cxx @@ -28,6 +28,7 @@ #include <basic/basmgr.hxx> #include <tools/diagnose_ex.h> #include <cppuhelper/weak.hxx> +#include <com/sun/star/uno/XComponentContext.hpp> using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; diff --git a/sfx2/source/appl/appdata.cxx b/sfx2/source/appl/appdata.cxx index cc6a0ce1a1ee..5cd097484940 100644 --- a/sfx2/source/appl/appdata.cxx +++ b/sfx2/source/appl/appdata.cxx @@ -23,7 +23,6 @@ #include <svl/stritem.hxx> #include <vcl/menu.hxx> -#include <vcl/wrkwin.hxx> #include <comphelper/processfactory.hxx> #include <sfx2/viewfrm.hxx> diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx index 683bbc24fb18..9c87c2b98093 100644 --- a/sfx2/source/appl/appdde.cxx +++ b/sfx2/source/appl/appdde.cxx @@ -23,7 +23,6 @@ #include <rtl/uri.hxx> #include <sal/log.hxx> #include <sot/exchange.hxx> -#include <vcl/wrkwin.hxx> #include <svl/rectitem.hxx> #include <svl/eitem.hxx> #include <svl/intitem.hxx> diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx index b96fe74dd544..3b2234e8545b 100644 --- a/sfx2/source/appl/appinit.cxx +++ b/sfx2/source/appl/appinit.cxx @@ -47,6 +47,7 @@ #include <cppuhelper/supportsservice.hxx> #include <vcl/edit.hxx> +#include <vcl/svapp.hxx> #include <sfx2/unoctitm.hxx> #include <appdata.hxx> diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index 761b3a816dd8..5ef87f45cc91 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -48,7 +48,6 @@ #include <comphelper/storagehelper.hxx> #include <comphelper/synchronousdispatch.hxx> -#include <vcl/wrkwin.hxx> #include <svl/intitem.hxx> #include <svl/stritem.hxx> #include <svl/eitem.hxx> diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 30495736f821..334c10a07ecd 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -62,6 +62,7 @@ #include <tools/svlibrary.h> #include <tools/diagnose_ex.h> #include <vcl/sysdata.hxx> +#include <vcl/svapp.hxx> #include <vcl/weld.hxx> #include <svl/intitem.hxx> #include <svl/eitem.hxx> diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx index cb6529fcfde2..9c56c944b990 100644 --- a/sfx2/source/appl/fileobj.cxx +++ b/sfx2/source/appl/fileobj.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <vcl/wrkwin.hxx> #include <tools/urlobj.hxx> #include <tools/stream.hxx> #include <sot/formats.hxx> diff --git a/sfx2/source/appl/fileobj.hxx b/sfx2/source/appl/fileobj.hxx index eca397aca82b..edcb56131214 100644 --- a/sfx2/source/appl/fileobj.hxx +++ b/sfx2/source/appl/fileobj.hxx @@ -24,6 +24,7 @@ #include <sfx2/linkmgr.hxx> class Graphic; +struct ImplSVEvent; namespace sfx2 { class FileDialogHelper; } class SvFileObject : public sfx2::SvLinkSource diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx index 8e8e210a2cf6..2284c8b16e16 100644 --- a/sfx2/source/appl/sfxpicklist.cxx +++ b/sfx2/source/appl/sfxpicklist.cxx @@ -32,6 +32,7 @@ #include <svl/eitem.hxx> #include <vcl/gdimtf.hxx> #include <vcl/pngwrite.hxx> +#include <vcl/svapp.hxx> #include <officecfg/Office/Common.hxx> #include <osl/file.hxx> #include <unotools/localfilehelper.hxx> diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index 65116d668add..349302f4e159 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -39,6 +39,7 @@ #include <basic/sbxobj.hxx> #include <basic/sbxmeth.hxx> #include <basic/sbxcore.hxx> +#include <vcl/svapp.hxx> #include <vcl/weld.hxx> #include <rtl/ustring.hxx> #include <rtl/ustrbuf.hxx> diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 4543f70571a6..1180050d6cc7 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -29,6 +29,7 @@ #include <svl/intitem.hxx> #include <svl/stritem.hxx> #include <svl/visitem.hxx> +#include <vcl/svapp.hxx> #include <com/sun/star/util/URLTransformer.hpp> #include <com/sun/star/util/XURLTransformer.hpp> #include <com/sun/star/frame/XDispatch.hpp> diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 4957f7168c50..7d8e3b01f34c 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -770,9 +770,8 @@ SfxMailModel::SendMailResult SfxMailModel::Send( const css::uno::Reference< css: css::uno::Reference< css::awt::XWindow > xParentWindow = xFrame->getContainerWindow(); SolarMutexGuard aGuard; - VclPtr<vcl::Window> pParentWindow = VCLUnoHelper::GetWindow( xParentWindow ); - std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(pParentWindow ? pParentWindow->GetFrameWeld() : nullptr, "sfx/ui/errorfindemaildialog.ui")); + std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(Application::GetFrameWeld(xParentWindow), "sfx/ui/errorfindemaildialog.ui")); std::unique_ptr<weld::MessageDialog> xBox(xBuilder->weld_message_dialog("ErrorFindEmailDialog")); xBox->run(); eResult = SEND_MAIL_CANCELLED; diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index 9f3a75c83a94..9ce69c407de6 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -18,6 +18,7 @@ */ #include <comphelper/string.hxx> +#include <vcl/svapp.hxx> #include <vcl/weld.hxx> #include <svl/eitem.hxx> #include <svl/intitem.hxx> diff --git a/sfx2/source/dialog/passwd.cxx b/sfx2/source/dialog/passwd.cxx index 7d89d5c90376..583e82e3c989 100644 --- a/sfx2/source/dialog/passwd.cxx +++ b/sfx2/source/dialog/passwd.cxx @@ -21,6 +21,7 @@ #include <sfxtypes.hxx> #include <sfx2/sfxresid.hxx> #include <sfx2/strings.hrc> +#include <vcl/svapp.hxx> #include <vcl/weld.hxx> IMPL_LINK_NOARG(SfxPasswordDialog, EditModifyHdl, weld::Entry&, void) diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index 77b9ea1f4fd9..c3a550566bf7 100644 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -23,7 +23,6 @@ #include <string> -#include <vcl/wrkwin.hxx> #include <unotools/viewoptions.hxx> #include <sal/log.hxx> diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index c8bafb10317f..b4c8f4393e8d 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -23,6 +23,7 @@ #include <vcl/event.hxx> #include <vcl/menu.hxx> #include <vcl/settings.hxx> +#include <vcl/svapp.hxx> #include <svl/intitem.hxx> #include <svl/stritem.hxx> #include <svl/style.hxx> diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx index 8d66dec30004..573ee808d474 100644 --- a/sfx2/source/doc/guisaveas.cxx +++ b/sfx2/source/doc/guisaveas.cxx @@ -70,6 +70,7 @@ #include <comphelper/sequenceashashmap.hxx> #include <comphelper/mimeconfighelper.hxx> #include <comphelper/lok.hxx> +#include <vcl/svapp.hxx> #include <vcl/weld.hxx> #include <vcl/window.hxx> #include <toolkit/awt/vclxwindow.hxx> diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 6aa2b644b8f3..24cfa8afd294 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -50,8 +50,6 @@ #include <svl/intitem.hxx> #include <svl/eitem.hxx> #include <svl/visitem.hxx> -#include <vcl/weld.hxx> -#include <vcl/wrkwin.hxx> #include <svtools/sfxecode.hxx> #include <svtools/ehdl.hxx> #include <sal/log.hxx> @@ -65,6 +63,8 @@ #include <svtools/asynclink.hxx> #include <svtools/DocumentToGraphicRenderer.hxx> #include <vcl/gdimtf.hxx> +#include <vcl/svapp.hxx> +#include <vcl/weld.hxx> #include <comphelper/fileformat.h> #include <comphelper/documentconstants.hxx> #include <comphelper/propertyvalue.hxx> diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index 3660e52fc547..1f1ead6642ed 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -37,8 +37,8 @@ #include <rtl/instance.hxx> #include <sal/log.hxx> #include <vcl/weld.hxx> -#include <vcl/wrkwin.hxx> #include <vcl/svapp.hxx> +#include <vcl/window.hxx> #include <svl/eitem.hxx> #include <svl/lstner.hxx> #include <sfx2/sfxhelp.hxx> diff --git a/sfx2/source/inc/sfxtypes.hxx b/sfx2/source/inc/sfxtypes.hxx index 6ee10ed0e41f..3ee9a1084420 100644 --- a/sfx2/source/inc/sfxtypes.hxx +++ b/sfx2/source/inc/sfxtypes.hxx @@ -20,10 +20,7 @@ #define INCLUDED_SFX2_SOURCE_INC_SFXTYPES_HXX #include <sal/config.h> - #include <sal/log.hxx> -#include <vcl/svapp.hxx> -#include <vcl/wrkwin.hxx> #if defined(DBG_UTIL) diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx index f126f4218a1a..0938b7caf762 100644 --- a/sfx2/source/inet/inettbc.cxx +++ b/sfx2/source/inet/inettbc.cxx @@ -28,6 +28,7 @@ #include <svl/stritem.hxx> #include <unotools/historyoptions.hxx> #include <vcl/toolbox.hxx> +#include <vcl/svapp.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <osl/file.hxx> #include <osl/thread.hxx> diff --git a/sfx2/source/notify/hintpost.cxx b/sfx2/source/notify/hintpost.cxx index 128573280cd3..348ed172a871 100644 --- a/sfx2/source/notify/hintpost.cxx +++ b/sfx2/source/notify/hintpost.cxx @@ -22,6 +22,7 @@ #include <arrdecl.hxx> #include <sfx2/app.hxx> #include <sfx2/request.hxx> +#include <vcl/svapp.hxx> #include <sfxtypes.hxx> diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx index 9825a92eac10..96b00f54939e 100644 --- a/sfx2/source/sidebar/TabBar.cxx +++ b/sfx2/source/sidebar/TabBar.cxx @@ -36,7 +36,6 @@ #include <vcl/gradient.hxx> #include <vcl/image.hxx> #include <vcl/svapp.hxx> -#include <vcl/wrkwin.hxx> #include <tools/svborder.hxx> #include <svtools/acceleratorexecute.hxx> diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx index 3d7bb290e781..5559034e0259 100644 --- a/sfx2/source/statbar/stbitem.cxx +++ b/sfx2/source/statbar/stbitem.cxx @@ -31,6 +31,7 @@ #include <vcl/commandevent.hxx> #include <vcl/event.hxx> #include <vcl/status.hxx> +#include <vcl/svapp.hxx> #include <sfx2/app.hxx> #include <sfx2/stbitem.hxx> diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index 50db8dd17ab7..dd5aad9f838a 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -49,6 +49,7 @@ #include <svl/imageitm.hxx> #include <svl/visitem.hxx> #include <svl/urlbmk.hxx> +#include <vcl/svapp.hxx> #include <vcl/toolbox.hxx> #include <unotools/moduleoptions.hxx> diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 19b35904f16f..fafe5df417dc 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -36,6 +36,7 @@ #include <officecfg/Setup.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <vcl/splitwin.hxx> +#include <vcl/wrkwin.hxx> #include <unotools/moduleoptions.hxx> #include <svl/intitem.hxx> #include <svl/visitem.hxx> diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index 608badc8ef16..31befa4e2987 100644 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -25,6 +25,7 @@ #include <sal/log.hxx> #include <svl/itempool.hxx> +#include <vcl/svapp.hxx> #include <vcl/weld.hxx> #include <svtools/prnsetup.hxx> #include <svl/flagitem.hxx> |