From 8dacd42f3af903ac3daeef8f4dd444ffc7e1a99c Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sun, 10 Jun 2018 23:37:01 +0200 Subject: tdf#42949 Fix IWYU warnings in chart2/source/model/{main,template}/*hxx Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I53b8ac58e5f5a3778835e06a73b5f6e11dce4357 Reviewed-on: https://gerrit.libreoffice.org/55569 Tested-by: Jenkins Reviewed-by: Jochen Nitschke --- chart2/source/model/main/Axis.cxx | 1 + chart2/source/model/main/Axis.hxx | 2 -- chart2/source/model/main/BaseCoordinateSystem.cxx | 1 + chart2/source/model/main/ChartModel.cxx | 1 + chart2/source/model/main/DataPoint.cxx | 1 + chart2/source/model/main/DataPoint.hxx | 3 ++- chart2/source/model/main/DataPointProperties.hxx | 3 ++- chart2/source/model/main/DataSeriesProperties.hxx | 3 ++- chart2/source/model/main/Diagram.cxx | 1 + chart2/source/model/main/FormattedString.cxx | 2 ++ chart2/source/model/main/FormattedString.hxx | 6 ++---- chart2/source/model/main/GridProperties.cxx | 2 ++ chart2/source/model/main/GridProperties.hxx | 2 -- chart2/source/model/main/Legend.cxx | 1 + chart2/source/model/main/Legend.hxx | 2 -- chart2/source/model/main/PageBackground.cxx | 2 ++ chart2/source/model/main/PageBackground.hxx | 4 ++-- chart2/source/model/main/Title.cxx | 2 ++ chart2/source/model/main/Title.hxx | 4 ++-- chart2/source/model/main/UndoManager.hxx | 1 - chart2/source/model/main/Wall.cxx | 1 + chart2/source/model/main/Wall.hxx | 2 -- 22 files changed, 27 insertions(+), 20 deletions(-) (limited to 'chart2/source/model/main') diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx index af7e8338699c..bd9081d6c83e 100644 --- a/chart2/source/model/main/Axis.cxx +++ b/chart2/source/model/main/Axis.cxx @@ -26,6 +26,7 @@ #include #include #include +#include #include #include diff --git a/chart2/source/model/main/Axis.hxx b/chart2/source/model/main/Axis.hxx index 942dd7d4c489..49f4003bbb4f 100644 --- a/chart2/source/model/main/Axis.hxx +++ b/chart2/source/model/main/Axis.hxx @@ -19,13 +19,11 @@ #ifndef INCLUDED_CHART2_SOURCE_MODEL_MAIN_AXIS_HXX #define INCLUDED_CHART2_SOURCE_MODEL_MAIN_AXIS_HXX -#include #include #include #include #include -#include #include #include #include diff --git a/chart2/source/model/main/BaseCoordinateSystem.cxx b/chart2/source/model/main/BaseCoordinateSystem.cxx index dabba0889268..e42ee706e89a 100644 --- a/chart2/source/model/main/BaseCoordinateSystem.cxx +++ b/chart2/source/model/main/BaseCoordinateSystem.cxx @@ -22,6 +22,7 @@ #include #include #include +#include #include "Axis.hxx" #include #include diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index d0ceb73b88e7..08c905f5202e 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -32,6 +32,7 @@ #include "UndoManager.hxx" #include #include +#include #include #include diff --git a/chart2/source/model/main/DataPoint.cxx b/chart2/source/model/main/DataPoint.cxx index b85f3f5ab2e0..edf9ed675b0c 100644 --- a/chart2/source/model/main/DataPoint.cxx +++ b/chart2/source/model/main/DataPoint.cxx @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/chart2/source/model/main/DataPoint.hxx b/chart2/source/model/main/DataPoint.hxx index 6236d210d6b8..de3e5020387c 100644 --- a/chart2/source/model/main/DataPoint.hxx +++ b/chart2/source/model/main/DataPoint.hxx @@ -24,11 +24,12 @@ #include #include #include +#include +#include #include #include #include -#include namespace chart { diff --git a/chart2/source/model/main/DataPointProperties.hxx b/chart2/source/model/main/DataPointProperties.hxx index 6490b5c8cfe5..4b46e1a58397 100644 --- a/chart2/source/model/main/DataPointProperties.hxx +++ b/chart2/source/model/main/DataPointProperties.hxx @@ -21,10 +21,11 @@ #include #include -#include #include +namespace com { namespace sun { namespace star { namespace beans { struct Property; } } } } + namespace chart { diff --git a/chart2/source/model/main/DataSeriesProperties.hxx b/chart2/source/model/main/DataSeriesProperties.hxx index d35c7ce41019..e27b9acd44f2 100644 --- a/chart2/source/model/main/DataSeriesProperties.hxx +++ b/chart2/source/model/main/DataSeriesProperties.hxx @@ -21,10 +21,11 @@ #include #include -#include #include +namespace com { namespace sun { namespace star { namespace beans { struct Property; } } } } + namespace chart { diff --git a/chart2/source/model/main/Diagram.cxx b/chart2/source/model/main/Diagram.cxx index db848302a875..f32cc803688d 100644 --- a/chart2/source/model/main/Diagram.cxx +++ b/chart2/source/model/main/Diagram.cxx @@ -20,6 +20,7 @@ #include #include #include "Wall.hxx" +#include #include #include #include diff --git a/chart2/source/model/main/FormattedString.cxx b/chart2/source/model/main/FormattedString.cxx index ec3e73d6ff92..2a0608a79e08 100644 --- a/chart2/source/model/main/FormattedString.cxx +++ b/chart2/source/model/main/FormattedString.cxx @@ -21,7 +21,9 @@ #include #include +#include #include +#include #include #include diff --git a/chart2/source/model/main/FormattedString.hxx b/chart2/source/model/main/FormattedString.hxx index aee7674081be..9d17d5f3885a 100644 --- a/chart2/source/model/main/FormattedString.hxx +++ b/chart2/source/model/main/FormattedString.hxx @@ -23,13 +23,11 @@ #include #include #include -#include #include -#include -#include #include #include -#include +#include +#include namespace chart { diff --git a/chart2/source/model/main/GridProperties.cxx b/chart2/source/model/main/GridProperties.cxx index 2d09454f069c..514e1d71e39f 100644 --- a/chart2/source/model/main/GridProperties.cxx +++ b/chart2/source/model/main/GridProperties.cxx @@ -21,10 +21,12 @@ #include #include #include +#include #include #include #include #include +#include #include #include diff --git a/chart2/source/model/main/GridProperties.hxx b/chart2/source/model/main/GridProperties.hxx index 090e37edc2df..38d1f9a74ede 100644 --- a/chart2/source/model/main/GridProperties.hxx +++ b/chart2/source/model/main/GridProperties.hxx @@ -22,14 +22,12 @@ #include #include #include -#include #include #include #include #include #include -#include namespace chart { diff --git a/chart2/source/model/main/Legend.cxx b/chart2/source/model/main/Legend.cxx index b989809050ae..91dc73363e4c 100644 --- a/chart2/source/model/main/Legend.cxx +++ b/chart2/source/model/main/Legend.cxx @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include diff --git a/chart2/source/model/main/Legend.hxx b/chart2/source/model/main/Legend.hxx index 74eb63c856b2..516324f2e107 100644 --- a/chart2/source/model/main/Legend.hxx +++ b/chart2/source/model/main/Legend.hxx @@ -19,14 +19,12 @@ #ifndef INCLUDED_CHART2_SOURCE_MODEL_MAIN_LEGEND_HXX #define INCLUDED_CHART2_SOURCE_MODEL_MAIN_LEGEND_HXX -#include #include #include #include #include #include #include -#include #include #include #include diff --git a/chart2/source/model/main/PageBackground.cxx b/chart2/source/model/main/PageBackground.cxx index f89831f91d7d..fab0fe647300 100644 --- a/chart2/source/model/main/PageBackground.cxx +++ b/chart2/source/model/main/PageBackground.cxx @@ -22,8 +22,10 @@ #include #include #include +#include #include +#include #include #include #include diff --git a/chart2/source/model/main/PageBackground.hxx b/chart2/source/model/main/PageBackground.hxx index 2863dedde35e..9157eb9d90c9 100644 --- a/chart2/source/model/main/PageBackground.hxx +++ b/chart2/source/model/main/PageBackground.hxx @@ -20,13 +20,13 @@ #define INCLUDED_CHART2_SOURCE_MODEL_MAIN_PAGEBACKGROUND_HXX #include -#include #include +#include +#include #include #include #include -#include #include namespace chart diff --git a/chart2/source/model/main/Title.cxx b/chart2/source/model/main/Title.cxx index 1611e5d31ca5..b334dc21f1b4 100644 --- a/chart2/source/model/main/Title.cxx +++ b/chart2/source/model/main/Title.cxx @@ -24,11 +24,13 @@ #include #include #include +#include #include #include #include #include #include +#include #include #include #include diff --git a/chart2/source/model/main/Title.hxx b/chart2/source/model/main/Title.hxx index a402fb9f514a..9326b54b21ca 100644 --- a/chart2/source/model/main/Title.hxx +++ b/chart2/source/model/main/Title.hxx @@ -19,15 +19,15 @@ #ifndef INCLUDED_CHART2_SOURCE_MODEL_MAIN_TITLE_HXX #define INCLUDED_CHART2_SOURCE_MODEL_MAIN_TITLE_HXX -#include #include #include #include #include #include #include -#include #include +#include +#include namespace chart { diff --git a/chart2/source/model/main/UndoManager.hxx b/chart2/source/model/main/UndoManager.hxx index 47b4e82aca2b..c599113d45cb 100644 --- a/chart2/source/model/main/UndoManager.hxx +++ b/chart2/source/model/main/UndoManager.hxx @@ -22,7 +22,6 @@ #include #include -#include #include diff --git a/chart2/source/model/main/Wall.cxx b/chart2/source/model/main/Wall.cxx index f5c4c0a1f317..1262e3d214a1 100644 --- a/chart2/source/model/main/Wall.cxx +++ b/chart2/source/model/main/Wall.cxx @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/chart2/source/model/main/Wall.hxx b/chart2/source/model/main/Wall.hxx index 25bc245292a0..a3112a614bda 100644 --- a/chart2/source/model/main/Wall.hxx +++ b/chart2/source/model/main/Wall.hxx @@ -24,9 +24,7 @@ #include #include #include -#include -#include #include #include -- cgit