summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-08-29 12:11:41 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2023-08-29 13:52:13 +0200
commit74b3a0fe9840c6076fd805db7cf8a66f056c5832 (patch)
tree6fec53295052c5ab84b774be446294d618002675 /include/vcl
parentaf0f610f90b315c20773c39579b70fb6e456412b (diff)
vcl,sw: PDF export: move SwEnhancedPDFExportHelper statics to member
New struct SwEnhancedPDFState to contain the state; it is transported from SwEnhancedPDFExportHelper instance to SwTaggedPDFHelper instances via vcl::PDFExtOutDevData. Change-Id: I0c0f10587ce8bc6f5f1125da4761b7504ad2b970 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156241 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/pdfextoutdevdata.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/pdfextoutdevdata.hxx b/include/vcl/pdfextoutdevdata.hxx
index fe7425d26d82..6fe6eb1f391d 100644
--- a/include/vcl/pdfextoutdevdata.hxx
+++ b/include/vcl/pdfextoutdevdata.hxx
@@ -31,6 +31,7 @@
class Graphic;
class GDIMetaFile;
class SdrObject;
+struct SwEnhancedPDFState;
namespace vcl
{
@@ -96,6 +97,8 @@ class VCL_DLLPUBLIC PDFExtOutDevData final : public ExtOutDevData
// map from annotation SdrObject to annotation index
::std::map<SdrObject const*, ::std::vector<sal_Int32>> m_ScreenAnnotations;
+ SwEnhancedPDFState * m_pSwPDFState = nullptr;
+
public:
PDFExtOutDevData( const OutputDevice& rOutDev );
@@ -153,6 +156,9 @@ public:
std::vector< PDFExtOutDevBookmarkEntry >& GetBookmarks() { return maBookmarks;}
const std::vector<OUString>& GetChapterNames() const { return maChapterNames; }
+ SwEnhancedPDFState * GetSwPDFState() { return m_pSwPDFState; }
+ void SetSwPDFState(SwEnhancedPDFState *const pSwPDFState) { m_pSwPDFState = pSwPDFState; }
+
const Graphic& GetCurrentGraphic() const;
/** Start a new group of render output