diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2020-10-31 14:32:20 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-11-06 08:18:45 +0100 |
commit | 7bdbb50a507df4c419f68d2ae453dd482267f168 (patch) | |
tree | c9797c8f343108fedad6f900b1952b69570b517f /cui | |
parent | 6e921467c411718793422a43fb3e3060fdeaeda9 (diff) |
tdf#42949 Fix new IWYU warnings in directories c*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: Iac1e7802dbe1efa01c2befdd10406231788d4fc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105315
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/IwyuFilter_cui.yaml | 12 | ||||
-rw-r--r-- | cui/qa/unit/cui-dialogs-test.cxx | 3 | ||||
-rw-r--r-- | cui/qa/unit/cui-dialogs-test_2.cxx | 3 | ||||
-rw-r--r-- | cui/qa/unit/cui-dialogs-test_3.cxx | 3 | ||||
-rw-r--r-- | cui/qa/unit/cui-dialogs-test_4.cxx | 3 | ||||
-rw-r--r-- | cui/source/customize/macropg.cxx | 4 | ||||
-rw-r--r-- | cui/source/dialogs/AdditionsDialog.cxx | 3 | ||||
-rw-r--r-- | cui/source/dialogs/QrCodeGenDialog.cxx | 1 | ||||
-rw-r--r-- | cui/source/dialogs/SignatureLineDialogBase.cxx | 4 | ||||
-rw-r--r-- | cui/source/dialogs/about.cxx | 1 | ||||
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 1 | ||||
-rw-r--r-- | cui/source/dialogs/pastedlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/tipofthedaydlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/toolbarmodedlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/factory/dlgfact.hxx | 2 | ||||
-rw-r--r-- | cui/source/inc/AdditionsDialog.hxx | 14 | ||||
-rw-r--r-- | cui/source/inc/about.hxx | 1 | ||||
-rw-r--r-- | cui/source/inc/autocdlg.hxx | 1 | ||||
-rw-r--r-- | cui/source/inc/page.hxx | 1 | ||||
-rw-r--r-- | cui/source/inc/scriptdlg.hxx | 1 | ||||
-rw-r--r-- | cui/source/options/optinet2.cxx | 1 | ||||
-rw-r--r-- | cui/source/tabpages/chardlg.cxx | 1 |
22 files changed, 21 insertions, 45 deletions
diff --git a/cui/IwyuFilter_cui.yaml b/cui/IwyuFilter_cui.yaml index c2f63e05282c..69ecc5b3d9de 100644 --- a/cui/IwyuFilter_cui.yaml +++ b/cui/IwyuFilter_cui.yaml @@ -13,6 +13,9 @@ excludelist: cui/source/dialogs/DiagramDialog.cxx: # Needed for direct member access - com/sun/star/beans/PropertyValue.hpp + cui/source/dialogs/pastedlg.cxx: + # Needed for direct member access + - com/sun/star/beans/PropertyValue.hpp cui/source/dialogs/SignSignatureLineDialog.cxx: # Actually used - com/sun/star/graphic/XGraphic.hpp @@ -21,6 +24,15 @@ excludelist: # Actually used - com/sun/star/linguistic2/XMeaning.hpp - com/sun/star/linguistic2/XThesaurus.hpp + cui/source/dialogs/tipofthedaydlg.cxx: + # Needed for direct member access + - com/sun/star/beans/PropertyValue.hpp + cui/source/dialogs/toolbarmodedlg.cxx: + # Needed for direct member access + - com/sun/star/beans/PropertyValue.hpp + cui/source/tabpages/numfmt.cxx: + # Actually used + - com/sun/star/frame/XModel.hpp cui/source/customize/cfg.cxx: # Actually used - com/sun/star/ui/dialogs/XFilePicker3.hpp diff --git a/cui/qa/unit/cui-dialogs-test.cxx b/cui/qa/unit/cui-dialogs-test.cxx index fe8091a8e33e..f580644e37c9 100644 --- a/cui/qa/unit/cui-dialogs-test.cxx +++ b/cui/qa/unit/cui-dialogs-test.cxx @@ -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 <svx/svdmodel.hxx> #include <svx/svxdlg.hxx> #include <vcl/abstdlg.hxx> diff --git a/cui/qa/unit/cui-dialogs-test_2.cxx b/cui/qa/unit/cui-dialogs-test_2.cxx index f9c040636e6c..af1b27fc5b78 100644 --- a/cui/qa/unit/cui-dialogs-test_2.cxx +++ b/cui/qa/unit/cui-dialogs-test_2.cxx @@ -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; diff --git a/cui/qa/unit/cui-dialogs-test_3.cxx b/cui/qa/unit/cui-dialogs-test_3.cxx index d13c756785e0..e369fd11fd39 100644 --- a/cui/qa/unit/cui-dialogs-test_3.cxx +++ b/cui/qa/unit/cui-dialogs-test_3.cxx @@ -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; diff --git a/cui/qa/unit/cui-dialogs-test_4.cxx b/cui/qa/unit/cui-dialogs-test_4.cxx index 27449310b7fb..7183811b98f1 100644 --- a/cui/qa/unit/cui-dialogs-test_4.cxx +++ b/cui/qa/unit/cui-dialogs-test_4.cxx @@ -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; diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index 19860e19b2d3..b6e4694dddac 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -32,10 +32,6 @@ #include <strings.hrc> #include <comphelper/namedvaluecollection.hxx> -#include <algorithm> -#include <iterator> -#include <set> - using namespace ::com::sun::star; using namespace ::com::sun::star::uno; diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx index ab91e47cd21b..383afdaa62dc 100644 --- a/cui/source/dialogs/AdditionsDialog.cxx +++ b/cui/source/dialogs/AdditionsDialog.cxx @@ -10,6 +10,8 @@ #include <config_folders.h> #include <AdditionsDialog.hxx> +#include <dialmgr.hxx> +#include <strings.hrc> #include <sal/log.hxx> @@ -35,6 +37,7 @@ #include <ucbhelper/content.hxx> #include <com/sun/star/deployment/DeploymentException.hpp> +#include <com/sun/star/deployment/ExtensionManager.hpp> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> #include <com/sun/star/ucb/CommandAbortedException.hpp> #include <com/sun/star/ucb/CommandFailedException.hpp> diff --git a/cui/source/dialogs/QrCodeGenDialog.cxx b/cui/source/dialogs/QrCodeGenDialog.cxx index 0c33d35d6aa7..28bbfabcf845 100644 --- a/cui/source/dialogs/QrCodeGenDialog.cxx +++ b/cui/source/dialogs/QrCodeGenDialog.cxx @@ -42,7 +42,6 @@ #include <com/sun/star/text/XTextContent.hpp> #include <com/sun/star/text/XTextViewCursor.hpp> #include <com/sun/star/text/XTextViewCursorSupplier.hpp> -#include <config_fuzzers.h> #include <com/sun/star/drawing/XDrawView.hpp> #include <com/sun/star/drawing/XDrawPage.hpp> diff --git a/cui/source/dialogs/SignatureLineDialogBase.cxx b/cui/source/dialogs/SignatureLineDialogBase.cxx index 50214308fe10..d824e85e8e3e 100644 --- a/cui/source/dialogs/SignatureLineDialogBase.cxx +++ b/cui/source/dialogs/SignatureLineDialogBase.cxx @@ -11,11 +11,7 @@ #include <utility> -#include <config_folders.h> #include <vcl/weld.hxx> -#include <sal/log.hxx> -#include <rtl/bootstrap.hxx> -#include <tools/stream.hxx> using namespace css; using namespace css::uno; diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index ff7173763e11..a4701019c938 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -20,7 +20,6 @@ #include <about.hxx> #include <osl/process.h> //osl_getProcessLocale -#include <rtl/character.hxx> //rtl::isAsciiHexDigit #include <sal/log.hxx> //SAL_WARN #include <vcl/settings.hxx> //GetSettings #include <vcl/svapp.hxx> //Application:: diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index 3e94ad472e63..d22837c7b4eb 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -36,7 +36,6 @@ #include <svtools/strings.hrc> #include <svtools/svtresid.hxx> -#include <sal/log.hxx> #include <tools/urlobj.hxx> #include <tools/debug.hxx> #include <tools/stream.hxx> diff --git a/cui/source/dialogs/pastedlg.cxx b/cui/source/dialogs/pastedlg.cxx index 375a966c7786..d86d277cc34f 100644 --- a/cui/source/dialogs/pastedlg.cxx +++ b/cui/source/dialogs/pastedlg.cxx @@ -26,8 +26,8 @@ #include <svtools/strings.hrc> #include <svtools/svtresid.hxx> #include <tools/lineend.hxx> -#include <comphelper/propertysequence.hxx> #include <comphelper/dispatchcommand.hxx> +#include <com/sun/star/beans/PropertyValue.hpp> SvPasteObjectDialog::SvPasteObjectDialog(weld::Window* pParent) : GenericDialogController(pParent, "cui/ui/pastespecial.ui", "PasteSpecialDialog") diff --git a/cui/source/dialogs/tipofthedaydlg.cxx b/cui/source/dialogs/tipofthedaydlg.cxx index ac6a4b9e6138..2404052271e6 100644 --- a/cui/source/dialogs/tipofthedaydlg.cxx +++ b/cui/source/dialogs/tipofthedaydlg.cxx @@ -33,7 +33,6 @@ #include <com/sun/star/util/URLTransformer.hpp> #include <comphelper/dispatchcommand.hxx> -#include <comphelper/propertysequence.hxx> #include <dialmgr.hxx> #include <i18nlangtag/languagetag.hxx> #include <officecfg/Office/Common.hxx> @@ -41,6 +40,7 @@ #include <rtl/bootstrap.hxx> #include <unotools/resmgr.hxx> #include <unotools/configmgr.hxx> +#include <com/sun/star/beans/PropertyValue.hpp> TipOfTheDayDialog::TipOfTheDayDialog(weld::Window* pParent) : GenericDialogController(pParent, "cui/ui/tipofthedaydialog.ui", "TipOfTheDayDialog") diff --git a/cui/source/dialogs/toolbarmodedlg.cxx b/cui/source/dialogs/toolbarmodedlg.cxx index 8c3e54bbe489..e645f6bb26d0 100644 --- a/cui/source/dialogs/toolbarmodedlg.cxx +++ b/cui/source/dialogs/toolbarmodedlg.cxx @@ -14,7 +14,6 @@ #include <com/sun/star/frame/ModuleManager.hpp> #include <comphelper/dispatchcommand.hxx> -#include <comphelper/propertysequence.hxx> #include <comphelper/types.hxx> #include <dialmgr.hxx> #include <officecfg/Office/Common.hxx> @@ -28,6 +27,7 @@ #include <vcl/graphicfilter.hxx> #include <vcl/EnumContext.hxx> #include <vcl/weld.hxx> +#include <com/sun/star/beans/PropertyValue.hpp> static OUString GetCurrentApp() { diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index 89ba22069339..a9d521708f5d 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -25,7 +25,6 @@ #include <tools/link.hxx> #include <com/sun/star/frame/XFrame.hpp> -#include <about.hxx> #include <cfgutil.hxx> #include <cui/cuicharmap.hxx> #include <cuifmsearch.hxx> @@ -56,7 +55,6 @@ #include <SpellDialog.hxx> #include <srchxtra.hxx> #include <thesdlg.hxx> -#include <tipofthedaydlg.hxx> #include <transfrm.hxx> #include <zoom.hxx> #include <AdditionsDialog.hxx> diff --git a/cui/source/inc/AdditionsDialog.hxx b/cui/source/inc/AdditionsDialog.hxx index c550034a16db..f11c4ee24691 100644 --- a/cui/source/inc/AdditionsDialog.hxx +++ b/cui/source/inc/AdditionsDialog.hxx @@ -10,13 +10,9 @@ #pragma once -#include <vcl/svapp.hxx> #include <salhelper/thread.hxx> #include <rtl/ref.hxx> #include <vcl/weld.hxx> -#include <strings.hrc> -#include <comphelper/string.hxx> -#include "dialmgr.hxx" // Detect changes on the UI #include <vcl/timer.hxx> @@ -26,20 +22,14 @@ // Extension Manager Connection #include <com/sun/star/deployment/XExtensionManager.hpp> -#include <com/sun/star/deployment/ExtensionManager.hpp> -#include <com/sun/star/deployment/XPackageManager.hpp> -#include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/uno/Reference.hxx> -#include <com/sun/star/lang/XServiceInfo.hpp> -#include <com/sun/star/task/XJob.hpp> -#include <com/sun/star/lang/XInitialization.hpp> -#include <com/sun/star/xml/dom/XDocumentBuilder.hpp> -#include <com/sun/star/ucb/XSimpleFileAccess3.hpp> #include <com/sun/star/ucb/XCommandEnvironment.hpp> #include <com/sun/star/ucb/XProgressHandler.hpp> #include <cppuhelper/implbase.hxx> +#include <atomic> + class AdditionsDialog; class SearchAndParseThread; class AdditionsItem; diff --git a/cui/source/inc/about.hxx b/cui/source/inc/about.hxx index 27d07ce0d722..2cfc65a894f4 100644 --- a/cui/source/inc/about.hxx +++ b/cui/source/inc/about.hxx @@ -18,7 +18,6 @@ */ #pragma once -#include <vcl/bitmapex.hxx> #include <vcl/weld.hxx> class AboutDialog : public weld::GenericDialogController diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx index 17616cf945f8..5aa4a8c6041f 100644 --- a/cui/source/inc/autocdlg.hxx +++ b/cui/source/inc/autocdlg.hxx @@ -20,7 +20,6 @@ #include <sfx2/tabdlg.hxx> #include <svx/langbox.hxx> -#include <vcl/metric.hxx> #include <map> #include <set> diff --git a/cui/source/inc/page.hxx b/cui/source/inc/page.hxx index 23501f1fd25e..1513347e481f 100644 --- a/cui/source/inc/page.hxx +++ b/cui/source/inc/page.hxx @@ -25,6 +25,7 @@ #include <svx/frmdirlbox.hxx> #include <i18nutil/paper.hxx> #include <svx/flagsdef.hxx> +#include <vcl/print.hxx> // class SvxPageDescPage ------------------------------------------------- /* diff --git a/cui/source/inc/scriptdlg.hxx b/cui/source/inc/scriptdlg.hxx index 846e4a23e3f9..65e76e534ffd 100644 --- a/cui/source/inc/scriptdlg.hxx +++ b/cui/source/inc/scriptdlg.hxx @@ -21,7 +21,6 @@ #include <memory> #include <sfx2/basedlgs.hxx> -#include <vcl/abstdlg.hxx> #include <vcl/weld.hxx> #include <com/sun/star/beans/XPropertySet.hpp> diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index b47cd1178149..3f7bad1d804a 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -39,7 +39,6 @@ #include <com/sun/star/task/InteractionHandler.hpp> #include <sal/types.h> -#include <sal/log.hxx> #include <rtl/ustring.hxx> #include <osl/file.hxx> #include <com/sun/star/configuration/theDefaultProvider.hpp> diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 1000dbf0983e..45aad05aef44 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -38,7 +38,6 @@ #include <editeng/wrlmitem.hxx> #include <editeng/cmapitem.hxx> #include <editeng/kernitem.hxx> -#include <editeng/blinkitem.hxx> #include <editeng/flstitem.hxx> #include <editeng/autokernitem.hxx> #include <editeng/colritem.hxx> |