summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-12-30 12:23:50 +0100
committerTomaž Vajngerl <quikee@gmail.com>2019-12-30 17:41:15 +0100
commit2351ee06d6c4d5af35b46d63510d93c618ad0276 (patch)
tree9ad296dc2c8cb2ebded6186419c65e2b3f2620c9 /vcl
parentfffc244319a4f39beef3739c9d08c087e713f36b (diff)
pdf: move FontEmit, Glyph, FontSubset, EmbedFont from PDFWriterImpl
Change-Id: I8032a31d3237459713ec386c6810b6f05daabf08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86005 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.hxx51
1 files changed, 27 insertions, 24 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx
index 3696316c0626..e93d4005121e 100644
--- a/vcl/source/gdi/pdfwriter_impl.hxx
+++ b/vcl/source/gdi/pdfwriter_impl.hxx
@@ -286,6 +286,33 @@ public:
}
};
+struct FontEmit
+{
+ sal_Int32 m_nFontID;
+ std::map<sal_GlyphId, GlyphEmit> m_aMapping;
+
+ explicit FontEmit( sal_Int32 nID ) : m_nFontID( nID ) {}
+};
+
+struct Glyph
+{
+ sal_Int32 m_nFontID;
+ sal_uInt8 m_nSubsetGlyphID;
+};
+
+struct FontSubset
+{
+ std::vector< FontEmit > m_aSubsets;
+ std::map<sal_GlyphId, Glyph> m_aMapping;
+};
+
+struct EmbedFont
+{
+ sal_Int32 m_nNormalFontID;
+
+ EmbedFont() : m_nNormalFontID( 0 ) {}
+};
+
}
class PDFWriterImpl : public VirtualDevice
@@ -295,30 +322,6 @@ class PDFWriterImpl : public VirtualDevice
public:
friend struct vcl::pdf::PDFPage;
- struct FontEmit
- {
- sal_Int32 m_nFontID;
- std::map<sal_GlyphId, GlyphEmit> m_aMapping;
-
- explicit FontEmit( sal_Int32 nID ) : m_nFontID( nID ) {}
- };
- struct Glyph
- {
- sal_Int32 m_nFontID;
- sal_uInt8 m_nSubsetGlyphID;
- };
- struct FontSubset
- {
- std::vector< FontEmit > m_aSubsets;
- std::map<sal_GlyphId, Glyph> m_aMapping;
- };
- struct EmbedFont
- {
- sal_Int32 m_nNormalFontID;
-
- EmbedFont() : m_nNormalFontID( 0 ) {}
- };
-
struct PDFDest
{
sal_Int32 m_nPage;