diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-06-04 22:49:21 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-06-11 08:48:04 +0200 |
commit | a7ceb3352ad0a35ce2eeb8407cace19e1d14a9db (patch) | |
tree | d9597acb78e695b92d35aaa1e7bc4b1b59732906 /include/svx | |
parent | b70ab9e9e5630a965c5e6cc40c2480dddf1e2384 (diff) |
tdf#42949 Fix IWYU warnings in include/svx/[sS][v-Z]*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: Ie2a4122d67d2d40732e6fd00b584f33edd802c5b
Reviewed-on: https://gerrit.libreoffice.org/73476
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include/svx')
33 files changed, 15 insertions, 70 deletions
diff --git a/include/svx/SvxNumOptionsTabPageHelper.hxx b/include/svx/SvxNumOptionsTabPageHelper.hxx index ada89f794840..eebb5be9da85 100644 --- a/include/svx/SvxNumOptionsTabPageHelper.hxx +++ b/include/svx/SvxNumOptionsTabPageHelper.hxx @@ -20,8 +20,7 @@ #ifndef INCLUDED_SVX_SVXNUMOPTIONSTABPAGEHELPER_HXX #define INCLUDED_SVX_SVXNUMOPTIONSTABPAGEHELPER_HXX -#include <com/sun/star/text/DefaultNumberingProvider.hpp> -#include <com/sun/star/text/XNumberingTypeInfo.hpp> +#include <com/sun/star/text/XDefaultNumberingProvider.hpp> #include <vcl/lstbox.hxx> #include <vcl/weld.hxx> #include <svx/svxdllapi.h> diff --git a/include/svx/SvxPresetListBox.hxx b/include/svx/SvxPresetListBox.hxx index f580ebac04fb..4f6f251f48df 100644 --- a/include/svx/SvxPresetListBox.hxx +++ b/include/svx/SvxPresetListBox.hxx @@ -20,9 +20,6 @@ #ifndef INCLUDED_SVX_SVXPRESETLISTBOX_HXX #define INCLUDED_SVX_SVXPRESETLISTBOX_HXX -#include <svtools/svtdllapi.h> -#include <svx/XPropertyTable.hxx> -#include <vcl/ctrl.hxx> #include <svtools/valueset.hxx> #include <svx/xtable.hxx> #include <tools/gen.hxx> diff --git a/include/svx/SvxShapeTypes.hxx b/include/svx/SvxShapeTypes.hxx index 6af2a822dcdc..65bfa0414927 100644 --- a/include/svx/SvxShapeTypes.hxx +++ b/include/svx/SvxShapeTypes.hxx @@ -20,9 +20,6 @@ #ifndef INCLUDED_SVX_SVXSHAPETYPES_HXX #define INCLUDED_SVX_SVXSHAPETYPES_HXX -#include <svx/ShapeTypeHandler.hxx> -#include <com/sun/star/accessibility/XAccessible.hpp> - namespace accessibility { /** Register the SVX draw shape types with the ShapeTypeHandler singleton. diff --git a/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx b/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx index e7c39c061f99..9a822d8fbd33 100644 --- a/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx +++ b/include/svx/sdr/contact/objectcontactofobjlistpainter.hxx @@ -23,6 +23,7 @@ #include <svx/sdr/contact/objectcontact.hxx> #include <svx/svxdllapi.h> #include <svx/svdpage.hxx> +#include <tools/weakbase.hxx> class SdrPage; class SdrObject; diff --git a/include/svx/srchdlg.hxx b/include/svx/srchdlg.hxx index 3d19b6e7cae5..94578d9b0f76 100644 --- a/include/svx/srchdlg.hxx +++ b/include/svx/srchdlg.hxx @@ -22,7 +22,6 @@ #include <sfx2/childwin.hxx> #include <sfx2/basedlgs.hxx> #include <svl/srchdefs.hxx> -#include <svl/itempool.hxx> #include <svx/svxdllapi.h> #include <memory> #include <vector> diff --git a/include/svx/svdetc.hxx b/include/svx/svdetc.hxx index 94d3db0240ee..895fc9d95789 100644 --- a/include/svx/svdetc.hxx +++ b/include/svx/svdetc.hxx @@ -20,12 +20,10 @@ #ifndef INCLUDED_SVX_SVDETC_HXX #define INCLUDED_SVX_SVDETC_HXX -#include <rtl/ustring.hxx> #include <editeng/outliner.hxx> #include <svx/svxdllapi.h> #include <tools/link.hxx> #include <tools/fract.hxx> -#include <vcl/outdev.hxx> #include <svx/svdobj.hxx> #include <memory> diff --git a/include/svx/svdhdl.hxx b/include/svx/svdhdl.hxx index a8e77e4ed285..6a787f608b55 100644 --- a/include/svx/svdhdl.hxx +++ b/include/svx/svdhdl.hxx @@ -23,12 +23,8 @@ #include <tools/gen.hxx> #include <vcl/graph.hxx> -#include <svl/solar.hrc> - -#include <svx/xpoly.hxx> #include <svx/svdoedge.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> -#include <svx/sdgcpitm.hxx> #include <svx/sdr/overlay/overlayobjectlist.hxx> #include <svx/svxdllapi.h> #include <deque> @@ -39,6 +35,7 @@ class SdrMarkView; class SdrObject; class SdrPageView; class MouseEvent; +class HelpEvent; namespace sdr { namespace contact { class ObjectContact; diff --git a/include/svx/svditer.hxx b/include/svx/svditer.hxx index 6dc84ef9f254..6f64ccb31677 100644 --- a/include/svx/svditer.hxx +++ b/include/svx/svditer.hxx @@ -22,7 +22,6 @@ #include <vector> -#include <sal/types.h> #include <svx/svxdllapi.h> class SdrObjList; diff --git a/include/svx/svdlayer.hxx b/include/svx/svdlayer.hxx index 491dcd253bf1..e49e079c82c9 100644 --- a/include/svx/svdlayer.hxx +++ b/include/svx/svdlayer.hxx @@ -23,7 +23,6 @@ #include <svx/svdsob.hxx> #include <svx/svdtypes.hxx> #include <svx/svxdllapi.h> -#include <algorithm> #include <memory> #include <vector> diff --git a/include/svx/svdmark.hxx b/include/svx/svdmark.hxx index 4b901f6ab2ad..1c0dd2af670a 100644 --- a/include/svx/svdmark.hxx +++ b/include/svx/svdmark.hxx @@ -23,7 +23,6 @@ #include <rtl/ustring.hxx> #include <svx/svxdllapi.h> #include <svx/sdrobjectuser.hxx> -#include <tools/solar.h> #include <memory> #include <set> diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx index e2dc48461c78..f5a16bd7ec2f 100644 --- a/include/svx/svdmodel.hxx +++ b/include/svx/svdmodel.hxx @@ -23,25 +23,18 @@ #include <functional> #include <memory> #include <com/sun/star/uno/Sequence.hxx> -#include <cppuhelper/weakref.hxx> #include <editeng/forbiddencharacterstable.hxx> #include <editeng/outliner.hxx> #include <rtl/ustring.hxx> -#include <tools/link.hxx> -#include <tools/weakbase.hxx> -#include <vcl/mapmod.hxx> +#include <tools/weakbase.h> #include <svl/SfxBroadcaster.hxx> -#include <tools/datetime.hxx> +#include <tools/fldunit.hxx> #include <tools/fract.hxx> #include <svl/hint.hxx> -#include <o3tl/typed_flags_set.hxx> #include <o3tl/enumarray.hxx> #include <svl/style.hxx> #include <svx/xtable.hxx> -#include <svx/pageitem.hxx> -#include <vcl/field.hxx> -#include <LibreOfficeKit/LibreOfficeKitTypes.h> class OutputDevice; #include <svx/svdtypes.hxx> diff --git a/include/svx/svdoattr.hxx b/include/svx/svdoattr.hxx index bfab6084fcc2..706a3e272b17 100644 --- a/include/svx/svdoattr.hxx +++ b/include/svx/svdoattr.hxx @@ -20,10 +20,6 @@ #ifndef INCLUDED_SVX_SVDOATTR_HXX #define INCLUDED_SVX_SVDOATTR_HXX -#include <svx/xfillit0.hxx> -#include <svx/xflasit.hxx> -#include <svx/xlineit0.hxx> -#include <svx/xlnasit.hxx> #include <svx/svdobj.hxx> #include <svx/svxdllapi.h> diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index 0d2d836f8efc..901d6b1caed1 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -25,21 +25,17 @@ #include <cppuhelper/weakref.hxx> #include <rtl/ustring.hxx> #include <vcl/outdev.hxx> -#include <vcl/vclptr.hxx> #include <svl/lstner.hxx> #include <svl/poolitem.hxx> #include <svl/typedwhich.hxx> #include <svx/svdtypes.hxx> -#include <svx/xenum.hxx> #include <svx/svxdllapi.h> #include <svx/shapeproperty.hxx> #include <tools/link.hxx> -#include <tools/weakbase.hxx> -#include <tools/mapunit.hxx> +#include <tools/weakbase.h> #include <tools/gen.hxx> #include <osl/diagnose.h> #include <typeinfo> -#include <functional> class SfxBroadcaster; class AutoTimer; diff --git a/include/svx/svdopath.hxx b/include/svx/svdopath.hxx index cace0f3764f6..2e7671a6818d 100644 --- a/include/svx/svdopath.hxx +++ b/include/svx/svdopath.hxx @@ -21,9 +21,7 @@ #define INCLUDED_SVX_SVDOPATH_HXX #include <svx/svdotext.hxx> -#include <svx/xpoly.hxx> #include <svx/svxdllapi.h> -#include <basegfx/vector/b2enums.hxx> #include <memory> class ImpPathForDragAndCreate; diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx index 218fe94e8185..f76ab2dc4108 100644 --- a/include/svx/svdotext.hxx +++ b/include/svx/svdotext.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_SVX_SVDOTEXT_HXX #define INCLUDED_SVX_SVDOTEXT_HXX -#include <vcl/field.hxx> #include <svx/itextprovider.hxx> #include <svx/svdoattr.hxx> #include <svx/sdtaitm.hxx> @@ -29,12 +28,9 @@ #include <svx/svdtrans.hxx> #include <tools/datetime.hxx> #include <svl/style.hxx> -#include <svx/xtextit0.hxx> #include <svx/svdtext.hxx> #include <svx/svxdllapi.h> #include <drawinglayer/primitive2d/baseprimitive2d.hxx> -#include <svx/svdpagv.hxx> -#include <rtl/ref.hxx> #include <memory> #include <vector> diff --git a/include/svx/svdoutl.hxx b/include/svx/svdoutl.hxx index 8fa51167a113..7655dee739b7 100644 --- a/include/svx/svdoutl.hxx +++ b/include/svx/svdoutl.hxx @@ -22,7 +22,7 @@ #include <editeng/outliner.hxx> #include <svx/svxdllapi.h> -#include <svx/svdobj.hxx> +#include <tools/weakbase.h> class SdrTextObj; class SdrPage; diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx index d23957dcd906..b1a93c31e21f 100644 --- a/include/svx/svdpage.hxx +++ b/include/svx/svdpage.hxx @@ -21,14 +21,9 @@ #define INCLUDED_SVX_SVDPAGE_HXX #include <svl/stylesheetuser.hxx> -#include <vcl/bitmap.hxx> -#include <vcl/print.hxx> -#include <vcl/gdimtf.hxx> -#include <tools/weakbase.hxx> -#include <tools/contnr.hxx> -#include <cppuhelper/weakref.hxx> +#include <vcl/prntypes.hxx> +#include <tools/weakbase.h> #include <svl/itemset.hxx> -#include <svx/svdtypes.hxx> #include <svx/sdrpageuser.hxx> #include <svx/sdr/contact/viewobjectcontactredirector.hxx> #include <svx/sdrmasterpagedescriptor.hxx> diff --git a/include/svx/svdpagv.hxx b/include/svx/svdpagv.hxx index ea376dc8c035..79e5bbef684a 100644 --- a/include/svx/svdpagv.hxx +++ b/include/svx/svdpagv.hxx @@ -23,7 +23,6 @@ #include <com/sun/star/awt/XControlContainer.hpp> #include <rtl/ustring.hxx> #include <tools/color.hxx> -#include <svl/lstner.hxx> #include <svx/svdhlpln.hxx> #include <svx/svdsob.hxx> #include <svx/svdtypes.hxx> @@ -31,7 +30,6 @@ #include <memory> #include <vector> -#include <basegfx/polygon/b2dpolypolygon.hxx> #include <basegfx/range/b2irectangle.hxx> diff --git a/include/svx/svdpntv.hxx b/include/svx/svdpntv.hxx index ce62413bc7c5..2267936d64db 100644 --- a/include/svx/svdpntv.hxx +++ b/include/svx/svdpntv.hxx @@ -27,7 +27,6 @@ #include <svx/svdlayer.hxx> #include <vcl/window.hxx> #include <svtools/colorcfg.hxx> -#include <com/sun/star/awt/XControlContainer.hpp> #include <svl/itemset.hxx> #include <vcl/timer.hxx> #include <svx/svxdllapi.h> diff --git a/include/svx/svdpool.hxx b/include/svx/svdpool.hxx index da8c241831d9..13c5fddd31d7 100644 --- a/include/svx/svdpool.hxx +++ b/include/svx/svdpool.hxx @@ -21,7 +21,6 @@ #define INCLUDED_SVX_SVDPOOL_HXX #include <svx/xpool.hxx> -#include <svx/svddef.hxx> #include <svx/svxdllapi.h> class XLineAttrSetItem; diff --git a/include/svx/svdtrans.hxx b/include/svx/svdtrans.hxx index c10f9f8fc2f0..e3365c1baaa2 100644 --- a/include/svx/svdtrans.hxx +++ b/include/svx/svdtrans.hxx @@ -21,14 +21,13 @@ #define INCLUDED_SVX_SVDTRANS_HXX #include <rtl/ustring.hxx> -#include <sal/log.hxx> #include <svx/svxdllapi.h> +#include <tools/fldunit.hxx> #include <tools/fract.hxx> #include <tools/gen.hxx> #include <tools/helpers.hxx> +#include <tools/mapunit.hxx> #include <tools/poly.hxx> -#include <vcl/field.hxx> -#include <vcl/mapmod.hxx> // The DrawingEngine's angles are specified in 1/100th degrees // We need to convert these angles to radians, in order to be able diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index 39f514d0f7ab..f368b118917b 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -25,7 +25,6 @@ #include <memory> #include <vector> -#include <svl/solar.hrc> #include <svl/undo.hxx> #include <svl/style.hxx> #include <tools/gen.hxx> diff --git a/include/svx/svdview.hxx b/include/svx/svdview.hxx index 4b145931896c..6712c79fafc0 100644 --- a/include/svx/svdview.hxx +++ b/include/svx/svdview.hxx @@ -23,14 +23,13 @@ // HACK to avoid too deep includes and to have some // levels free in svdmark itself (MS compiler include depth limit) #include <svx/svdhdl.hxx> -#include <tools/weakbase.hxx> +#include <tools/weakbase.h> #include <svtools/accessibilityoptions.hxx> #include <svx/svxdllapi.h> #include <svx/svdcrtv.hxx> #include <vcl/event.hxx> #include <unotools/options.hxx> #include <basegfx/polygon/b2dpolypolygon.hxx> -#include <basegfx/polygon/b2dpolygon.hxx> // class hierarchy of View: // SfxListener diff --git a/include/svx/svdviter.hxx b/include/svx/svdviter.hxx index 125a4c5e6180..1343de7c3931 100644 --- a/include/svx/svdviter.hxx +++ b/include/svx/svdviter.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_SVX_SVDVITER_HXX #define INCLUDED_SVX_SVDVITER_HXX -#include <sal/types.h> #include <svx/svxdllapi.h> /* diff --git a/include/svx/svxdlg.hxx b/include/svx/svxdlg.hxx index 58acee4b86a1..e5307196038c 100644 --- a/include/svx/svxdlg.hxx +++ b/include/svx/svxdlg.hxx @@ -25,7 +25,6 @@ #include <editeng/edtdlg.hxx> #include <svx/dstribut_enum.hxx> -#include <svx/rectenum.hxx> #include <com/sun/star/container/XIndexContainer.hpp> #include <com/sun/star/container/XNameReplace.hpp> #include <svx/svxdllapi.h> diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc index ac2fadfb611c..b5cbbab79d47 100644 --- a/include/svx/svxids.hrc +++ b/include/svx/svxids.hrc @@ -19,11 +19,9 @@ #ifndef INCLUDED_SVX_SVXIDS_HRC #define INCLUDED_SVX_SVXIDS_HRC -#include <svl/memberid.h> #include <svl/solar.hrc> #include <sfx2/sfxsids.hrc> #include <editeng/editids.hrc> -#include <svx/unomid.hxx> #include <svl/typedwhich.hxx> class SfxInt32Item; @@ -53,6 +51,7 @@ class SvxLineEndListItem; class SvxLineItem; class SvxBoxInfoItem; class SfxStringItem; +class SvxSetItem; // member IDs diff --git a/include/svx/swframeexample.hxx b/include/svx/swframeexample.hxx index 0437831781ca..ab945321a59f 100644 --- a/include/svx/swframeexample.hxx +++ b/include/svx/swframeexample.hxx @@ -24,7 +24,6 @@ #include <svx/svxdllapi.h> #include <svx/swframetypes.hxx> #include <vcl/customweld.hxx> -#include <vcl/window.hxx> #include <com/sun/star/text/WrapTextMode.hpp> class SVX_DLLPUBLIC SwFrameExample : public weld::CustomWidgetController diff --git a/include/svx/swframeposstrings.hxx b/include/svx/swframeposstrings.hxx index 0a52979a0219..c0ef3a3520d0 100644 --- a/include/svx/swframeposstrings.hxx +++ b/include/svx/swframeposstrings.hxx @@ -21,7 +21,6 @@ #include <rtl/ustring.hxx> #include <svx/svxdllapi.h> -#include <memory> /* contains strings needed for positioning dialogs diff --git a/include/svx/swframevalidation.hxx b/include/svx/swframevalidation.hxx index 09836db8ede1..049fce9afac1 100644 --- a/include/svx/swframevalidation.hxx +++ b/include/svx/swframevalidation.hxx @@ -21,7 +21,6 @@ #include <sal/types.h> #include <tools/gen.hxx> -#include <limits.h> #include <svx/swframetypes.hxx> /* diff --git a/include/svx/sxcaitm.hxx b/include/svx/sxcaitm.hxx index 5692faed0e97..adfa16afe517 100644 --- a/include/svx/sxcaitm.hxx +++ b/include/svx/sxcaitm.hxx @@ -22,7 +22,6 @@ #include <svx/svddef.hxx> #include <svx/sdangitm.hxx> -#include <svx/sdooitm.hxx> // SDRATTR_CAPTIONFIXEDANGLE SdrOnOffItem: // sal_True=angle predefined by SdrCaptionAngleItem diff --git a/include/svx/sxelditm.hxx b/include/svx/sxelditm.hxx index c2ecfa5d8248..445f00214033 100644 --- a/include/svx/sxelditm.hxx +++ b/include/svx/sxelditm.hxx @@ -21,7 +21,6 @@ #include <svx/svddef.hxx> #include <svx/sdmetitm.hxx> -#include <svx/svxdllapi.h> class SdrEdgeLineDeltaCountItem: public SfxUInt16Item { public: diff --git a/include/svx/sxmuitm.hxx b/include/svx/sxmuitm.hxx index 52c6e826be28..f05de22226b5 100644 --- a/include/svx/sxmuitm.hxx +++ b/include/svx/sxmuitm.hxx @@ -19,10 +19,10 @@ #ifndef INCLUDED_SVX_SXMUITM_HXX #define INCLUDED_SVX_SXMUITM_HXX -#include <vcl/field.hxx> #include <svx/svddef.hxx> #include <svl/eitem.hxx> #include <svx/svxdllapi.h> +#include <tools/fldunit.hxx> // specification of the unit if measurement. The numerical quantity value is converted in this unity. // (based on the facts of the MapUnit of the model). This unity is displayed if necessary. diff --git a/include/svx/transfrmhelper.hxx b/include/svx/transfrmhelper.hxx index ddc542c8a533..0fe92067884c 100644 --- a/include/svx/transfrmhelper.hxx +++ b/include/svx/transfrmhelper.hxx @@ -23,6 +23,7 @@ #include <basegfx/range/b2drange.hxx> #include <tools/fldunit.hxx> #include <tools/mapunit.hxx> +#include <vcl/field.hxx> class SVX_DLLPUBLIC TransfrmHelper { |