From 917b039c99236e0c9de9b6ecb941fd11d8c17fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Vajngerl?= Date: Mon, 11 Nov 2024 22:53:26 +0100 Subject: [PATCH] pdf: forward declare IPDFEncryptor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To compile less when changing PDFEncryptor. Change-Id: I56e19e12494488fedb929998f8e6d0ff3bf8008c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176456 Reviewed-by: Miklos Vajna Tested-by: Jenkins CollaboraOffice Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177875 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- vcl/inc/pdf/pdfwriter_impl.hxx | 3 ++- vcl/source/gdi/pdfwriter_impl.cxx | 2 ++ vcl/source/gdi/pdfwriter_impl2.cxx | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/vcl/inc/pdf/pdfwriter_impl.hxx b/vcl/inc/pdf/pdfwriter_impl.hxx index 3f09038068b8..4b7b72dce4fc 100644 --- a/vcl/inc/pdf/pdfwriter_impl.hxx +++ b/vcl/inc/pdf/pdfwriter_impl.hxx @@ -34,7 +34,6 @@ #include #include #include -#include #include #include @@ -684,6 +683,8 @@ struct PDFDocumentAttachedFile sal_Int32 mnObjectId; }; +class IPDFEncryptor; + } // end pdf namespace class PDFWriterImpl final : public VirtualDevice, public PDFObjectContainer diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 0570e49b6a16..91eb3a1e078c 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -96,6 +96,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index ec4adefa47c7..2f06a292c936 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include