diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2022-02-23 01:08:14 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-03-03 09:50:43 +0100 |
commit | 96e3a64125354b61ecd43f7a76e6189e69968912 (patch) | |
tree | eea0db0570eaa43e7ba87c8f24a1c25d62675af9 /svtools | |
parent | ac605821ecf3ea263d4812ebec352314a2dbff42 (diff) |
Recheck modules sv* with IWYU
See tdf#42949 for motivation
Change-Id: I25779cbfb1aa93c31d6e12ac95e136b3bdbbc058
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130403
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svtools')
24 files changed, 11 insertions, 24 deletions
diff --git a/svtools/IwyuFilter_svtools.yaml b/svtools/IwyuFilter_svtools.yaml index be8ac06407fa..3d5265caf5c7 100644 --- a/svtools/IwyuFilter_svtools.yaml +++ b/svtools/IwyuFilter_svtools.yaml @@ -15,6 +15,9 @@ excludelist: svtools/source/dialogs/insdlg.cxx: # Needed on WIN - comphelper/classids.hxx + svtools/source/svrtf/parrtf.cxx: + # Actually used + - comphelper/scopeguard.hxx svtools/qa/unit/testHtmlReader.cxx: # Needed for the CPPUNIT_TEST_FIXTURE() macro. - unotest/bootstrapfixturebase.hxx diff --git a/svtools/inc/borderline.hrc b/svtools/inc/borderline.hrc index 84ab7cc98fda..cfa4b22b1fa7 100644 --- a/svtools/inc/borderline.hrc +++ b/svtools/inc/borderline.hrc @@ -9,6 +9,7 @@ #pragma once #include <editeng/borderline.hxx> +#include <unotools/resmgr.hxx> #define NC_(Context, String) TranslateId(Context, reinterpret_cast<char const *>(u8##String)) diff --git a/svtools/inc/langtab.hrc b/svtools/inc/langtab.hrc index 944ebecd9ab8..cb23437358bc 100644 --- a/svtools/inc/langtab.hrc +++ b/svtools/inc/langtab.hrc @@ -20,6 +20,7 @@ #pragma once #include <i18nlangtag/lang.h> +#include <unotools/resmgr.hxx> #define NC_(Context, String) TranslateId(Context, reinterpret_cast<char const *>(u8##String)) diff --git a/svtools/inc/strings.hxx b/svtools/inc/strings.hxx index eed1efed04c3..d6210eec95cf 100644 --- a/svtools/inc/strings.hxx +++ b/svtools/inc/strings.hxx @@ -9,6 +9,8 @@ #pragma once +#include <rtl/ustring.hxx> + // no need to translate this // the items in this string have to be in the same order as the STR_FIELD_* strings are added to the // field label list of the dialog diff --git a/svtools/inc/table/defaultinputhandler.hxx b/svtools/inc/table/defaultinputhandler.hxx index 136979db8576..add1a06935a0 100644 --- a/svtools/inc/table/defaultinputhandler.hxx +++ b/svtools/inc/table/defaultinputhandler.hxx @@ -23,7 +23,6 @@ #include <rtl/ref.hxx> #include <mousefunction.hxx> -#include <memory> #include <vector> diff --git a/svtools/source/brwbox/editbrowsebox2.cxx b/svtools/source/brwbox/editbrowsebox2.cxx index 8e6336a819ae..aa2762871a31 100644 --- a/svtools/source/brwbox/editbrowsebox2.cxx +++ b/svtools/source/brwbox/editbrowsebox2.cxx @@ -25,7 +25,6 @@ #include <toolkit/helper/vclunohelper.hxx> #include <vcl/accessiblefactory.hxx> #include <vcl/svapp.hxx> -#include <osl/diagnose.h> #include <tools/debug.hxx> #include <tools/diagnose_ex.h> diff --git a/svtools/source/config/fontsubstconfig.cxx b/svtools/source/config/fontsubstconfig.cxx index 3028e76c9ae0..6d7323bb0d44 100644 --- a/svtools/source/config/fontsubstconfig.cxx +++ b/svtools/source/config/fontsubstconfig.cxx @@ -27,8 +27,6 @@ #include <unotools/configmgr.hxx> #include <unotools/configitem.hxx> -#include <vector> - using namespace com::sun::star; using namespace com::sun::star::uno; using namespace com::sun::star::beans; diff --git a/svtools/source/config/htmlcfg.cxx b/svtools/source/config/htmlcfg.cxx index b871881e0997..2e82df094e0b 100644 --- a/svtools/source/config/htmlcfg.cxx +++ b/svtools/source/config/htmlcfg.cxx @@ -19,11 +19,8 @@ #include <sal/config.h> -#include <osl/thread.h> #include <svtools/htmlcfg.hxx> -#include <svtools/parhtml.hxx> #include <unotools/syslocale.hxx> -#include <tools/debug.hxx> #include <officecfg/Office/Common.hxx> namespace SvxHtmlOptions diff --git a/svtools/source/config/itemholder2.cxx b/svtools/source/config/itemholder2.cxx index bc588f9dfe1c..8880655d3887 100644 --- a/svtools/source/config/itemholder2.cxx +++ b/svtools/source/config/itemholder2.cxx @@ -27,7 +27,6 @@ #include <svtools/accessibilityoptions.hxx> #include <svtools/colorcfg.hxx> -#include <svtools/printoptions.hxx> #include <unotools/options.hxx> #include <svtools/miscopt.hxx> #include <tools/diagnose_ex.h> diff --git a/svtools/source/config/optionsdrawinglayer.cxx b/svtools/source/config/optionsdrawinglayer.cxx index 7f8a591567b3..54efe4a66326 100644 --- a/svtools/source/config/optionsdrawinglayer.cxx +++ b/svtools/source/config/optionsdrawinglayer.cxx @@ -18,7 +18,6 @@ */ #include <svtools/optionsdrawinglayer.hxx> -#include <tools/debug.hxx> #include <vcl/svapp.hxx> #include <vcl/outdev.hxx> #include <vcl/settings.hxx> diff --git a/svtools/source/config/printoptions.cxx b/svtools/source/config/printoptions.cxx index a81a62c3fb0f..ca9484356dc1 100644 --- a/svtools/source/config/printoptions.cxx +++ b/svtools/source/config/printoptions.cxx @@ -18,11 +18,10 @@ */ #include <svtools/printoptions.hxx> -#include <vcl/print.hxx> #include <vcl/printer/Options.hxx> #include <officecfg/Office/Common.hxx> #include <sal/macros.h> -#include <tools/diagnose_ex.h> +#include <tools/long.hxx> const sal_uInt16 aDPIArray[] = { 72, 96, 150, 200, 300, 600 }; diff --git a/svtools/source/control/asynclink.cxx b/svtools/source/control/asynclink.cxx index 08fc755c7862..95b8a6685854 100644 --- a/svtools/source/control/asynclink.cxx +++ b/svtools/source/control/asynclink.cxx @@ -19,10 +19,7 @@ #include <svtools/asynclink.hxx> -#include <osl/mutex.hxx> -#include <sal/log.hxx> #include <tools/debug.hxx> -#include <vcl/timer.hxx> #include <vcl/svapp.hxx> diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx index e031064bf1ba..90f912746cde 100644 --- a/svtools/source/control/ctrltool.cxx +++ b/svtools/source/control/ctrltool.cxx @@ -24,7 +24,6 @@ #include <string_view> #include <tools/debug.hxx> -#include <tools/fract.hxx> #include <i18nlangtag/languagetag.hxx> #include <i18nlangtag/mslangid.hxx> #include <vcl/outdev.hxx> diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index 6a811a5f0af6..6f8d52df8247 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -26,7 +26,6 @@ #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/beans/Property.hpp> -#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/sdbc/XResultSet.hpp> #include <com/sun/star/sdbc/XRow.hpp> #include <com/sun/star/task/XInteractionHandler.hpp> diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx index 86edb4613c2d..4cd797bca5c9 100644 --- a/svtools/source/control/toolbarmenu.cxx +++ b/svtools/source/control/toolbarmenu.cxx @@ -20,7 +20,6 @@ #include <memory> #include <comphelper/lok.hxx> #include <comphelper/processfactory.hxx> -#include <osl/diagnose.h> #include <vcl/taskpanelist.hxx> #include <vcl/svapp.hxx> diff --git a/svtools/source/control/valueimp.hxx b/svtools/source/control/valueimp.hxx index 4f9e9ec9c945..1eb77b763b79 100644 --- a/svtools/source/control/valueimp.hxx +++ b/svtools/source/control/valueimp.hxx @@ -19,7 +19,6 @@ #pragma once -#include <osl/mutex.hxx> #include <tools/color.hxx> #include <vcl/image.hxx> #include <cppuhelper/implbase.hxx> diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index e3551b77fdd4..069379779d61 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -23,7 +23,6 @@ #include <basegfx/matrix/b2dhommatrix.hxx> #include <basegfx/polygon/b2dpolygontools.hxx> #include <tools/debug.hxx> -#include <comphelper/base64.hxx> #include <vcl/canvastools.hxx> #include <vcl/decoview.hxx> #include <vcl/event.hxx> diff --git a/svtools/source/dialogs/ServerDetailsControls.hxx b/svtools/source/dialogs/ServerDetailsControls.hxx index 71f920a998bc..b0f892fe2877 100644 --- a/svtools/source/dialogs/ServerDetailsControls.hxx +++ b/svtools/source/dialogs/ServerDetailsControls.hxx @@ -15,6 +15,7 @@ #include <tools/link.hxx> #include <tools/urlobj.hxx> +#include <vcl/weld.hxx> namespace com :: sun :: star :: ucb { class XCommandEnvironment; } namespace com :: sun :: star :: awt { class XWindow; } diff --git a/svtools/source/filter/DocumentToGraphicRenderer.cxx b/svtools/source/filter/DocumentToGraphicRenderer.cxx index af64b7b8496a..c2858a1dae60 100644 --- a/svtools/source/filter/DocumentToGraphicRenderer.cxx +++ b/svtools/source/filter/DocumentToGraphicRenderer.cxx @@ -21,7 +21,6 @@ #include <comphelper/propertyvalue.hxx> #include <vcl/gdimtf.hxx> -#include <vcl/graphicfilter.hxx> #include <vcl/svapp.hxx> #include <vcl/outdev.hxx> #include <vcl/pdfextoutdevdata.hxx> diff --git a/svtools/source/misc/acceleratorexecute.cxx b/svtools/source/misc/acceleratorexecute.cxx index 8302e7addd43..eb6d611fe53b 100644 --- a/svtools/source/misc/acceleratorexecute.cxx +++ b/svtools/source/misc/acceleratorexecute.cxx @@ -35,7 +35,6 @@ #include <vcl/evntpost.hxx> #include <sal/log.hxx> #include <vcl/lok.hxx> -#include <osl/mutex.hxx> #include <rtl/ref.hxx> namespace svt diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx index 5687da6c2b23..0c1c23ace915 100644 --- a/svtools/source/svhtml/htmlout.cxx +++ b/svtools/source/svhtml/htmlout.cxx @@ -23,7 +23,6 @@ #include <svl/macitem.hxx> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> -#include <svl/zforlist.hxx> #include <svtools/HtmlWriter.hxx> #include <svtools/htmlout.hxx> diff --git a/svtools/source/svrtf/svparser.cxx b/svtools/source/svrtf/svparser.cxx index c003ebde3af6..d4b22fe13f67 100644 --- a/svtools/source/svrtf/svparser.cxx +++ b/svtools/source/svrtf/svparser.cxx @@ -28,7 +28,6 @@ #include <unicode/ucsdet.h> #include <vector> -#include <climits> // structure to store the actual data template<typename T> diff --git a/svtools/source/table/cellvalueconversion.cxx b/svtools/source/table/cellvalueconversion.cxx index 32e368864d3a..03c02d8ea848 100644 --- a/svtools/source/table/cellvalueconversion.cxx +++ b/svtools/source/table/cellvalueconversion.cxx @@ -20,6 +20,7 @@ #include "cellvalueconversion.hxx" #include <com/sun/star/util/NumberFormatsSupplier.hpp> +#include <com/sun/star/util/NumberFormatter.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/util/Date.hpp> #include <com/sun/star/util/Time.hpp> diff --git a/svtools/source/table/cellvalueconversion.hxx b/svtools/source/table/cellvalueconversion.hxx index d05a84c5db85..2e05707e5bab 100644 --- a/svtools/source/table/cellvalueconversion.hxx +++ b/svtools/source/table/cellvalueconversion.hxx @@ -19,7 +19,7 @@ #pragma once -#include <com/sun/star/util/NumberFormatter.hpp> +#include <com/sun/star/util/XNumberFormatter.hpp> #include <com/sun/star/uno/Any.hxx> #include <unordered_map> #include <memory> |