summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pdfwriter_impl.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-12-30 18:05:15 +0100
committerTomaž Vajngerl <quikee@gmail.com>2019-12-30 23:14:35 +0100
commita8085e5a0765ae078b3125dec7e05eddaecf9a1d (patch)
tree94ba883580efa6d3e033d456587d53e2afc23234 /vcl/source/gdi/pdfwriter_impl.hxx
parent26000465c11656b4189b524546c661cacd555e36 (diff)
pdf: move PDFStructureElement out of PDFWriterImpl class
Change-Id: I41b2f314f3eef7b28af7e1592a7167a216c1fd7c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86027 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.hxx')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.hxx66
1 files changed, 33 insertions, 33 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx
index eefb11b79d4b..0ece9135782c 100644
--- a/vcl/source/gdi/pdfwriter_impl.hxx
+++ b/vcl/source/gdi/pdfwriter_impl.hxx
@@ -487,6 +487,39 @@ struct PDFStructureElementKid // for Kids entries
PDFStructureElementKid( sal_Int32 MCID, sal_Int32 nPage ) : nObject( nPage ), nMCID( MCID ) {}
};
+struct PDFStructureElement
+{
+ sal_Int32 m_nObject;
+ PDFWriter::StructElement m_eType;
+ OString m_aAlias;
+ sal_Int32 m_nOwnElement; // index into structure vector
+ sal_Int32 m_nParentElement; // index into structure vector
+ sal_Int32 m_nFirstPageObject;
+ bool m_bOpenMCSeq;
+ std::list< sal_Int32 > m_aChildren; // indexes into structure vector
+ std::list< PDFStructureElementKid > m_aKids;
+ std::map<PDFWriter::StructAttribute, PDFStructureAttribute >
+ m_aAttributes;
+ tools::Rectangle m_aBBox;
+ OUString m_aActualText;
+ OUString m_aAltText;
+ css::lang::Locale m_aLocale;
+
+ // m_aContents contains the element's marked content sequence
+ // as pairs of (page nr, MCID)
+
+ PDFStructureElement()
+ : m_nObject( 0 ),
+ m_eType( PDFWriter::NonStructElement ),
+ m_nOwnElement( -1 ),
+ m_nParentElement( -1 ),
+ m_nFirstPageObject( 0 ),
+ m_bOpenMCSeq( false )
+ {
+ }
+
+};
+
}
class PDFWriterImpl : public VirtualDevice
@@ -496,39 +529,6 @@ class PDFWriterImpl : public VirtualDevice
public:
friend struct vcl::pdf::PDFPage;
- struct PDFStructureElement
- {
- sal_Int32 m_nObject;
- PDFWriter::StructElement m_eType;
- OString m_aAlias;
- sal_Int32 m_nOwnElement; // index into structure vector
- sal_Int32 m_nParentElement; // index into structure vector
- sal_Int32 m_nFirstPageObject;
- bool m_bOpenMCSeq;
- std::list< sal_Int32 > m_aChildren; // indexes into structure vector
- std::list< PDFStructureElementKid > m_aKids;
- std::map<PDFWriter::StructAttribute, PDFStructureAttribute >
- m_aAttributes;
- tools::Rectangle m_aBBox;
- OUString m_aActualText;
- OUString m_aAltText;
- css::lang::Locale m_aLocale;
-
- // m_aContents contains the element's marked content sequence
- // as pairs of (page nr, MCID)
-
- PDFStructureElement()
- : m_nObject( 0 ),
- m_eType( PDFWriter::NonStructElement ),
- m_nOwnElement( -1 ),
- m_nParentElement( -1 ),
- m_nFirstPageObject( 0 ),
- m_bOpenMCSeq( false )
- {
- }
-
- };
-
struct PDFAddStream
{
OUString m_aMimeType;