diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-20 15:48:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-20 15:48:05 +0000 |
commit | 37e4920a310c265848ebbf7205efad26f71d928c (patch) | |
tree | e05132017c5449d546b8fad49921f26a1a18c04b /sdext/source | |
parent | 26bd210ccd6033cf5d06a2de35047757d8f7a6e7 (diff) |
continue to implement drawChar for unpatched popplers without drawChar2 hack
Change-Id: Id4ad86f3f563d88777352722e397cd77cfad45e4
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 7 | ||||
-rw-r--r-- | sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx index 838ada552ef9..e7853394506c 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -834,10 +834,17 @@ void PDFOutDev::eoClip(GfxState *state) local offset of character (zero for horizontal writing mode). not taken into account for output pos updates. Used for vertical writing. */ +#ifdef SYSTEM_POPPLER_HEADERS +void PDFOutDev::drawChar(GfxState *state, double x, double y, + double dx, double dy, + double originX, double originY, + CharCode, int /*nBytes*/, Unicode *u, int uLen) +#else void PDFOutDev::drawChar2(GfxState *state, double x, double y, double dx, double dy, double originX, double originY, CharCode, int /*nBytes*/, Unicode *u, int uLen) +#endif { assert(state); diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx index a577e5ec9b42..b8414c7fb69d 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx @@ -220,10 +220,17 @@ namespace pdfi virtual void eoClip(GfxState *state) SAL_OVERRIDE; //----- text drawing +#ifdef SYSTEM_POPPLER_HEADERS + virtual void drawChar(GfxState *state, double x, double y, + double dx, double dy, + double originX, double originY, + CharCode code, int nBytes, Unicode *u, int uLen) SAL_OVERRIDE; +#else virtual void drawChar2(GfxState *state, double x, double y, double dx, double dy, double originX, double originY, CharCode code, int nBytes, Unicode *u, int uLen) SAL_OVERRIDE; +#endif virtual void drawString(GfxState *state, GooString *s) SAL_OVERRIDE; virtual void endTextObject(GfxState *state) SAL_OVERRIDE; |