Commit a4730dc8 authored by Piotr Szymanski's avatar Piotr Szymanski

- 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
parent 2b626c0b
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment