include/comphelper/dumpxmltostring.hxx | 4 +++- include/sfx2/lokunocmdlist.hxx | 1 + include/svx/EnhancedCustomShapeGeometry.hxx | 2 ++ include/svx/annotation/Annotation.hxx | 1 - include/svx/annotation/AnnotationEnumeration.hxx | 10 ++++++++++ include/svx/fontworkgallery.hxx | 1 + include/svx/grafctrl.hxx | 1 + include/svx/grfflt.hxx | 3 +++ include/svx/unobrushitemhelper.hxx | 2 ++ include/svx/unoprov.hxx | 2 ++ include/vcl/bitmap/Vectorizer.hxx | 1 + include/vcl/font/FontDataContainer.hxx | 1 + include/vcl/graphic/BitmapHelper.hxx | 4 ++++ include/vcl/inetimg.hxx | 1 + include/vcl/uitest/uiobject.hxx | 7 ++++--- 15 files changed, 36 insertions(+), 5 deletions(-)
New commits: commit 93f7837306f06956ed6eacb3bb7afa1a218101df Author: Gabor Kelemen <[email protected]> AuthorDate: Fri Oct 17 13:23:22 2025 +0200 Commit: Gabor Kelemen <[email protected]> CommitDate: Sat Nov 8 09:37:47 2025 +0100 Fix some non self contained headers in include/ for future IWYU treatment Change-Id: I0261f2c8b2597f0144a3a2a3d6bfdff13492da01 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192752 Tested-by: Jenkins Reviewed-by: Gabor Kelemen <[email protected]> diff --git a/include/comphelper/dumpxmltostring.hxx b/include/comphelper/dumpxmltostring.hxx index 72cdafee35fe..dd91a613651c 100644 --- a/include/comphelper/dumpxmltostring.hxx +++ b/include/comphelper/dumpxmltostring.hxx @@ -11,7 +11,9 @@ #include <sal/config.h> -#include <libxml/tree.h> +#include <rtl/ustring.hxx> + +#include <libxml/parser.h> #include <libxml/xmlwriter.h> #include <new> diff --git a/include/sfx2/lokunocmdlist.hxx b/include/sfx2/lokunocmdlist.hxx index 8472497793bd..34fd3f52985f 100644 --- a/include/sfx2/lokunocmdlist.hxx +++ b/include/sfx2/lokunocmdlist.hxx @@ -8,6 +8,7 @@ */ #include <sfx2/dllapi.h> +#include <string_view> #include <map> enum class PayloadType diff --git a/include/svx/EnhancedCustomShapeGeometry.hxx b/include/svx/EnhancedCustomShapeGeometry.hxx index 626cede2a88d..06679eb18002 100644 --- a/include/svx/EnhancedCustomShapeGeometry.hxx +++ b/include/svx/EnhancedCustomShapeGeometry.hxx @@ -25,6 +25,8 @@ #include <svx/svxdllapi.h> #include <o3tl/typed_flags_set.hxx> +#include <span> + struct SvxMSDffVertPair { sal_Int32 nValA; diff --git a/include/svx/annotation/Annotation.hxx b/include/svx/annotation/Annotation.hxx index e0180d72d431..d3810a50cdd3 100644 --- a/include/svx/annotation/Annotation.hxx +++ b/include/svx/annotation/Annotation.hxx @@ -19,7 +19,6 @@ #include <com/sun/star/office/XAnnotation.hpp> #include <comphelper/compbase.hxx> #include <cppuhelper/propertysetmixin.hxx> -#include <svx/annotation/Annotation.hxx> #include <svx/annotation/TextAPI.hxx> #include <tools/UniqueID.hxx> #include <vcl/bitmap.hxx> diff --git a/include/svx/annotation/AnnotationEnumeration.hxx b/include/svx/annotation/AnnotationEnumeration.hxx index a7befcb26946..bd15f9af1ef4 100644 --- a/include/svx/annotation/AnnotationEnumeration.hxx +++ b/include/svx/annotation/AnnotationEnumeration.hxx @@ -22,10 +22,20 @@ #include <sal/config.h> #include <svx/svxdllapi.h> +#include <vector> + namespace com::sun::star::office { class XAnnotationEnumeration; } +namespace rtl +{ +template <class reference_type> class Reference; +} +namespace com::sun::star::uno +{ +template <class interface_type> class Reference; +} namespace sdr::annotation { diff --git a/include/svx/fontworkgallery.hxx b/include/svx/fontworkgallery.hxx index 1ff0cd5207ca..f4eb1c03f981 100644 --- a/include/svx/fontworkgallery.hxx +++ b/include/svx/fontworkgallery.hxx @@ -23,6 +23,7 @@ #include <svx/svxdllapi.h> #include <vcl/weld.hxx> +#include <com/sun/star/frame/XFrame.hpp> #include <map> #include <vector> diff --git a/include/svx/grafctrl.hxx b/include/svx/grafctrl.hxx index bdb49f323e18..a4918385eda9 100644 --- a/include/svx/grafctrl.hxx +++ b/include/svx/grafctrl.hxx @@ -24,6 +24,7 @@ #include <sfx2/tbxctrl.hxx> #include <svx/svxdllapi.h> +class SfxItemSet; class SvxGrafToolBoxControl : public SfxToolBoxControl { diff --git a/include/svx/grfflt.hxx b/include/svx/grfflt.hxx index b6f4662defbe..137c642f9423 100644 --- a/include/svx/grfflt.hxx +++ b/include/svx/grfflt.hxx @@ -22,6 +22,9 @@ #include <svx/svxdllapi.h> +#include <functional> + +class Graphic; class GraphicObject; class SfxRequest; class SfxItemSet; diff --git a/include/svx/unobrushitemhelper.hxx b/include/svx/unobrushitemhelper.hxx index 1bb7d8f1422b..142008764621 100644 --- a/include/svx/unobrushitemhelper.hxx +++ b/include/svx/unobrushitemhelper.hxx @@ -22,6 +22,8 @@ #include <svx/svxdllapi.h> #include <editeng/brushitem.hxx> +class SfxItemSet; + // Helper function definitions for UNO API fallbacks to replace SvxBrushItem. The // idea is to have fallbacks to create a SvxBrushItem if needed for backwards compatibility // if needed from the SfxItemSet and vice versa. This is used in cases where e.g. UNO API diff --git a/include/svx/unoprov.hxx b/include/svx/unoprov.hxx index 768a5a120d52..2e6ad57b8e11 100644 --- a/include/svx/unoprov.hxx +++ b/include/svx/unoprov.hxx @@ -20,6 +20,8 @@ #ifndef INCLUDED_SVX_UNOPROV_HXX #define INCLUDED_SVX_UNOPROV_HXX +#include <config_options.h> + #include <com/sun/star/uno/Sequence.hxx> #include <svl/itemprop.hxx> #include <svx/svxdllapi.h> diff --git a/include/vcl/bitmap/Vectorizer.hxx b/include/vcl/bitmap/Vectorizer.hxx index 1210c113d720..307ff0e895b7 100644 --- a/include/vcl/bitmap/Vectorizer.hxx +++ b/include/vcl/bitmap/Vectorizer.hxx @@ -20,6 +20,7 @@ #pragma once #include <vcl/dllapi.h> +#include <tools/long.hxx> class GDIMetaFile; class Bitmap; diff --git a/include/vcl/font/FontDataContainer.hxx b/include/vcl/font/FontDataContainer.hxx index 159eb4964420..b034ffd3dfdd 100644 --- a/include/vcl/font/FontDataContainer.hxx +++ b/include/vcl/font/FontDataContainer.hxx @@ -9,6 +9,7 @@ #pragma once +#include <sal/types.h> #include <vector> namespace font diff --git a/include/vcl/graphic/BitmapHelper.hxx b/include/vcl/graphic/BitmapHelper.hxx index 97398e590479..64faaaa38936 100644 --- a/include/vcl/graphic/BitmapHelper.hxx +++ b/include/vcl/graphic/BitmapHelper.hxx @@ -18,6 +18,10 @@ namespace com::sun::star::awt { class XBitmap; } +namespace com::sun::star::graphic +{ +class XGraphic; +} namespace com::sun::star::uno { class Any; diff --git a/include/vcl/inetimg.hxx b/include/vcl/inetimg.hxx index 99c9436d2fd5..9cb4a11060c4 100644 --- a/include/vcl/inetimg.hxx +++ b/include/vcl/inetimg.hxx @@ -24,6 +24,7 @@ #include <sot/formats.hxx> #include <utility> +class SvStream; class INetImage { diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx index 9aedc5a3eeb0..f7a15e9211c6 100644 --- a/include/vcl/uitest/uiobject.hxx +++ b/include/vcl/uitest/uiobject.hxx @@ -13,7 +13,9 @@ #include <map> #include <memory> -#include <vcl/vclevent.hxx> +// hack needed for treelistbox.hxx inclusion here +#define VCL_INTERNALS +#include <vcl/toolkit/treelistbox.hxx> #include <vcl/vclptr.hxx> #include <vcl/dllapi.h> #include <vcl/window.hxx> @@ -25,7 +27,6 @@ class CheckBox; class ComboBox; class Dialog; class Edit; -class IconView; class ListBox; class RadioButton; class TabControl; @@ -39,7 +40,7 @@ class VclExpander; class VclDrawingArea; class VclMultiLineEdit; class MenuButton; -namespace vcl { class Window; } +enum class VclEventId; namespace weld { class CustomWidgetController; } typedef std::map<OUString, OUString> StringMap;
