summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2020-10-31 14:32:20 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-11-06 08:18:45 +0100
commit7bdbb50a507df4c419f68d2ae453dd482267f168 (patch)
treec9797c8f343108fedad6f900b1952b69570b517f /chart2
parent6e921467c411718793422a43fb3e3060fdeaeda9 (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 'chart2')
-rw-r--r--chart2/IwyuFilter_chart2.yaml29
-rw-r--r--chart2/qa/extras/chart2geometry.cxx3
-rw-r--r--chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx1
-rw-r--r--chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx1
-rw-r--r--chart2/source/controller/drawinglayer/DrawViewWrapper.cxx2
-rw-r--r--chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx2
-rw-r--r--chart2/source/controller/main/ChartController.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx2
-rw-r--r--chart2/source/controller/main/DrawCommandDispatch.cxx1
-rw-r--r--chart2/source/controller/main/PositionAndSizeHelper.cxx1
-rw-r--r--chart2/source/controller/sidebar/ChartLinePanel.cxx4
-rw-r--r--chart2/source/controller/sidebar/ChartTypePanel.cxx1
-rw-r--r--chart2/source/inc/OPropertySet.hxx1
-rw-r--r--chart2/source/inc/RegressionCalculationHelper.hxx3
-rw-r--r--chart2/source/model/filter/XMLFilter.cxx3
-rw-r--r--chart2/source/tools/AxisHelper.cxx1
-rw-r--r--chart2/source/tools/ChartViewHelper.cxx1
-rw-r--r--chart2/source/tools/DataSourceHelper.cxx2
-rw-r--r--chart2/source/tools/ImplOPropertySet.cxx1
-rw-r--r--chart2/source/view/axes/VPolarAngleAxis.cxx1
-rw-r--r--chart2/source/view/axes/VPolarRadiusAxis.cxx1
-rw-r--r--chart2/source/view/charttypes/CandleStickChart.cxx1
-rw-r--r--chart2/source/view/charttypes/VSeriesPlotter.cxx2
-rw-r--r--chart2/source/view/inc/PlottingPositionHelper.hxx1
-rw-r--r--chart2/source/view/main/LabelPositionHelper.cxx1
-rw-r--r--chart2/source/view/main/PlotterBase.cxx1
-rw-r--r--chart2/source/view/main/VDataSeries.cxx1
28 files changed, 31 insertions, 41 deletions
diff --git a/chart2/IwyuFilter_chart2.yaml b/chart2/IwyuFilter_chart2.yaml
index 5381da1e9cd5..e18c8e3851cb 100644
--- a/chart2/IwyuFilter_chart2.yaml
+++ b/chart2/IwyuFilter_chart2.yaml
@@ -456,6 +456,8 @@ excludelist:
chart2/source/view/axes/VAxisBase.cxx:
# Needed for direct member access
- com/sun/star/drawing/XShapes.hpp
+ # Needed for implicit dtor
+ - com/sun/star/chart2/XAxis.hpp
chart2/source/view/axes/VAxisProperties.cxx:
# Actually used
- com/sun/star/chart2/XAxis.hpp
@@ -464,9 +466,15 @@ excludelist:
chart2/source/view/axes/VCartesianCoordinateSystem.cxx:
# Actually used
- com/sun/star/chart2/XCoordinateSystem.hpp
+ chart2/source/view/axes/VPolarAngleAxis.cxx:
+ # Needed for implicit dtor
+ - com/sun/star/chart2/XAxis.hpp
chart2/source/view/axes/VPolarCoordinateSystem.cxx:
# Actually used
- com/sun/star/chart2/XCoordinateSystem.hpp
+ chart2/source/view/axes/VCartesianAxis.cxx:
+ # Needed for implicit dtor
+ - com/sun/star/chart2/XAxis.hpp
chart2/source/view/axes/VCartesianGrid.hxx:
# base class has to be a complete type
- com/sun/star/beans/XPropertySet.hpp
@@ -486,6 +494,8 @@ excludelist:
# Actually used
- com/sun/star/beans/XPropertySet.hpp
- com/sun/star/drawing/XShape.hpp
+ # Actually used
+ - rtl/math.hxx
chart2/source/view/main/VButton.cxx:
# Actually used
- com/sun/star/lang/XMultiServiceFactory.hpp
@@ -591,6 +601,9 @@ excludelist:
chart2/source/controller/accessibility/AccessibleChartView.cxx:
# Actually used
- com/sun/star/view/XSelectionSupplier.hpp
+ chart2/source/controller/chartapiwrapper/AxisWrapper.cxx:
+ # Needed for implicit dtor
+ - com/sun/star/frame/XModel.hpp
chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx:
# Needed for rtl::math::round
- rtl/math.hxx
@@ -607,6 +620,9 @@ excludelist:
chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx:
# Actually used
- vector
+ chart2/source/controller/chartapiwrapper/WrappedAxisAndGridExistenceProperties.cxx:
+ # Needed for implicit dtor
+ - com/sun/star/chart2/XAxis.hpp
chart2/source/controller/dialogs/ChartTypeDialogController.cxx:
# Actually used
- com/sun/star/chart2/XChartDocument.hpp
@@ -623,6 +639,9 @@ excludelist:
chart2/source/controller/dialogs/dlg_DataEditor.cxx:
# Needed for direct member access
- com/sun/star/awt/XWindow.hpp
+ chart2/source/controller/dialogs/dlg_View3D.cxx:
+ # Needed for implicit dtor
+ - com/sun/star/chart2/XDiagram.hpp
chart2/source/controller/dialogs/RangeSelectionHelper.cxx:
# Actually used
- com/sun/star/chart2/XChartDocument.hpp
@@ -638,6 +657,12 @@ excludelist:
chart2/source/controller/dialogs/tp_ChartType.cxx:
# Actually used
- com/sun/star/chart2/XChartDocument.hpp
+ chart2/source/controller/dialogs/tp_DataSource.cxx:
+ # Needed for implicit dtor
+ - com/sun/star/frame/XModel.hpp
+ chart2/source/controller/itemsetwrapper/TextLabelItemConverter.cxx:
+ # Needed for rtl::math::round
+ - rtl/math.hxx
chart2/source/controller/itemsetwrapper/ItemConverter.cxx:
# Actually used
- com/sun/star/beans/XPropertySet.hpp
@@ -660,6 +685,8 @@ excludelist:
chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx:
# Actually used
- com/sun/star/beans/XPropertySet.hpp
+ # Needed for rtl::math::round
+ - rtl/math.hxx
chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx:
# Needed for rtl::math::round
- rtl/math.hxx
@@ -713,6 +740,8 @@ excludelist:
chart2/source/controller/main/PositionAndSizeHelper.cxx:
# Actually used
- com/sun/star/awt/Rectangle.hpp
+ # Needed for implicit dtor
+ - com/sun/star/chart2/XDiagram.hpp
chart2/source/controller/main/StatusBarCommandDispatch.cxx:
# Actually used
- com/sun/star/view/XSelectionSupplier.hpp
diff --git a/chart2/qa/extras/chart2geometry.cxx b/chart2/qa/extras/chart2geometry.cxx
index 08e909162766..6ded1a5e76ab 100644
--- a/chart2/qa/extras/chart2geometry.cxx
+++ b/chart2/qa/extras/chart2geometry.cxx
@@ -13,11 +13,8 @@
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/chart2/XDataSeries.hpp>
-#include <com/sun/star/chart2/XRegressionCurveContainer.hpp>
-#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
-#include <com/sun/star/lang/XServiceName.hpp>
#include <com/sun/star/packages/zip/ZipFileAccess.hpp>
#include <unotools/ucbstreamhelper.hxx>
diff --git a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
index 6701c1061b01..b2c819a87874 100644
--- a/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/DataSeriesPointWrapper.cxx
@@ -48,7 +48,6 @@
#include <com/sun/star/drawing/LineJoint.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
#include <com/sun/star/drawing/FillStyle.hpp>
-#include <com/sun/star/drawing/Hatch.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <comphelper/sequence.hxx>
#include <cppuhelper/exc_hlp.hxx>
diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
index 5411277f8f0b..1b8c50d385f1 100644
--- a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
+++ b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
@@ -27,9 +27,7 @@
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/frame/Desktop.hpp>
-#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
#include <tools/diagnose_ex.h>
-#include <comphelper/lok.hxx>
#include <sfx2/viewsh.hxx>
namespace chart
diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
index 3ee495b7f84d..07ce43a171b0 100644
--- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
+++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
@@ -18,7 +18,6 @@
*/
#include "tp_3D_SceneIllumination.hxx"
-#include <bitmaps.hlst>
#include <CommonConverters.hxx>
#include <ControllerLockGuard.hxx>
diff --git a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
index 4d9598430d08..9d448b4119fe 100644
--- a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
+++ b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
@@ -34,9 +34,7 @@
#include <svx/unoshape.hxx>
#include <editeng/fhgtitem.hxx>
-#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/frame/XModel.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <sfx2/objsh.hxx>
#include <svx/helperhittest3d.hxx>
diff --git a/chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx b/chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx
index fb829f7be853..645d4bbec094 100644
--- a/chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx
+++ b/chart2/source/controller/inc/dlg_CreationWizard_UNO.hxx
@@ -30,8 +30,6 @@
#include "dlg_CreationWizard.hxx"
#include <tools/link.hxx>
-#include <vcl/vclptr.hxx>
-#include <vcl/vclevent.hxx>
namespace com::sun::star::awt { class XWindow; }
namespace com::sun::star::frame { class XModel; }
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 5e280c94b7c0..552316bdd5eb 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -20,8 +20,6 @@
#include <memory>
#include <sal/config.h>
-#include <set>
-
#include <ChartController.hxx>
#include <servicenames.hxx>
#include <ResId.hxx>
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 51de2bd9ee92..c8c46ba7541f 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -72,7 +72,6 @@
#include <toolkit/awt/vclxmenu.hxx>
#include <sfx2/viewsh.hxx>
-#include <sfx2/ipclient.hxx>
#include <svx/ActionDescriptionProvider.hxx>
#include <svx/obj3d.hxx>
#include <svx/scene3d.hxx>
@@ -87,7 +86,6 @@
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
-#include <sfx2/lokhelper.hxx>
#include <boost/property_tree/json_parser.hpp>
#include <sfx2/dispatch.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
diff --git a/chart2/source/controller/main/DrawCommandDispatch.cxx b/chart2/source/controller/main/DrawCommandDispatch.cxx
index dd690aa1cf1c..00f5b2c51f73 100644
--- a/chart2/source/controller/main/DrawCommandDispatch.cxx
+++ b/chart2/source/controller/main/DrawCommandDispatch.cxx
@@ -27,7 +27,6 @@
#include <o3tl/unsafe_downcast.hxx>
#include <vcl/svapp.hxx>
#include <svl/itempool.hxx>
-#include <editeng/adjustitem.hxx>
#include <editeng/eeitem.hxx>
#include <svx/strings.hrc>
#include <svx/dialmgr.hxx>
diff --git a/chart2/source/controller/main/PositionAndSizeHelper.cxx b/chart2/source/controller/main/PositionAndSizeHelper.cxx
index 84e4325e3ef2..63ddb818fd0d 100644
--- a/chart2/source/controller/main/PositionAndSizeHelper.cxx
+++ b/chart2/source/controller/main/PositionAndSizeHelper.cxx
@@ -19,7 +19,6 @@
#include <PositionAndSizeHelper.hxx>
#include <ControllerLockGuard.hxx>
-#include <com/sun/star/chart2/LegendPosition.hpp>
#include <com/sun/star/chart/ChartLegendExpansion.hpp>
#include <com/sun/star/chart2/XDiagram.hpp>
#include <com/sun/star/chart2/RelativePosition.hpp>
diff --git a/chart2/source/controller/sidebar/ChartLinePanel.cxx b/chart2/source/controller/sidebar/ChartLinePanel.cxx
index cb0b04d07741..3ae57de73739 100644
--- a/chart2/source/controller/sidebar/ChartLinePanel.cxx
+++ b/chart2/source/controller/sidebar/ChartLinePanel.cxx
@@ -9,15 +9,11 @@
#include "ChartLinePanel.hxx"
-#include <PropertyHelper.hxx>
#include <ChartController.hxx>
-#include <svx/xlineit0.hxx>
#include <svx/xlnwtit.hxx>
#include <svx/xlinjoit.hxx>
-#include <svx/xlndsit.hxx>
#include <svx/xlntrit.hxx>
-#include <svx/unomid.hxx>
#include <svx/linectrl.hxx>
#include <svx/tbcontrl.hxx>
diff --git a/chart2/source/controller/sidebar/ChartTypePanel.cxx b/chart2/source/controller/sidebar/ChartTypePanel.cxx
index 2fbe55d3eb10..74a8e7bd0983 100644
--- a/chart2/source/controller/sidebar/ChartTypePanel.cxx
+++ b/chart2/source/controller/sidebar/ChartTypePanel.cxx
@@ -22,7 +22,6 @@
#include <ChartController.hxx>
#include <ChartModelHelper.hxx>
-#include <ChartResourceGroupDlgs.hxx>
#include <ChartResourceGroups.hxx>
#include <ChartTypeDialogController.hxx>
#include <DiagramHelper.hxx>
diff --git a/chart2/source/inc/OPropertySet.hxx b/chart2/source/inc/OPropertySet.hxx
index d2368ecc3ab8..aa0bf918c42c 100644
--- a/chart2/source/inc/OPropertySet.hxx
+++ b/chart2/source/inc/OPropertySet.hxx
@@ -26,7 +26,6 @@
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/beans/XMultiPropertyStates.hpp>
#include <com/sun/star/style/XStyleSupplier.hpp>
-#include "charttoolsdllapi.hxx"
#include <memory>
diff --git a/chart2/source/inc/RegressionCalculationHelper.hxx b/chart2/source/inc/RegressionCalculationHelper.hxx
index 3e4bf485e335..0b9600e99dc5 100644
--- a/chart2/source/inc/RegressionCalculationHelper.hxx
+++ b/chart2/source/inc/RegressionCalculationHelper.hxx
@@ -20,8 +20,7 @@
#include <com/sun/star/uno/Sequence.hxx>
-#include <rtl/math.hxx>
-
+#include <cmath>
#include <utility>
#include <vector>
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx
index 76f88027a0e2..22291fac852e 100644
--- a/chart2/source/model/filter/XMLFilter.cxx
+++ b/chart2/source/model/filter/XMLFilter.cxx
@@ -24,7 +24,6 @@
#include <unotools/saveopt.hxx>
#include <comphelper/genericpropertyset.hxx>
#include <comphelper/propertysetinfo.hxx>
-#include <comphelper/propertysequence.hxx>
#include <comphelper/documentconstants.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <comphelper/sequence.hxx>
@@ -35,7 +34,6 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/xml/sax/InputSource.hpp>
#include <com/sun/star/xml/sax/Writer.hpp>
-#include <com/sun/star/xml/sax/FastToken.hpp>
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
@@ -51,7 +49,6 @@
#include <com/sun/star/document/GraphicStorageHandler.hpp>
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
-#include <xmloff/xmlnamespace.hxx>
using namespace ::com::sun::star;
diff --git a/chart2/source/tools/AxisHelper.cxx b/chart2/source/tools/AxisHelper.cxx
index a68fbc8dfa5e..aefa18b248b2 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -41,7 +41,6 @@
#include <com/sun/star/chart2/XDataSeriesContainer.hpp>
#include <com/sun/star/chart2/data/XDataSource.hpp>
-#include <rtl/math.hxx>
#include <sal/log.hxx>
#include <com/sun/star/lang/XServiceName.hpp>
diff --git a/chart2/source/tools/ChartViewHelper.cxx b/chart2/source/tools/ChartViewHelper.cxx
index a341f8894f14..f11ea7421c5a 100644
--- a/chart2/source/tools/ChartViewHelper.cxx
+++ b/chart2/source/tools/ChartViewHelper.cxx
@@ -21,7 +21,6 @@
#include <servicenames.hxx>
#include <com/sun/star/frame/XModel.hpp>
-#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/util/XModifyListener.hpp>
#include <tools/diagnose_ex.h>
diff --git a/chart2/source/tools/DataSourceHelper.cxx b/chart2/source/tools/DataSourceHelper.cxx
index cb74e60eaa54..3d6bb54592fe 100644
--- a/chart2/source/tools/DataSourceHelper.cxx
+++ b/chart2/source/tools/DataSourceHelper.cxx
@@ -36,8 +36,6 @@
#include <com/sun/star/chart/ErrorBarStyle.hpp>
#include <tools/diagnose_ex.h>
-#include <iterator>
-
namespace chart
{
using namespace ::com::sun::star;
diff --git a/chart2/source/tools/ImplOPropertySet.cxx b/chart2/source/tools/ImplOPropertySet.cxx
index 7d09a329fc33..537adef9d94d 100644
--- a/chart2/source/tools/ImplOPropertySet.cxx
+++ b/chart2/source/tools/ImplOPropertySet.cxx
@@ -21,7 +21,6 @@
#include <CloneHelper.hxx>
#include <algorithm>
-#include <iterator>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/style/XStyle.hpp>
diff --git a/chart2/source/view/axes/VPolarAngleAxis.cxx b/chart2/source/view/axes/VPolarAngleAxis.cxx
index 1a93888b7428..70d9ac85fbb4 100644
--- a/chart2/source/view/axes/VPolarAngleAxis.cxx
+++ b/chart2/source/view/axes/VPolarAngleAxis.cxx
@@ -34,7 +34,6 @@ namespace chart
{
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart2;
-using namespace ::rtl::math;
VPolarAngleAxis::VPolarAngleAxis( const AxisProperties& rAxisProperties
, const uno::Reference< util::XNumberFormatsSupplier >& xNumberFormatsSupplier
diff --git a/chart2/source/view/axes/VPolarRadiusAxis.cxx b/chart2/source/view/axes/VPolarRadiusAxis.cxx
index 6bf0b0f47d3b..08f30252fc91 100644
--- a/chart2/source/view/axes/VPolarRadiusAxis.cxx
+++ b/chart2/source/view/axes/VPolarRadiusAxis.cxx
@@ -27,7 +27,6 @@ namespace chart
{
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart2;
-using namespace ::rtl::math;
VPolarRadiusAxis::VPolarRadiusAxis( const AxisProperties& rAxisProperties
, const uno::Reference< util::XNumberFormatsSupplier >& xNumberFormatsSupplier
diff --git a/chart2/source/view/charttypes/CandleStickChart.cxx b/chart2/source/view/charttypes/CandleStickChart.cxx
index e13c24bf1f27..9c89d5450bb4 100644
--- a/chart2/source/view/charttypes/CandleStickChart.cxx
+++ b/chart2/source/view/charttypes/CandleStickChart.cxx
@@ -32,7 +32,6 @@
namespace chart
{
using namespace ::com::sun::star;
-using namespace ::rtl::math;
using namespace ::com::sun::star::chart2;
CandleStickChart::CandleStickChart( const uno::Reference<XChartType>& xChartTypeModel
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index bda5509c4e4b..d40d52e7bc7a 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -60,7 +60,6 @@
#include <com/sun/star/chart2/XRegressionCurveContainer.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/chart2/RelativePosition.hpp>
-#include <editeng/unoprnms.hxx>
#include <tools/color.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/math.hxx>
@@ -69,7 +68,6 @@
#include <com/sun/star/util/XCloneable.hpp>
#include <com/sun/star/chart2/XCoordinateSystemContainer.hpp>
-#include <com/sun/star/style/ParagraphAdjust.hpp>
#include <com/sun/star/drawing/XShapes.hpp>
#include <unotools/localedatawrapper.hxx>
diff --git a/chart2/source/view/inc/PlottingPositionHelper.hxx b/chart2/source/view/inc/PlottingPositionHelper.hxx
index 763b7205209e..0962868b0f31 100644
--- a/chart2/source/view/inc/PlottingPositionHelper.hxx
+++ b/chart2/source/view/inc/PlottingPositionHelper.hxx
@@ -21,7 +21,6 @@
#include <chartview/ExplicitScaleValues.hxx>
#include <basegfx/range/b2drectangle.hxx>
-#include <rtl/math.hxx>
#include <tools/long.hxx>
#include <com/sun/star/drawing/Direction3D.hpp>
#include <com/sun/star/drawing/Position3D.hpp>
diff --git a/chart2/source/view/main/LabelPositionHelper.cxx b/chart2/source/view/main/LabelPositionHelper.cxx
index 811bf7ad148b..35d19ebc5ab5 100644
--- a/chart2/source/view/main/LabelPositionHelper.cxx
+++ b/chart2/source/view/main/LabelPositionHelper.cxx
@@ -25,6 +25,7 @@
#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
#include <com/sun/star/drawing/TextHorizontalAdjust.hpp>
#include <com/sun/star/drawing/XShape.hpp>
+#include <rtl/math.hxx>
namespace chart
{
diff --git a/chart2/source/view/main/PlotterBase.cxx b/chart2/source/view/main/PlotterBase.cxx
index 6479668c67ef..9de0a8133b4e 100644
--- a/chart2/source/view/main/PlotterBase.cxx
+++ b/chart2/source/view/main/PlotterBase.cxx
@@ -20,7 +20,6 @@
#include <PlotterBase.hxx>
#include <PlottingPositionHelper.hxx>
#include <ShapeFactory.hxx>
-#include <rtl/math.hxx>
#include <osl/diagnose.h>
namespace chart
diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx
index e2f85b71fb83..22e23d27dc80 100644
--- a/chart2/source/view/main/VDataSeries.cxx
+++ b/chart2/source/view/main/VDataSeries.cxx
@@ -26,7 +26,6 @@
#include <RegressionCurveHelper.hxx>
#include <unonames.hxx>
-#include <com/sun/star/chart/DataLabelPlacement.hpp>
#include <com/sun/star/chart/MissingValueTreatment.hpp>
#include <com/sun/star/chart2/DataPointLabel.hpp>
#include <com/sun/star/chart2/Symbol.hpp>