tdf#42949 Fix IWYU warnings in basctl/

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: Id956a2aaffb7ac8787847eedc4860bf9f4b70184
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86943
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
This commit is contained in:
Gabor Kelemen
2020-01-22 10:09:01 +01:00
committed by Miklos Vajna
parent a8303106cb
commit d847ca56ef
43 changed files with 85 additions and 73 deletions
+9
View File
@@ -0,0 +1,9 @@
---
assumeFilename: basctl/source/basicide/baside2b.cxx
blacklist:
basctl/source/basicide/basidesh.cxx:
# Needed for STATIC_LINKING
- config_options.h
# Needed for TypedWhichId defines is basslots.hxx
- sfx2/dinfdlg.hxx
- sfx2/minfitem.hxx
-3
View File
@@ -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;
+3
View File
@@ -19,8 +19,10 @@
#include <strings.hrc>
#include <basidesh.hxx>
#include <basobj.hxx>
#include <IDEComboBox.hxx>
#include <iderdll.hxx>
#include <iderid.hxx>
#include <localizationmgr.hxx>
#include <managelang.hxx>
@@ -30,6 +32,7 @@
#include <svtools/langtab.hxx>
#include <tools/debug.hxx>
#include <vcl/svapp.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/event.hxx>
namespace basctl
+1 -1
View File
@@ -18,11 +18,11 @@
*/
#include <strings.hrc>
#include <iderid.hxx>
#include <ObjectCatalog.hxx>
#include <helpids.h>
#include <svl/itemset.hxx>
#include <vcl/taskpanelist.hxx>
namespace basctl
-1
View File
@@ -25,7 +25,6 @@
#include <vcl/vclptr.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/objsh.hxx>
#include <memory>
namespace basctl
{
@@ -19,6 +19,7 @@
#include "basicrenderable.hxx"
#include <bastypes.hxx>
#include <iderid.hxx>
#include <strings.hrc>
#include <toolkit/awt/vclxdevice.hxx>
+8 -6
View File
@@ -19,8 +19,11 @@
#include "baside2.hxx"
#include <baside3.hxx>
#include <basobj.hxx>
#include <basidesh.hxx>
#include "brkdlg.hxx"
#include <iderdll.hxx>
#include <iderid.hxx>
#include "moduldlg.hxx"
#include <docsignature.hxx>
#include <officecfg/Office/BasicIDE.hxx>
@@ -39,22 +42,21 @@
#include <comphelper/SetFlagContextHelper.hxx>
#include <comphelper/string.hxx>
#include <svl/srchdefs.hxx>
#include <svtools/ehdl.hxx>
#include <sfx2/dinfdlg.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
#include <sot/exchange.hxx>
#include <svl/aeitem.hxx>
#include <svl/eitem.hxx>
#include <svl/srchitem.hxx>
#include <svl/stritem.hxx>
#include <svl/visitem.hxx>
#include <svl/whiter.hxx>
#include <svx/svxids.hrc>
#include <vcl/dialog.hxx>
#include <vcl/errinf.hxx>
#include <vcl/event.hxx>
#include <vcl/settings.hxx>
#include <vcl/print.hxx>
#include <vcl/svapp.hxx>
#include <vcl/textview.hxx>
#include <vcl/weld.hxx>
+2 -3
View File
@@ -23,7 +23,6 @@
#include <memory>
#include <layout.hxx>
#include "bastype3.hxx"
#include <basidesh.hxx>
#include "breakpoint.hxx"
#include "linenumberwindow.hxx"
@@ -32,11 +31,11 @@
#include <vcl/button.hxx>
#include <basic/sbmod.hxx>
#include <basic/sbstar.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/idle.hxx>
#include <svtools/colorcfg.hxx>
#include <sfx2/progress.hxx>
#include <o3tl/enumarray.hxx>
#include <set>
@@ -45,7 +44,6 @@
#include <basic/codecompletecache.hxx>
#include <com/sun/star/reflection/XIdlClass.hpp>
#include <comphelper/syntaxhighlight.hxx>
#include <com/sun/star/reflection/XIdlReflection.hpp>
class ExtTextEngine;
class TextView;
@@ -60,6 +58,7 @@ namespace basctl
class ObjectCatalog;
class CodeCompleteListBox;
class CodeCompleteWindow;
class ModulWindowLayout;
// #108672 Helper functions to get/set text in TextEngine
// using the stream interface (get/setText() only supports
+4
View File
@@ -22,11 +22,14 @@
#include <cassert>
#include <helpids.h>
#include <iderid.hxx>
#include <strings.hrc>
#include <bitmaps.hlst>
#include "baside2.hxx"
#include "brkdlg.hxx"
#include <basidesh.hxx>
#include <basobj.hxx>
#include <iderdll.hxx>
#include <basic/sbmeth.hxx>
@@ -37,6 +40,7 @@
#include <comphelper/string.hxx>
#include <officecfg/Office/Common.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/progress.hxx>
#include <sfx2/viewfrm.hxx>
#include <vcl/weld.hxx>
#include <svl/urihelper.hxx>
+2 -2
View File
@@ -19,11 +19,13 @@
#include <strings.hrc>
#include <helpids.h>
#include <iderid.hxx>
#include <accessibledialogwindow.hxx>
#include <baside3.hxx>
#include <basidesh.hxx>
#include <bastype2.hxx>
#include <basobj.hxx>
#include <dlged.hxx>
#include <dlgeddef.hxx>
#include <dlgedmod.hxx>
@@ -32,7 +34,6 @@
#include <localizationmgr.hxx>
#include <managelang.hxx>
#include <basic/basmgr.hxx>
#include <com/sun/star/script/XLibraryContainer2.hpp>
#include <com/sun/star/resource/StringResourceWithLocation.hpp>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
@@ -44,7 +45,6 @@
#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/aeitem.hxx>
#include <svl/visitem.hxx>
#include <svl/whiter.hxx>
#include <svx/svdundo.hxx>
+6 -6
View File
@@ -18,11 +18,14 @@
*/
#include <memory>
#include <iderid.hxx>
#include <strings.hrc>
#include <helpids.h>
#include "baside2.hxx"
#include <baside3.hxx>
#include <basidesh.hxx>
#include <basobj.hxx>
#include <docsignature.hxx>
#include <iderdll.hxx>
#include "iderdll2.hxx"
@@ -30,7 +33,6 @@
#include <managelang.hxx>
#include <basic/basmgr.hxx>
#include <basic/sbmeth.hxx>
#include <com/sun/star/script/ModuleType.hpp>
#include <com/sun/star/script/XLibraryContainerPassword.hpp>
#include <com/sun/star/script/XLibraryContainer2.hpp>
@@ -38,20 +40,18 @@
#include <svl/srchdefs.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <sfx2/bindings.hxx>
#include <sfx2/childwin.hxx>
#include <sfx2/docfac.hxx>
#include <sfx2/dinfdlg.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/minfitem.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
#include <svx/svxids.hrc>
#include <svl/aeitem.hxx>
#include <svl/eitem.hxx>
#include <svl/intitem.hxx>
#include <svl/visitem.hxx>
#include <svl/whiter.hxx>
#include <vcl/xtextedt.hxx>
#include <vcl/texteng.hxx>
#include <vcl/textview.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
+3 -3
View File
@@ -23,15 +23,15 @@
#include <com/sun/star/frame/XTitle.hpp>
#include <iderid.hxx>
#include <strings.hrc>
#include "baside2.hxx"
#include "basdoc.hxx"
#include <vcl/xtextedt.hxx>
#include <basidesh.hxx>
#include <vcl/texteng.hxx>
#include <vcl/textview.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/signaturestate.hxx>
#include <sfx2/viewfrm.hxx>
#include <com/sun/star/container/XNamed.hpp>
namespace basctl
{
+2 -2
View File
@@ -18,15 +18,15 @@
*/
#include "baside2.hxx"
#include <baside3.hxx>
#include <basidesh.hxx>
#include <localizationmgr.hxx>
#include <dlgedview.hxx>
#include <xmlscript/xmldlg_imexp.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/viewfrm.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
+4 -2
View File
@@ -22,6 +22,7 @@
#include <tools/diagnose_ex.h>
#include <basic/basmgr.hxx>
#include <svx/svxids.hrc>
#include <iderid.hxx>
#include <strings.hrc>
#include "baside2.hxx"
#include <baside3.hxx>
@@ -30,15 +31,16 @@
#include <editeng/sizeitem.hxx>
#include "iderdll2.hxx"
#include <basidectrlr.hxx>
#include <basidesh.hxx>
#include <basobj.hxx>
#include <localizationmgr.hxx>
#include <sfx2/app.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dinfdlg.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/infobar.hxx>
#include <sfx2/minfitem.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/aeitem.hxx>
#include <svl/srchitem.hxx>
#ifdef DISABLE_DYNLOADING
+2
View File
@@ -17,10 +17,12 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <basidesh.hxx>
#include <iderdll.hxx>
#include "iderdll2.hxx"
#include "macrodlg.hxx"
#include "moduldlg.hxx"
#include <iderid.hxx>
#include <strings.hrc>
#include "baside2.hxx"
+5 -2
View File
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <vcl/errinf.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <basic/basmgr.hxx>
@@ -26,10 +27,12 @@
#include <iderdll.hxx>
#include "iderdll2.hxx"
#include "basdoc.hxx"
#include <iderid.hxx>
#include <strings.hrc>
#include "baside2.hxx"
#include <baside3.hxx>
#include <basidesh.hxx>
#include <basobj.hxx>
#include <localizationmgr.hxx>
#include <dlged.hxx>
#include <com/sun/star/script/XLibraryContainerPassword.hpp>
@@ -40,7 +43,7 @@
#include <sfx2/viewfrm.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <svtools/ehdl.hxx>
#include <tools/debug.hxx>
namespace basctl
{
+1
View File
@@ -18,6 +18,7 @@
*/
#include <basobj.hxx>
#include <bastypes.hxx>
#include <bastype2.hxx>
#include <strings.hrc>
+1 -1
View File
@@ -19,13 +19,13 @@
#include <basic/basmgr.hxx>
#include <basic/sbmod.hxx>
#include <basobj.hxx>
#include <bastype2.hxx>
#include <bitmaps.hlst>
#include <bastypes.hxx>
#include <com/sun/star/script/XLibraryContainer.hpp>
#include <com/sun/star/script/XLibraryContainerPassword.hpp>
#include <deque>
#include <sfx2/docfac.hxx>
#include <vcl/treelistentry.hxx>
#include <osl/diagnose.h>
#include <tools/debug.hxx>
+3 -1
View File
@@ -19,13 +19,15 @@
#include <strings.hrc>
#include <helpids.h>
#include <iderid.hxx>
#include "baside2.hxx"
#include <baside3.hxx>
#include <basidesh.hxx>
#include <basobj.hxx>
#include <iderdll.hxx>
#include "iderdll2.hxx"
#include <basic/basmgr.hxx>
#include <com/sun/star/script/XLibraryContainerPassword.hpp>
#include <sal/log.hxx>
#include <sfx2/dispatch.hxx>
+1 -1
View File
@@ -21,7 +21,7 @@
#include "breakpoint.hxx"
#include "brkdlg.hxx"
#include <basidesh.hxx>
#include <basobj.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/sfxsids.hrc>
+1
View File
@@ -21,6 +21,7 @@
#define INCLUDED_BASCTL_SOURCE_BASICIDE_BRKDLG_HXX
#include <vcl/weld.hxx>
#include "breakpoint.hxx"
namespace basctl
{
+2 -4
View File
@@ -25,16 +25,14 @@
#include "iderdll2.hxx"
#include <iderid.hxx>
#include <basidesh.hxx>
#include <strings.hrc>
#include <basobj.hxx>
#include "basdoc.hxx"
#include "basicmod.hxx"
#include <svl/srchitem.hxx>
#include <svx/svxids.hrc>
#include <basic/sbstar.hxx>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/script/XLibraryContainerPassword.hpp>
#include <unotools/resmgr.hxx>
#include <vcl/settings.hxx>
#include <sfx2/app.hxx>
#include <osl/diagnose.h>
-2
View File
@@ -27,8 +27,6 @@ class SvxSearchItem;
#include <bastypes.hxx>
#include <bastype2.hxx>
#include <memory>
namespace basctl
{
@@ -11,6 +11,8 @@
#define INCLUDED_BASCTL_SOURCE_BASICIDE_LINENUMBERWINDOW_HXX
#include <vcl/window.hxx>
namespace basctl
{
+2 -1
View File
@@ -21,6 +21,7 @@
#include <basidesh.hxx>
#include <baside3.hxx>
#include <basobj.hxx>
#include <iderdll.hxx>
#include <dlged.hxx>
#include <managelang.hxx>
@@ -28,7 +29,7 @@
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/resource/MissingResourceException.hpp>
#include <com/sun/star/resource/XStringResourceSupplier.hpp>
#include <sfx2/dispatch.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/viewfrm.hxx>
#include <tools/debug.hxx>
+1
View File
@@ -21,6 +21,7 @@
#include "macrodlg.hxx"
#include <basidesh.hxx>
#include <strings.hrc>
#include <iderid.hxx>
#include <iderdll.hxx>
#include "iderdll2.hxx"
+1
View File
@@ -19,6 +19,7 @@
#pragma once
#include <basobj.hxx>
#include <bastype2.hxx>
#include <sfx2/basedlgs.hxx>
#include <com/sun/star/frame/XFrame.hpp>
+4 -2
View File
@@ -24,16 +24,18 @@
#include <bitmaps.hlst>
#include <iderdll.hxx>
#include "iderdll2.hxx"
#include <iderid.hxx>
#include <basobj.hxx>
#include <svx/passwd.hxx>
#include <ucbhelper/content.hxx>
#include <rtl/uri.hxx>
#include <sfx2/app.hxx>
#include <sfx2/dinfdlg.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/request.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/viewfrm.hxx>
#include <svl/stritem.hxx>
#include <tools/debug.hxx>
#include <tools/urlobj.hxx>
#include <tools/diagnose_ex.h>
@@ -41,7 +43,7 @@
#include <vcl/weld.hxx>
#include <com/sun/star/io/Pipe.hpp>
#include <com/sun/star/ui/dialogs/FilePicker.hpp>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
#include <com/sun/star/ui/dialogs/FolderPicker.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <com/sun/star/script/DocumentScriptLibraryContainer.hpp>
+2
View File
@@ -20,11 +20,13 @@
#include <sal/config.h>
#include <strings.hrc>
#include <iderid.hxx>
#include <bitmaps.hlst>
#include "moduldlg.hxx"
#include <localizationmgr.hxx>
#include <basidesh.hxx>
#include <basobj.hxx>
#include <basic/basmgr.hxx>
#include <com/sun/star/script/XLibraryContainerPassword.hpp>
@@ -29,7 +29,6 @@
#include <com/sun/star/ucb/ContentCreationException.hpp>
#include <com/sun/star/uri/UriReferenceFactory.hpp>
#include <com/sun/star/util/theMacroExpander.hpp>
#include <com/sun/star/document/MacroExecMode.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
@@ -51,9 +50,6 @@
#include <xmlscript/xmldlg_imexp.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <unotools/syslocale.hxx>
#include <unotools/collatorwrapper.hxx>
#include <tools/diagnose_ex.h>
#include <tools/debug.hxx>
@@ -66,7 +62,6 @@
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <sal/log.hxx>
#include <osl/file.hxx>
#include <rtl/uri.hxx>
#include <set>
-5
View File
@@ -18,7 +18,6 @@
*/
#include <basidesh.hxx>
#include <dlged.hxx>
#include <dlgedclip.hxx>
#include <dlgeddef.hxx>
@@ -28,23 +27,19 @@
#include <dlgedobj.hxx>
#include <dlgedpage.hxx>
#include <dlgedview.hxx>
#include <iderdll.hxx>
#include <localizationmgr.hxx>
#include <baside3.hxx>
#include <com/sun/star/awt/Toolkit.hpp>
#include <com/sun/star/awt/UnoControlDialog.hpp>
#include <com/sun/star/awt/XDialog.hpp>
#include <com/sun/star/resource/StringResource.hpp>
#include <com/sun/star/util/XCloneable.hpp>
#include <com/sun/star/util/NumberFormatsSupplier.hpp>
#include <comphelper/types.hxx>
#include <comphelper/processfactory.hxx>
#include <tools/debug.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/itempool.hxx>
#include <svx/sdrpaintwindow.hxx>
#include <svx/svxids.hrc>
#include <svx/svdpagv.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/print.hxx>
-1
View File
@@ -21,7 +21,6 @@
#include <dlgedobj.hxx>
#include <dlgeddef.hxx>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/awt/ScrollBarOrientation.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
+1 -4
View File
@@ -21,12 +21,9 @@
#include <dlged.hxx>
#include <dlgedpage.hxx>
#include <svx/svxids.hrc>
#include <sfx2/viewfrm.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/scrbar.hxx>
#include <basidesh.hxx>
#include <iderdll.hxx>
#include <dlgedobj.hxx>
namespace basctl
-5
View File
@@ -26,16 +26,11 @@
#include <strings.hrc>
#include <com/sun/star/i18n/Boundary.hpp>
#include <com/sun/star/i18n/WordType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <comphelper/sequence.hxx>
#include <editeng/unolingu.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/sfxsids.hrc>
#include <svtools/langtab.hxx>
#include <svx/langbox.hxx>
#include <vcl/unohelp.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <vcl/settings.hxx>
-2
View File
@@ -26,9 +26,7 @@
#include <strings.hrc>
#include <strings.hxx>
#include <svx/svxids.hrc>
#include <com/sun/star/awt/PosSize.hpp>
#include <com/sun/star/frame/Frame.hpp>
#include <com/sun/star/inspection/XObjectInspector.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
+3
View File
@@ -24,6 +24,9 @@
#include <sfx2/tbxctrl.hxx>
#include <vcl/lstbox.hxx>
#include "doceventnotifier.hxx"
#include "scriptdocument.hxx"
namespace basctl
{
/*!
+1
View File
@@ -20,6 +20,7 @@
#ifndef INCLUDED_BASCTL_SOURCE_INC_BASIDE3_HXX
#define INCLUDED_BASCTL_SOURCE_INC_BASIDE3_HXX
#include "dlged.hxx"
#include "layout.hxx"
#include "bastypes.hxx"
#include "propbrw.hxx"
-2
View File
@@ -21,8 +21,6 @@
#include "scriptdocument.hxx"
#include <svl/lstner.hxx>
class SbMethod;
class SbModule;
class SbxVariable;
-2
View File
@@ -28,9 +28,7 @@
#include <vcl/treelistbox.hxx>
#include <vcl/weld.hxx>
#include <basic/sbstar.hxx>
#include "sbxitem.hxx"
#include "basobj.hxx"
#include <o3tl/typed_flags_set.hxx>
class SbModule;
+1 -2
View File
@@ -22,10 +22,9 @@
#include "scriptdocument.hxx"
#include "sbxitem.hxx"
#include "iderid.hxx"
#include <svtools/tabbar.hxx>
#include <vcl/toolbox.hxx>
#include <basic/sbdef.hxx>
#include <vcl/dockwin.hxx>
#include <unordered_map>
-2
View File
@@ -20,8 +20,6 @@
#ifndef INCLUDED_BASCTL_SOURCE_INC_DLGEDDEF_HXX
#define INCLUDED_BASCTL_SOURCE_INC_DLGEDDEF_HXX
#include <sal/types.h>
namespace basctl
{
+5
View File
@@ -20,6 +20,11 @@
#ifndef INCLUDED_BASCTL_SOURCE_INC_DLGEDFUNC_HXX
#define INCLUDED_BASCTL_SOURCE_INC_DLGEDFUNC_HXX
#include <vcl/event.hxx>
#include <vcl/timer.hxx>
#include <tools/link.hxx>
#include <tools/gen.hxx>
namespace basctl
{
+1
View File
@@ -20,6 +20,7 @@
#ifndef INCLUDED_BASCTL_SOURCE_INC_LAYOUT_HXX
#define INCLUDED_BASCTL_SOURCE_INC_LAYOUT_HXX
#include "bastypes.hxx"
#include <vcl/split.hxx>
#include <vcl/vclptr.hxx>