include/vcl/pdfread.hxx              |   17 +++++++++++++----
 sd/source/filter/pdf/sdpdffilter.cxx |    2 ++
 vcl/qa/cppunit/PDFiumLibraryTest.cxx |    2 ++
 vcl/source/filter/ipdf/pdfread.cxx   |    2 ++
 4 files changed, 19 insertions(+), 4 deletions(-)

New commits:
commit 6178cb8e6f352051e7753551aed7c2f8d52592a2
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Sat Jan 17 10:39:20 2026 +0100
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Sat Jan 24 13:23:19 2026 +0100

    tdf#146619 Use more forward declarations in include/vcl/pdfread.hxx
    
    this was skipped in previous runs, since it contains some code behind #if
    
    After inspecting these, it seems like the removals should not cause trouble.
    
    Change-Id: I8b856cbf7ded7c62634286a53f1ef41e99adb286
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197495
    Tested-by: Jenkins
    Reviewed-by: Gabor Kelemen <[email protected]>

diff --git a/include/vcl/pdfread.hxx b/include/vcl/pdfread.hxx
index 16b38dd19582..40054651ea1e 100644
--- a/include/vcl/pdfread.hxx
+++ b/include/vcl/pdfread.hxx
@@ -12,15 +12,24 @@
 
 #include <vector>
 #include <tools/gen.hxx>
-#include <tools/stream.hxx>
 #include <tools/color.hxx>
 #include <vcl/graph.hxx>
 #include <basegfx/range/b2drectangle.hxx>
 #include <com/sun/star/util/DateTime.hpp>
-#include <com/sun/star/task/XInteractionHandler.hpp>
 
-#include <vcl/pdf/PDFAnnotationSubType.hxx>
-#include <vcl/pdf/PDFAnnotationMarker.hxx>
+class SvStream;
+namespace com::sun::star::task
+{
+class XInteractionHandler;
+}
+namespace vcl::pdf
+{
+enum class PDFAnnotationSubType;
+}
+namespace vcl::pdf
+{
+struct PDFAnnotationMarker;
+}
 
 namespace vcl
 {
diff --git a/sd/source/filter/pdf/sdpdffilter.cxx 
b/sd/source/filter/pdf/sdpdffilter.cxx
index e8540104e021..1591217843b6 100644
--- a/sd/source/filter/pdf/sdpdffilter.cxx
+++ b/sd/source/filter/pdf/sdpdffilter.cxx
@@ -30,6 +30,8 @@
 
 #include <vcl/graph.hxx>
 #include <vcl/pdfread.hxx>
+#include <vcl/pdf/PDFAnnotationMarker.hxx>
+#include <vcl/pdf/PDFAnnotationSubType.hxx>
 
 #include <Annotation.hxx>
 #include <DrawDocShell.hxx>
diff --git a/vcl/qa/cppunit/PDFiumLibraryTest.cxx 
b/vcl/qa/cppunit/PDFiumLibraryTest.cxx
index 8ac9463d9c0e..1bd2d3b1cd8a 100644
--- a/vcl/qa/cppunit/PDFiumLibraryTest.cxx
+++ b/vcl/qa/cppunit/PDFiumLibraryTest.cxx
@@ -25,6 +25,8 @@
 #include <tools/stream.hxx>
 
 #include <vcl/filter/PDFiumLibrary.hxx>
+#include <vcl/pdf/PDFAnnotationMarker.hxx>
+#include <vcl/pdf/PDFAnnotationSubType.hxx>
 #include <vcl/pdf/PDFPageObjectType.hxx>
 #include <vcl/pdf/PDFTextRenderMode.hxx>
 #include <vcl/pdfread.hxx>
diff --git a/vcl/source/filter/ipdf/pdfread.cxx 
b/vcl/source/filter/ipdf/pdfread.cxx
index 9a5f80f99a09..483f791c97cf 100644
--- a/vcl/source/filter/ipdf/pdfread.cxx
+++ b/vcl/source/filter/ipdf/pdfread.cxx
@@ -21,6 +21,8 @@
 #include <tools/UnitConversion.hxx>
 
 #include <vcl/filter/PDFiumLibrary.hxx>
+#include <vcl/pdf/PDFAnnotationMarker.hxx>
+#include <vcl/pdf/PDFAnnotationSubType.hxx>
 #include <vcl/pdf/PDFPageObjectType.hxx>
 #include <sal/log.hxx>
 

Reply via email to