diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-09-06 21:25:16 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-09-17 10:03:46 +0200 |
commit | a944d4c2aacafdac78eabd7fb0f8909a66d935eb (patch) | |
tree | ce6fb3024610fe3a4beb0dbda7c8cfce32fc9f67 /xmloff | |
parent | 8083ccef3759b2d838df86965c0d1b42f9098848 (diff) |
tdf#42949 Fix IWYU warnings in xmloff/inc/
Also recheck include/xmloff/
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.
Change-Id: If01cb2844209b119063772d829e4ae21b74fc164
Reviewed-on: https://gerrit.libreoffice.org/78747
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'xmloff')
30 files changed, 25 insertions, 28 deletions
diff --git a/xmloff/IwyuFilter_xmloff.yaml b/xmloff/IwyuFilter_xmloff.yaml new file mode 100644 index 000000000000..51d2715014db --- /dev/null +++ b/xmloff/IwyuFilter_xmloff.yaml @@ -0,0 +1,9 @@ +--- +assumeFilename: xmloff/source/core/xmlexp.cxx +blacklist: + xmloff/inc/XMLImageMapExport.hxx: + # Needed for css shortcut + - sal/types.h + xmloff/inc/XMLTextColumnsExport.hxx: + # Needed for css shortcut + - sal/types.h diff --git a/xmloff/inc/SchXMLExport.hxx b/xmloff/inc/SchXMLExport.hxx index eacdfca75419..7a94f4df253c 100644 --- a/xmloff/inc/SchXMLExport.hxx +++ b/xmloff/inc/SchXMLExport.hxx @@ -23,7 +23,6 @@ #include "SchXMLAutoStylePoolP.hxx" #include <xmloff/xmlexp.hxx> #include <xmloff/xmlprmap.hxx> -#include <xmloff/prhdlfac.hxx> namespace com { namespace sun { namespace star { namespace task { diff --git a/xmloff/inc/SchXMLImport.hxx b/xmloff/inc/SchXMLImport.hxx index e8ca86cd589a..5b587a4abdb1 100644 --- a/xmloff/inc/SchXMLImport.hxx +++ b/xmloff/inc/SchXMLImport.hxx @@ -21,10 +21,7 @@ #include <xmloff/SchXMLImportHelper.hxx> #include <xmloff/xmlimp.hxx> -#include <xmloff/xmltkmap.hxx> #include <xmloff/xmlictxt.hxx> -#include <xmloff/prhdlfac.hxx> -#include <xmloff/families.hxx> /* these enums are used for the diff --git a/xmloff/inc/TransGradientStyle.hxx b/xmloff/inc/TransGradientStyle.hxx index 6bf80fce1cd1..eedac509e1fb 100644 --- a/xmloff/inc/TransGradientStyle.hxx +++ b/xmloff/inc/TransGradientStyle.hxx @@ -21,7 +21,6 @@ #define INCLUDED_XMLOFF_INC_TRANSGRADIENTSTYLE_HXX -#include <sal/types.h> #include <rtl/ustring.hxx> class SvXMLImport; diff --git a/xmloff/inc/XMLBackgroundImageExport.hxx b/xmloff/inc/XMLBackgroundImageExport.hxx index a6dca781ff26..222f875a709b 100644 --- a/xmloff/inc/XMLBackgroundImageExport.hxx +++ b/xmloff/inc/XMLBackgroundImageExport.hxx @@ -21,6 +21,7 @@ #define INCLUDED_XMLOFF_INC_XMLBACKGROUNDIMAGEEXPORT_HXX #include <sal/types.h> +#include <rtl/ustring.hxx> namespace com { namespace sun { namespace star { namespace uno { class Any; diff --git a/xmloff/inc/XMLBase64Export.hxx b/xmloff/inc/XMLBase64Export.hxx index f148148bcbe0..be5e62b48f4c 100644 --- a/xmloff/inc/XMLBase64Export.hxx +++ b/xmloff/inc/XMLBase64Export.hxx @@ -20,6 +20,7 @@ #define INCLUDED_XMLOFF_INC_XMLBASE64EXPORT_HXX #include <com/sun/star/uno/Reference.h> +#include <xmloff/xmltoken.hxx> namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } } diff --git a/xmloff/inc/XMLElementPropertyContext.hxx b/xmloff/inc/XMLElementPropertyContext.hxx index 88aac3d136b3..2027131cc493 100644 --- a/xmloff/inc/XMLElementPropertyContext.hxx +++ b/xmloff/inc/XMLElementPropertyContext.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_XMLOFF_INC_XMLELEMENTPROPERTYCONTEXT_HXX #define INCLUDED_XMLOFF_INC_XMLELEMENTPROPERTYCONTEXT_HXX -#include <xmloff/xmlprmap.hxx> #include <xmloff/xmlictxt.hxx> #include <xmloff/maptype.hxx> diff --git a/xmloff/inc/XMLImageMapExport.hxx b/xmloff/inc/XMLImageMapExport.hxx index 507adce612c9..3504d31a5b0e 100644 --- a/xmloff/inc/XMLImageMapExport.hxx +++ b/xmloff/inc/XMLImageMapExport.hxx @@ -20,7 +20,7 @@ #ifndef INCLUDED_XMLOFF_INC_XMLIMAGEMAPEXPORT_HXX #define INCLUDED_XMLOFF_INC_XMLIMAGEMAPEXPORT_HXX -#include <rtl/ustring.hxx> +#include <sal/types.h> namespace com { namespace sun { namespace star { namespace uno { template<class X> class Reference; } diff --git a/xmloff/inc/XMLIndexBibliographyConfigurationContext.hxx b/xmloff/inc/XMLIndexBibliographyConfigurationContext.hxx index 563a0b904a2d..a835864d5c50 100644 --- a/xmloff/inc/XMLIndexBibliographyConfigurationContext.hxx +++ b/xmloff/inc/XMLIndexBibliographyConfigurationContext.hxx @@ -25,7 +25,6 @@ #include <com/sun/star/uno/Reference.h> #include <com/sun/star/uno/Sequence.h> #include <com/sun/star/beans/PropertyValue.hpp> -#include <com/sun/star/lang/Locale.hpp> #include <rtl/ustring.hxx> diff --git a/xmloff/inc/XMLNumberStylesImport.hxx b/xmloff/inc/XMLNumberStylesImport.hxx index 7f745ec9189d..29196c460244 100644 --- a/xmloff/inc/XMLNumberStylesImport.hxx +++ b/xmloff/inc/XMLNumberStylesImport.hxx @@ -21,7 +21,6 @@ #define INCLUDED_XMLOFF_INC_XMLNUMBERSTYLESIMPORT_HXX #include <xmloff/xmlnumfi.hxx> -#include <com/sun/star/container/XNameAccess.hpp> // presentations:animations diff --git a/xmloff/inc/XMLReplacementImageContext.hxx b/xmloff/inc/XMLReplacementImageContext.hxx index 1885d46a7fe0..78404bee9654 100644 --- a/xmloff/inc/XMLReplacementImageContext.hxx +++ b/xmloff/inc/XMLReplacementImageContext.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_XMLOFF_INC_XMLREPLACEMENTIMAGECONTEXT_HXX #define INCLUDED_XMLOFF_INC_XMLREPLACEMENTIMAGECONTEXT_HXX -#include <com/sun/star/xml/sax/XDocumentHandler.hpp> #include <xmloff/xmlictxt.hxx> diff --git a/xmloff/inc/XMLScriptExportHandler.hxx b/xmloff/inc/XMLScriptExportHandler.hxx index 1708d7a1ba3d..f6313210546d 100644 --- a/xmloff/inc/XMLScriptExportHandler.hxx +++ b/xmloff/inc/XMLScriptExportHandler.hxx @@ -24,8 +24,6 @@ #include <rtl/ustring.hxx> #include <xmloff/xmlevent.hxx> -#include <map> - class SvXMLExport; namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } diff --git a/xmloff/inc/XMLStarBasicExportHandler.hxx b/xmloff/inc/XMLStarBasicExportHandler.hxx index 878d748680f9..b659306b19b2 100644 --- a/xmloff/inc/XMLStarBasicExportHandler.hxx +++ b/xmloff/inc/XMLStarBasicExportHandler.hxx @@ -24,8 +24,6 @@ #include <rtl/ustring.hxx> #include <xmloff/xmlevent.hxx> -#include <map> - class SvXMLExport; namespace com { namespace sun { namespace star { namespace beans { struct PropertyValue; } diff --git a/xmloff/inc/XMLTextColumnsContext.hxx b/xmloff/inc/XMLTextColumnsContext.hxx index 0aaa16866a73..9f9f4036fac5 100644 --- a/xmloff/inc/XMLTextColumnsContext.hxx +++ b/xmloff/inc/XMLTextColumnsContext.hxx @@ -20,6 +20,8 @@ #ifndef INCLUDED_XMLOFF_INC_XMLTEXTCOLUMNSCONTEXT_HXX #define INCLUDED_XMLOFF_INC_XMLTEXTCOLUMNSCONTEXT_HXX +#include <xmloff/xmltkmap.hxx> + #include <memory> #include "XMLElementPropertyContext.hxx" diff --git a/xmloff/inc/XMLTextColumnsExport.hxx b/xmloff/inc/XMLTextColumnsExport.hxx index 9713ac33cda8..5662edccbd0d 100644 --- a/xmloff/inc/XMLTextColumnsExport.hxx +++ b/xmloff/inc/XMLTextColumnsExport.hxx @@ -19,6 +19,8 @@ #ifndef INCLUDED_XMLOFF_INC_XMLTEXTCOLUMNSEXPORT_HXX #define INCLUDED_XMLOFF_INC_XMLTEXTCOLUMNSEXPORT_HXX +#include <sal/types.h> + namespace com { namespace sun { namespace star { namespace uno { class Any; } } } } class SvXMLExport; diff --git a/xmloff/inc/anim.hxx b/xmloff/inc/anim.hxx index b881b5fc250a..b4c2e6d58b6e 100644 --- a/xmloff/inc/anim.hxx +++ b/xmloff/inc/anim.hxx @@ -22,7 +22,6 @@ #include <com/sun/star/presentation/AnimationEffect.hpp> #include <com/sun/star/presentation/AnimationSpeed.hpp> -#include <com/sun/star/drawing/XShape.hpp> #include <xmloff/xmlement.hxx> enum XMLEffect diff --git a/xmloff/inc/animationimport.hxx b/xmloff/inc/animationimport.hxx index b59f8cb60b30..f0bf94ef85c8 100644 --- a/xmloff/inc/animationimport.hxx +++ b/xmloff/inc/animationimport.hxx @@ -24,6 +24,7 @@ #include <xmloff/xmlictxt.hxx> #include <com/sun/star/animations/XAnimationNode.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> // presentations:animations diff --git a/xmloff/inc/animimp.hxx b/xmloff/inc/animimp.hxx index 971071e82d79..ca2a16c4ab8b 100644 --- a/xmloff/inc/animimp.hxx +++ b/xmloff/inc/animimp.hxx @@ -23,7 +23,6 @@ #include <memory> #include <xmloff/xmlictxt.hxx> -#include <com/sun/star/drawing/XShapes.hpp> class AnimImpImpl; diff --git a/xmloff/inc/facreg.hxx b/xmloff/inc/facreg.hxx index 431bb1126de7..d09f0e5cb566 100644 --- a/xmloff/inc/facreg.hxx +++ b/xmloff/inc/facreg.hxx @@ -22,11 +22,9 @@ #include <sal/config.h> -#include <com/sun/star/uno/Exception.hpp> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Sequence.hxx> #include <rtl/ustring.hxx> -#include <sal/types.h> namespace com { namespace sun { namespace star { namespace lang { class XMultiServiceFactory; } diff --git a/xmloff/inc/prstylecond.hxx b/xmloff/inc/prstylecond.hxx index f1642e7ecd2d..57df2f80ae17 100644 --- a/xmloff/inc/prstylecond.hxx +++ b/xmloff/inc/prstylecond.hxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <rtl/ustring.hxx> + OUString GetParaStyleCondExternal( OUString const &); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx index 1bff41f8c29c..829e9daef527 100644 --- a/xmloff/inc/txtfldi.hxx +++ b/xmloff/inc/txtfldi.hxx @@ -27,9 +27,9 @@ #define INCLUDED_XMLOFF_INC_TXTFLDI_HXX #include <com/sun/star/uno/Reference.h> +#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/text/PageNumberType.hpp> #include <com/sun/star/util/DateTime.hpp> -#include <com/sun/star/util/Date.hpp> #include <xmloff/xmlictxt.hxx> #include <xmloff/txtimp.hxx> #include <xmloff/xmltkmap.hxx> diff --git a/xmloff/inc/txtvfldi.hxx b/xmloff/inc/txtvfldi.hxx index b572cc1fec2d..389a5c56ab68 100644 --- a/xmloff/inc/txtvfldi.hxx +++ b/xmloff/inc/txtvfldi.hxx @@ -27,7 +27,6 @@ #include "txtfldi.hxx" #include <com/sun/star/beans/XPropertySet.hpp> -#include <com/sun/star/beans/XPropertySetInfo.hpp> /** helper class: parses value-type and associated value attributes */ diff --git a/xmloff/inc/xexptran.hxx b/xmloff/inc/xexptran.hxx index 3242d5211e3f..b5ed9f5bba2f 100644 --- a/xmloff/inc/xexptran.hxx +++ b/xmloff/inc/xexptran.hxx @@ -21,12 +21,7 @@ #define INCLUDED_XMLOFF_INC_XEXPTRAN_HXX #include <rtl/ustring.hxx> -#include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp> -#include <com/sun/star/drawing/PointSequence.hpp> -#include <com/sun/star/drawing/FlagSequence.hpp> -#include <com/sun/star/awt/Size.hpp> #include <com/sun/star/drawing/HomogenMatrix.hpp> -#include <tools/mapunit.hxx> #include <memory> #include <vector> diff --git a/xmloff/inc/xmlmultiimagehelper.hxx b/xmloff/inc/xmlmultiimagehelper.hxx index 1a4956929812..1661130f3f51 100644 --- a/xmloff/inc/xmlmultiimagehelper.hxx +++ b/xmloff/inc/xmlmultiimagehelper.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_XMLOFF_INC_XMLMULTIIMAGEHELPER_HXX #define INCLUDED_XMLOFF_INC_XMLMULTIIMAGEHELPER_HXX -#include <sal/types.h> #include <xmloff/xmlimp.hxx> diff --git a/xmloff/inc/xmlversion.hxx b/xmloff/inc/xmlversion.hxx index e39cfdda5521..0e2b9d855912 100644 --- a/xmloff/inc/xmlversion.hxx +++ b/xmloff/inc/xmlversion.hxx @@ -28,8 +28,6 @@ #include <xmloff/xmlictxt.hxx> #include <xmloff/xmlexp.hxx> #include <xmloff/xmlimp.hxx> -#include <xmloff/nmspmap.hxx> -#include <xmloff/xmlnmspe.hxx> #include <xmloff/xmltoken.hxx> class XMLVersionListExport : public SvXMLExport diff --git a/xmloff/source/chart/XMLChartPropertyContext.cxx b/xmloff/source/chart/XMLChartPropertyContext.cxx index 6cd56d8e3f44..ea3ead155232 100644 --- a/xmloff/source/chart/XMLChartPropertyContext.cxx +++ b/xmloff/source/chart/XMLChartPropertyContext.cxx @@ -23,6 +23,7 @@ #include "XMLSymbolImageContext.hxx" #include "XMLLabelSeparatorContext.hxx" #include <xmloff/xmlimppr.hxx> +#include <xmloff/xmlprmap.hxx> using namespace ::com::sun::star; diff --git a/xmloff/source/draw/animexp.cxx b/xmloff/source/draw/animexp.cxx index 02a4a071a37e..a972f61a007d 100644 --- a/xmloff/source/draw/animexp.cxx +++ b/xmloff/source/draw/animexp.cxx @@ -19,6 +19,7 @@ #include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/drawing/XShape.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/presentation/AnimationSpeed.hpp> #include <xmloff/unointerfacetouniqueidentifiermapper.hxx> diff --git a/xmloff/source/draw/animimp.cxx b/xmloff/source/draw/animimp.cxx index 19deda30a463..ea01252dc365 100644 --- a/xmloff/source/draw/animimp.cxx +++ b/xmloff/source/draw/animimp.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/presentation/AnimationEffect.hpp> #include <com/sun/star/presentation/AnimationSpeed.hpp> #include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/drawing/XShape.hpp> #include <com/sun/star/xml/sax/XAttributeList.hpp> #include <sax/tools/converter.hxx> diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx index 37e84ee3fcfe..30f2fdf8e1e0 100644 --- a/xmloff/source/meta/xmlversion.cxx +++ b/xmloff/source/meta/xmlversion.cxx @@ -20,6 +20,7 @@ #include <com/sun/star/embed/ElementModes.hpp> #include <unotools/streamwrap.hxx> #include <xmlversion.hxx> +#include <xmloff/xmlnmspe.hxx> #include <xmloff/xmlmetae.hxx> #include <osl/diagnose.h> diff --git a/xmloff/source/style/PagePropertySetContext.cxx b/xmloff/source/style/PagePropertySetContext.cxx index c3c4c4875d57..1af2181c034d 100644 --- a/xmloff/source/style/PagePropertySetContext.cxx +++ b/xmloff/source/style/PagePropertySetContext.cxx @@ -24,6 +24,7 @@ #include <xmloff/PageMasterStyleMap.hxx> #include "XMLFootnoteSeparatorImport.hxx" #include <xmloff/xmlimppr.hxx> +#include <xmloff/xmlprmap.hxx> using namespace ::com::sun::star::uno; |