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 /sfx2/source | |
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 'sfx2/source')
29 files changed, 37 insertions, 1 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index 0c5288289098..ec7aa6e80612 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -19,6 +19,7 @@ #include <com/sun/star/uno/Reference.h> #include <com/sun/star/beans/PropertyValue.hpp> +#include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/frame/FrameSearchFlag.hpp> #include <com/sun/star/frame/XDispatchProvider.hpp> #include <com/sun/star/util/XCloseable.hpp> @@ -39,6 +40,7 @@ #include <com/sun/star/packages/WrongPasswordException.hpp> #include <com/sun/star/uno/Sequence.h> #include <com/sun/star/ui/dialogs/TemplateDescription.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <rtl/ustring.hxx> #include <comphelper/processfactory.hxx> diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index bfe3fb24abc3..b26578c5ea52 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -128,6 +128,7 @@ #include <sfx2/notebookbar/SfxNotebookBar.hxx> #include <sfx2/sidebar/SidebarController.hxx> #include <sfx2/safemode.hxx> +#include <sfx2/sfxuno.hxx> #include <comphelper/types.hxx> #include <officecfg/Office/Common.hxx> diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index fcd971dcc0a5..f272a938775d 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -75,7 +75,6 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::ucb; using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::registry; using namespace ::com::sun::star::frame; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::io; diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index 4dc55e2a126d..cd5686e8154a 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/frame/XController.hpp> #include <com/sun/star/frame/XFrame.hpp> #include <com/sun/star/util/XCloseable.hpp> +#include <com/sun/star/beans/NamedValue.hpp> #include <comphelper/string.hxx> #include <cppuhelper/implbase.hxx> #include <sal/log.hxx> diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx index 13ddc3db1f5f..41af9a85031e 100644 --- a/sfx2/source/appl/fileobj.cxx +++ b/sfx2/source/appl/fileobj.cxx @@ -34,6 +34,7 @@ #include <sfx2/docfac.hxx> #include <com/sun/star/document/XTypeDetection.hpp> #include <com/sun/star/container/XNameAccess.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <unotools/mediadescriptor.hxx> #include <comphelper/processfactory.hxx> #include <sfx2/linkmgr.hxx> diff --git a/sfx2/source/appl/shutdownicon.hxx b/sfx2/source/appl/shutdownicon.hxx index eafeb9e25149..af3a0c17a9bd 100644 --- a/sfx2/source/appl/shutdownicon.hxx +++ b/sfx2/source/appl/shutdownicon.hxx @@ -26,6 +26,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/beans/XFastPropertySet.hpp> +#include <com/sun/star/uno/XComponentContext.hpp> #include <rtl/string.hxx> #include <rtl/ustring.hxx> #include <osl/mutex.hxx> diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index 3767e57d768d..271584a0ceff 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -28,6 +28,7 @@ #include <com/sun/star/container/XContainerQuery.hpp> #include <com/sun/star/io/XInputStream.hpp> #include <com/sun/star/task/XInteractionHandler.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <comphelper/sequenceashashmap.hxx> diff --git a/sfx2/source/control/charwin.cxx b/sfx2/source/control/charwin.cxx index a2c8626c45bd..695047c11fe9 100644 --- a/sfx2/source/control/charwin.cxx +++ b/sfx2/source/control/charwin.cxx @@ -30,6 +30,8 @@ #include <sfx2/sfxresid.hxx> #include <sfx2/strings.hrc> +#include <com/sun/star/beans/PropertyValue.hpp> + using namespace com::sun::star; SvxCharView::SvxCharView(const VclPtr<VirtualDevice>& rVirDev) diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx index 830579b306cb..dfab1b879eda 100644 --- a/sfx2/source/control/request.cxx +++ b/sfx2/source/control/request.cxx @@ -43,6 +43,7 @@ #include <sfx2/msg.hxx> #include <sfx2/viewfrm.hxx> #include <sfx2/objface.hxx> +#include <sfx2/sfxuno.hxx> #include <rtl/strbuf.hxx> diff --git a/sfx2/source/control/sfxstatuslistener.cxx b/sfx2/source/control/sfxstatuslistener.cxx index cdb943f24d34..79263071914d 100644 --- a/sfx2/source/control/sfxstatuslistener.cxx +++ b/sfx2/source/control/sfxstatuslistener.cxx @@ -34,6 +34,7 @@ #include <com/sun/star/frame/status/ItemStatus.hpp> #include <com/sun/star/frame/status/ItemState.hpp> #include <com/sun/star/frame/status/Visibility.hpp> +#include <com/sun/star/frame/XDispatchProvider.hpp> #include <sfx2/viewfrm.hxx> #include <sfx2/dispatch.hxx> diff --git a/sfx2/source/dialog/documentfontsdialog.cxx b/sfx2/source/dialog/documentfontsdialog.cxx index d0515007b296..73e9aad8471d 100644 --- a/sfx2/source/dialog/documentfontsdialog.cxx +++ b/sfx2/source/dialog/documentfontsdialog.cxx @@ -22,6 +22,7 @@ #include <sfx2/objsh.hxx> #include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> using namespace ::com::sun::star; diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 361e66f688b3..a39fb30f51cd 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -36,6 +36,8 @@ #include <com/sun/star/ui/dialogs/XFilePicker3.hpp> #include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/embed/ElementModes.hpp> diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx index 5114b033d7a0..d9ebd67973f1 100644 --- a/sfx2/source/dialog/versdlg.cxx +++ b/sfx2/source/dialog/versdlg.cxx @@ -21,6 +21,7 @@ #include <com/sun/star/document/XCmisDocument.hpp> #include <com/sun/star/util/RevisionTag.hpp> +#include <com/sun/star/beans/NamedValue.hpp> #include <unotools/localedatawrapper.hxx> #include <svl/eitem.hxx> diff --git a/sfx2/source/doc/docfac.cxx b/sfx2/source/doc/docfac.cxx index 17ccf55e2db5..313065b3cab5 100644 --- a/sfx2/source/doc/docfac.cxx +++ b/sfx2/source/doc/docfac.cxx @@ -25,6 +25,7 @@ #include <com/sun/star/frame/ModuleManager.hpp> #include <com/sun/star/frame/XLoadable.hpp> #include <com/sun/star/frame/XStorable.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <comphelper/processfactory.hxx> #include <unotools/pathoptions.hxx> #include <unotools/moduleoptions.hxx> diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 81df58aa2e40..a389396caf56 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -64,11 +64,13 @@ #include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/ucb/XSimpleFileAccess.hpp> #include <com/sun/star/lang/XInitialization.hpp> +#include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <com/sun/star/ucb/InsertCommandArgument.hpp> #include <com/sun/star/ucb/NameClash.hpp> #include <com/sun/star/ucb/TransferInfo.hpp> #include <com/sun/star/ucb/OpenCommandArgument2.hpp> #include <com/sun/star/ucb/OpenMode.hpp> +#include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/security/DocumentSignatureInformation.hpp> #include <com/sun/star/security/DocumentDigitalSignatures.hpp> @@ -127,6 +129,7 @@ #include <sfx2/objsh.hxx> #include <sfx2/docfac.hxx> #include <sfx2/sfxsids.hrc> +#include <sfx2/sfxuno.hxx> #include <openflag.hxx> #include <officecfg/Office/Common.hxx> #include <comphelper/propertysequence.hxx> diff --git a/sfx2/source/doc/docundomanager.cxx b/sfx2/source/doc/docundomanager.cxx index 9d08efcfd6a4..33498cfd666b 100644 --- a/sfx2/source/doc/docundomanager.cxx +++ b/sfx2/source/doc/docundomanager.cxx @@ -25,6 +25,7 @@ #include <sfx2/viewsh.hxx> #include <sfx2/bindings.hxx> #include <com/sun/star/lang/NoSupportException.hpp> +#include <com/sun/star/lang/NotInitializedException.hpp> #include <svl/undo.hxx> #include <tools/diagnose_ex.h> #include <framework/undomanagerhelper.hxx> diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx index f925d71bfa17..5c8b57234319 100644 --- a/sfx2/source/doc/guisaveas.cxx +++ b/sfx2/source/doc/guisaveas.cxx @@ -46,6 +46,7 @@ #include <com/sun/star/util/XModifyListener.hpp> #include <com/sun/star/util/XModifiable.hpp> #include <com/sun/star/util/XModifyBroadcaster.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/util/XCloneable.hpp> #include <com/sun/star/io/IOException.hpp> @@ -82,6 +83,7 @@ #include <sfx2/app.hxx> #include <sfx2/objsh.hxx> #include <sfx2/request.hxx> +#include <sfx2/sfxuno.hxx> #include <sfxtypes.hxx> #include <alienwarn.hxx> diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 1a13ff4d60e7..882908f3fc82 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -99,6 +99,7 @@ #include <sfx2/viewfrm.hxx> #include <sfx2/viewsh.hxx> #include <sfx2/ctrlitem.hxx> +#include <sfx2/sfxuno.hxx> #include <arrdecl.hxx> #include <sfx2/module.hxx> #include <sfx2/docfac.hxx> diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 97e3734835a9..3f59ecb9a3e3 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -97,6 +97,7 @@ #include <sfx2/objface.hxx> #include <sfx2/checkin.hxx> #include <sfx2/infobar.hxx> +#include <sfx2/sfxuno.hxx> #include <SfxRedactionHelper.hxx> #include <com/sun/star/document/XDocumentSubStorageSupplier.hpp> diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index c3c4a0cd4259..c2429a78a6b2 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -123,6 +123,7 @@ #include <sfx2/sfxsids.hrc> #include <sfx2/module.hxx> #include <sfx2/dispatch.hxx> +#include <sfx2/sfxuno.hxx> #include <openflag.hxx> #include <helper.hxx> #include <sfx2/event.hxx> diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index dc99a84414a8..96c1584bc193 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -63,6 +63,7 @@ #include <com/sun/star/document/XEmbeddedScripts.hpp> #include <com/sun/star/document/XScriptInvocationContext.hpp> #include <com/sun/star/ucb/ContentCreationException.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <svl/urihelper.hxx> #include <unotools/pathoptions.hxx> @@ -93,6 +94,7 @@ #include <sfx2/msg.hxx> #include <appbaslib.hxx> #include <sfx2/sfxbasemodel.hxx> +#include <sfx2/sfxuno.hxx> #include <shellimpl.hxx> #include <sfx2/notebookbar/SfxNotebookBar.hxx> diff --git a/sfx2/source/doc/ownsubfilterservice.cxx b/sfx2/source/doc/ownsubfilterservice.cxx index 7edb7dc777b7..ee002aacfd93 100644 --- a/sfx2/source/doc/ownsubfilterservice.cxx +++ b/sfx2/source/doc/ownsubfilterservice.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/document/XFilter.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/IllegalArgumentException.hpp> +#include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/io/XStream.hpp> diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 8537b43de933..67c6a009f090 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -32,9 +32,11 @@ #include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/lang/NoSupportException.hpp> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> +#include <com/sun/star/lang/NotInitializedException.hpp> #include <com/sun/star/frame/Desktop.hpp> #include <com/sun/star/frame/IllegalArgumentIOException.hpp> #include <com/sun/star/frame/XUntitledNumbers.hpp> +#include <com/sun/star/frame/DoubleInitializationException.hpp> #include <com/sun/star/embed/XTransactionBroadcaster.hpp> #include <com/sun/star/embed/XStorage.hpp> #include <com/sun/star/embed/EmbedMapUnits.hpp> @@ -56,6 +58,7 @@ #include <com/sun/star/ucb/CommandAbortedException.hpp> #include <com/sun/star/util/XCloneable.hpp> #include <com/sun/star/util/InvalidStateException.hpp> +#include <com/sun/star/util/CloseVetoException.hpp> #include <comphelper/enumhelper.hxx> #include <cppuhelper/implbase.hxx> diff --git a/sfx2/source/doc/sfxmodelfactory.cxx b/sfx2/source/doc/sfxmodelfactory.cxx index 1cd797b8f6b8..292e2fd480a2 100644 --- a/sfx2/source/doc/sfxmodelfactory.cxx +++ b/sfx2/source/doc/sfxmodelfactory.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/lang/XInitialization.hpp> +#include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <comphelper/namedvaluecollection.hxx> #include <cppuhelper/implbase.hxx> diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index f713b4966b5e..5d29aab49869 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -44,6 +44,7 @@ #include <vcl/svapp.hxx> #include <vcl/weld.hxx> +#include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/configuration/theDefaultProvider.hpp> #include <com/sun/star/document/MacroExecMode.hpp> diff --git a/sfx2/source/inc/docundomanager.hxx b/sfx2/source/inc/docundomanager.hxx index 51b564e6e683..580a865c8a8f 100644 --- a/sfx2/source/inc/docundomanager.hxx +++ b/sfx2/source/inc/docundomanager.hxx @@ -25,6 +25,7 @@ #include <com/sun/star/document/XUndoManager.hpp> #include <cppuhelper/implbase.hxx> +#include <vcl/svapp.hxx> #include <memory> diff --git a/sfx2/source/styles/StyleManager.cxx b/sfx2/source/styles/StyleManager.cxx index 346c0e5235ee..6a78c09af54c 100644 --- a/sfx2/source/styles/StyleManager.cxx +++ b/sfx2/source/styles/StyleManager.cxx @@ -8,6 +8,7 @@ */ #include <sfx2/StyleManager.hxx> +#include <sfx2/objsh.hxx> namespace sfx2 { diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index 7bedde6eb23e..8cf03f6daffc 100644 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -49,6 +49,7 @@ #include <sfx2/docfile.hxx> #include <sfx2/docfilt.hxx> #include <sfx2/strings.hrc> +#include <sfx2/sfxuno.hxx> #include <toolkit/awt/vclxdevice.hxx> diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 47fbfd7afbf7..029f12d15765 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -38,6 +38,7 @@ #include <com/sun/star/container/XContainerQuery.hpp> #include <com/sun/star/frame/XStorable.hpp> #include <com/sun/star/datatransfer/clipboard/XClipboard.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <cppuhelper/implbase.hxx> #include <osl/file.hxx> |