mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-30 01:38:07 +00:00
- enable TEXTWORDOUTLIST, we need functioncs from it to populate abstract KPDFTextPage
- add several functions to xpdf's TextWord: * int getRotation() - returns the rotation of the word * double getEdge(int x) - returns the edge of char nr. x * double getBaseline() - returns the baseline of the word * GBool hasSpaceAfter() - returns the spaceafter property (is the word followed a space) * TextWord* nextWord() - returns the pointer to the next word in the current textline - undefine HAVE_MKSTEMPS, my libkdefakes doesnt seem to have it svn path=/trunk/playground/graphics/oKular/kpdf/; revision=434858
This commit is contained in:
parent
2b626c0baf
commit
a4730dc8ae
3 changed files with 7 additions and 4 deletions
|
@ -7,5 +7,5 @@
|
|||
#define HAVE_FREETYPE_H HAVE_FREETYPE
|
||||
#define HAVE_FREETYPE_FREETYPE_H HAVE_FREETYPE
|
||||
#define OPI_SUPPORT 0
|
||||
#define TEXTOUT_WORD_LIST 0
|
||||
#define HAVE_MKSTEMPS 1 //libkdefakes provides it
|
||||
#define TEXTOUT_WORD_LIST 1
|
||||
|
||||
|
|
|
@ -135,7 +135,6 @@ GBool PDFDoc::setup(GString *ownerPassword, GString *userPassword) {
|
|||
|
||||
str->setPos(pos);
|
||||
|
||||
|
||||
// check header
|
||||
checkHeader();
|
||||
|
||||
|
|
|
@ -99,7 +99,11 @@ public:
|
|||
int getCharPos() { return charPos; }
|
||||
int getCharLen() { return charLen; }
|
||||
#endif
|
||||
|
||||
int getRotation() { return rot ; }
|
||||
double getEdge(int i) { return edge[i]; }
|
||||
double getBaseline () { return base; }
|
||||
GBool hasSpaceAfter () { return spaceAfter; }
|
||||
TextWord* nextWord () { return next; };
|
||||
private:
|
||||
|
||||
int rot; // rotation, multiple of 90 degrees
|
||||
|
|
Loading…
Reference in a new issue