tdf#146619 Use more forward declarations in include/tools

Change-Id: Iab2938f82a9fd7ef3334d69c4fd07a9d963a9e24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198237
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
This commit is contained in:
Gabor Kelemen
2026-02-01 09:23:01 +01:00
parent a39863f20c
commit c511c65434
18 changed files with 46 additions and 7 deletions
+3
View File
@@ -305,6 +305,9 @@ excludelist:
include/tools/simdsupport.hxx:
# Needed for CPU intrinsics detection to work
- emmintrin.h
include/tools/XmlWriter.hxx:
# Not to be confused with std <concepts>
- o3tl/concepts.hxx
include/unotest/bootstrapfixturebase.hxx:
# These are used in virtually all test files, too much work to move them everywhere
- cppunit/TestAssert.h
+8 -4
View File
@@ -20,13 +20,17 @@
#define INCLUDED_TOOLS_GENERICTYPESERIALIZER_HXX
#include <tools/toolsdllapi.h>
#include <tools/color.hxx>
#include <tools/gen.hxx>
#include <tools/stream.hxx>
#include <tools/fract.hxx>
class Color;
class Fraction;
class Point;
class Size;
class SvStream;
namespace tools
{
class Rectangle;
class TOOLS_DLLPUBLIC GenericTypeSerializer
{
public:
+6 -1
View File
@@ -10,7 +10,12 @@
#ifndef INCLUDED_TOOLS_DATETIMEUTILS_HXX
#define INCLUDED_TOOLS_DATETIMEUTILS_HXX
#include <tools/datetime.hxx>
//#include <tools/datetime.hxx>
#include <rtl/ustring.hxx>
#include <tools/toolsdllapi.h>
class Date;
class DateTime;
// This function converts a 'DateTime' object to an 'OString' object
TOOLS_DLLPUBLIC OString DateTimeToOString(const DateTime& rDateTime);
+4 -1
View File
@@ -20,7 +20,10 @@
#define INCLUDED_TOOLS_GLOBNAME_HXX
#include <tools/toolsdllapi.h>
#include <com/sun/star/uno/Sequence.hxx>
#include <rtl/ustring.hxx>
namespace com::sun::star::uno { template <class E> class Sequence; }
struct SAL_WARN_UNUSED SvGUID
{
+3 -1
View File
@@ -21,8 +21,8 @@
#include <rtl/ustring.hxx>
#include <tools/toolsdllapi.h>
#include <tools/gen.hxx>
#include <tools/degree.hxx>
#include <tools/long.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <o3tl/cow_wrapper.hxx>
@@ -57,8 +57,10 @@ enum class PolyFlags : sal_uInt8
Symmetric // smooth and symmetrical transition between curves
};
class Point;
class SvStream;
class ImplPolygon;
namespace tools { class Rectangle; }
struct ImplPolyPolygon;
namespace basegfx
+2
View File
@@ -27,6 +27,8 @@
#include <sal/log.hxx>
#include <utility>
#include <com/sun/star/uno/Sequence.hxx>
#define STREAM_BUFFER_SIZE 2048
+2
View File
@@ -57,6 +57,8 @@
#include <o3tl/cppunittraitshelper.hxx>
#include <tools/datetimeutils.hxx>
#include <tools/datetime.hxx>
#include <tools/time.hxx>
#include <officecfg/Office/Common.hxx>
#include <oox/drawingml/drawingmltypes.hxx>
#include <unotools/streamwrap.hxx>
+2
View File
@@ -34,6 +34,8 @@
#include <modcfg.hxx>
#include <caption.hxx>
#include <com/sun/star/uno/Sequence.hxx>
using namespace com::sun::star::uno;
#define GLOB_NAME_CALC 0
@@ -23,6 +23,7 @@
#include <cppunit/extensions/HelperMacros.h>
#include <tools/GenericTypeSerializer.hxx>
#include <tools/fract.hxx>
#include <tools/stream.hxx>
#include <tools/gen.hxx>
+1
View File
@@ -11,6 +11,7 @@
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <tools/gen.hxx>
#include <tools/poly.hxx>
namespace
+1
View File
@@ -8,6 +8,7 @@
*/
#include <tools/datetimeutils.hxx>
#include <tools/datetime.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/ustrbuf.hxx>
+2
View File
@@ -26,6 +26,8 @@
#include <tools/stream.hxx>
#include <tools/globname.hxx>
#include <com/sun/star/uno/Sequence.hxx>
// SvGlobalName ----------------------------------------------------------------
SvGlobalName::SvGlobalName( const css::uno::Sequence < sal_Int8 >& aSeq )
@@ -20,6 +20,10 @@
#include <tools/GenericTypeSerializer.hxx>
#include <sal/config.h>
#include <sal/log.hxx>
#include <tools/color.hxx>
#include <tools/fract.hxx>
#include <tools/gen.hxx>
#include <tools/stream.hxx>
#include <vector>
namespace tools
+1
View File
@@ -18,6 +18,7 @@
*/
#include <filter/BmpReader.hxx>
#include <tools/stream.hxx>
#include <vcl/TypeSerializer.hxx>
bool BmpReader(SvStream& rStream, Graphic& rGraphic)
+1
View File
@@ -24,6 +24,7 @@
#include <vcl/metaactiontypes.hxx>
#include <rtl/crc.h>
#include <tools/solar.h>
#include <tools/stream.hxx>
#include <tools/vcompat.hxx>
#include <osl/thread.h>
+2
View File
@@ -20,9 +20,11 @@
#include <vcl/TypeSerializer.hxx>
#include <vcl/animate/Animation.hxx>
#include <vcl/BinaryDataContainer.hxx>
#include <tools/color.hxx>
#include <tools/mapunit.hxx>
#include <tools/vcompat.hxx>
#include <tools/fract.hxx>
#include <tools/stream.hxx>
#include <sal/log.hxx>
#include <comphelper/fileformat.h>
#include <vcl/filter/SvmReader.hxx>
+1
View File
@@ -22,6 +22,7 @@
#include <tools/fract.hxx>
#include <tools/GenericTypeSerializer.hxx>
#include <tools/mapunit.hxx>
#include <tools/stream.hxx>
#include <utility>
#include <vcl/outdev.hxx>
#include <vcl/svapp.hxx>
+2
View File
@@ -17,6 +17,8 @@
#include <tools/stream.hxx>
#include <sot/storage.hxx>
#include <com/sun/star/uno/Sequence.hxx>
namespace com::sun::star::io
{
class XInputStream;