From 4048c36c29c9888af2d923dfa16e1dd299fc9de6 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Fri, 23 Jan 2026 17:55:47 +0100 Subject: [PATCH] tdf#146619 Use more forward declarations in include/i18nlangtag/ Change-Id: If59fc8ae20dd1d935adbd17c3cac1b2db142b555 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198235 Tested-by: Jenkins Reviewed-by: Gabor Kelemen --- include/editeng/hangulhanja.hxx | 2 ++ include/i18nlangtag/applelangid.hxx | 3 ++- include/i18nlangtag/mslangid.hxx | 4 +++- vcl/source/fontsubset/sft.cxx | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/editeng/hangulhanja.hxx b/include/editeng/hangulhanja.hxx index 767e743a2608..8d5fc5733568 100644 --- a/include/editeng/hangulhanja.hxx +++ b/include/editeng/hangulhanja.hxx @@ -23,6 +23,8 @@ #include #include +#include + namespace com::sun::star::lang { struct Locale; } namespace com::sun::star::uno { class XComponentContext; } namespace com::sun::star::uno { template class Sequence; } diff --git a/include/i18nlangtag/applelangid.hxx b/include/i18nlangtag/applelangid.hxx index 0733d92079f8..ed617eba25dc 100644 --- a/include/i18nlangtag/applelangid.hxx +++ b/include/i18nlangtag/applelangid.hxx @@ -12,7 +12,8 @@ #ifndef INCLUDED_I18NLANGTAG_APPLELANGID_H #define INCLUDED_I18NLANGTAG_APPLELANGID_H -#include +#include +class LanguageTag; enum class AppleLanguageId : unsigned short { diff --git a/include/i18nlangtag/mslangid.hxx b/include/i18nlangtag/mslangid.hxx index e94b871ddc1e..5d4bfab27156 100644 --- a/include/i18nlangtag/mslangid.hxx +++ b/include/i18nlangtag/mslangid.hxx @@ -24,12 +24,14 @@ #include #include -#include +#include #include #include #include +namespace com::sun::star::lang { struct Locale; } + struct IsoLanguageCountryEntry; struct IsoLanguageScriptCountryEntry; struct Bcp47CountryEntry; diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index f1c7408e7c93..5718e91d7718 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -37,6 +37,7 @@ #endif #include "ttcr.hxx" #include +#include #include #include #include