tdf#42949 Replace property_tre/ptree.hpp with fw declaration header
Similarly to commit fb1b461208e7a2760fa1c018db08606a9b3e435d replace
new instances of boost/property_tree/ptree.hpp with forward declaration
only header, as suggested by IWYU
This reduces includebloat from 28.5G to 22.6G and cold clean build time from
real 68m54,192s
user 947m28,508s
to
real 62m50,689s
user 861m33,131s
on my machine.
Change-Id: I5530f1b4b1a46d9159c752ad5af9a408215baf40
Reviewed-on: https://gerrit.libreoffice.org/84175
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 37f1c1a..f74b537 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -90,6 +90,8 @@
#include <o3tl/safeint.hxx>
#include <vcl/GraphicLoader.hxx>
#include <boost/property_tree/json_parser.hpp>
using namespace ::editeng;
using namespace ::com::sun::star;
using namespace ::com::sun::star::drawing;
diff --git a/include/sfx2/dispatch.hxx b/include/sfx2/dispatch.hxx
index 231d5ee..ee46d5c 100644
--- a/include/sfx2/dispatch.hxx
+++ b/include/sfx2/dispatch.hxx
@@ -29,7 +29,7 @@
#include <o3tl/typed_flags_set.hxx>
#include <o3tl/span.hxx>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ptree_fwd.hpp>
#include <vcl/menu.hxx>
#include <initializer_list>
diff --git a/include/svl/intitem.hxx b/include/svl/intitem.hxx
index c43add2..5bf9785 100644
--- a/include/svl/intitem.hxx
+++ b/include/svl/intitem.hxx
@@ -22,7 +22,7 @@
#include <svl/svldllapi.h>
#include <svl/cintitem.hxx>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree_fwd.hpp>
class SVL_DLLPUBLIC SfxByteItem: public CntByteItem
diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx
index dd74806..d3b95e0 100644
--- a/include/svl/poolitem.hxx
+++ b/include/svl/poolitem.hxx
@@ -29,7 +29,7 @@
#include <svl/svldllapi.h>
#include <svl/typedwhich.hxx>
#include <tools/mapunit.hxx>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree_fwd.hpp>
class IntlWrapper;
diff --git a/include/svx/xgrad.hxx b/include/svx/xgrad.hxx
index 268b0e0..3c9b2b4 100644
--- a/include/svx/xgrad.hxx
+++ b/include/svx/xgrad.hxx
@@ -23,7 +23,7 @@
#include <tools/color.hxx>
#include <svx/svxdllapi.h>
#include <com/sun/star/awt/GradientStyle.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree_fwd.hpp>
class Gradient;
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index acb4fea..c38739f 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -30,6 +30,8 @@
#include <shellimpl.hxx>
#include <boost/property_tree/json_parser.hpp>
using namespace com::sun::star;
int SfxLokHelper::createView()
diff --git a/svl/source/items/intitem.cxx b/svl/source/items/intitem.cxx
index 6bf9b2e..940a40c 100644
--- a/svl/source/items/intitem.cxx
+++ b/svl/source/items/intitem.cxx
@@ -24,6 +24,7 @@
#include <tools/bigint.hxx>
#include <svl/metitem.hxx>
#include <libxml/xmlwriter.h>
#include <boost/property_tree/json_parser.hpp>
// class SfxByteItem
diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx
index daa676a..272beceb5 100644
--- a/svl/source/items/poolitem.cxx
+++ b/svl/source/items/poolitem.cxx
@@ -24,6 +24,7 @@
#include <osl/diagnose.h>
#include <libxml/xmlwriter.h>
#include <typeinfo>
#include <boost/property_tree/json_parser.hpp>
//////////////////////////////////////////////////////////////////////////////
// list of classes derived from SfxPoolItem
diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx
index 66314e5..b986842 100644
--- a/svx/source/tbxctrls/itemwin.cxx
+++ b/svx/source/tbxctrls/itemwin.cxx
@@ -48,6 +48,8 @@
#include <svtools/colorcfg.hxx>
#include <svtools/unitconv.hxx>
#include <boost/property_tree/json_parser.hpp>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::frame;
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx
index 404d2eb..2c50c3e 100644
--- a/svx/source/xoutdev/xattr.cxx
+++ b/svx/source/xoutdev/xattr.cxx
@@ -91,6 +91,7 @@
#include <svx/svxids.hrc>
#include <string>
#include <boost/property_tree/json_parser.hpp>
#include <libxml/xmlwriter.h>
using namespace ::com::sun::star;