- 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:
Piotr Szymanski 2005-07-15 17:05:01 +00:00
parent 2b626c0baf
commit a4730dc8ae
3 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -135,7 +135,6 @@ GBool PDFDoc::setup(GString *ownerPassword, GString *userPassword) {
str->setPos(pos);
// check header
checkHeader();

View file

@ -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