Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TextPage Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/qpdf/xpdf/TextOutputDev.h>

Collaboration diagram for TextPage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TextPage (GBool rawOrderA)
 ~TextPage ()
void updateFont (GfxState *state)
void beginString (GfxState *state)
void addChar (GfxState *state, fouble x, fouble y, fouble dx, fouble dy, Unicode *u, int uLen)
void endString ()
void coalesce ()
GBool findText (Unicode *s, int len, GBool top, GBool bottom, fouble *xMin, fouble *yMin, fouble *xMax, fouble *yMax)
GStringgetText (fouble xMin, fouble yMin, fouble xMax, fouble yMax)
void dump (void *outputStream, TextOutputFunc outputFunc)
void clear ()

Private Attributes

GBool rawOrder
TextStringcurStr
fouble fontSize
TextStringyxStrings
TextStringxyStrings
TextStringyxCur1
TextStringyxCur2
int nest

Constructor & Destructor Documentation

TextPage::TextPage GBool  rawOrderA  ) 
 

Definition at line 89 of file TextOutputDev.cc.

References curStr, fontSize, nest, NULL, rawOrder, xyStrings, yxCur1, yxCur2, and yxStrings.

TextPage::~TextPage  ) 
 

Definition at line 99 of file TextOutputDev.cc.

References clear().


Member Function Documentation

void TextPage::addChar GfxState state,
fouble  x,
fouble  y,
fouble  dx,
fouble  dy,
Unicode *  u,
int  uLen
 

Definition at line 150 of file TextOutputDev.cc.

References TextString::addChar(), beginString(), curStr, endString(), GfxState::getCharSpace(), GfxState::getHorizScaling(), i, TextString::len, GfxState::textTransformDelta(), GfxState::transform(), GfxState::transformDelta(), TextString::xRight, TextString::yMax, and TextString::yMin.

Referenced by TextOutputDev::drawChar().

void TextPage::beginString GfxState state  ) 
 

Definition at line 139 of file TextOutputDev.cc.

References curStr, fontSize, and nest.

Referenced by addChar(), and TextOutputDev::beginString().

void TextPage::clear  ) 
 

Definition at line 606 of file TextOutputDev.cc.

References curStr, NULL, xyStrings, yxCur1, yxCur2, TextString::yxNext, and yxStrings.

Referenced by TextOutputDev::startPage(), and ~TextPage().

void TextPage::coalesce  ) 
 

Definition at line 228 of file TextOutputDev.cc.

References d, grealloc(), i, TextString::len, len, printf, rawOrder, TextString::size, TextString::text, TextString::xMax, TextString::xMin, TextString::xRight, TextString::yMax, TextString::yMin, TextString::yxNext, and yxStrings.

Referenced by TextOutputDev::endPage().

void TextPage::dump void *  outputStream,
TextOutputFunc  outputFunc
 

Definition at line 444 of file TextOutputDev.cc.

References buf, col, TextString::col, d, UnicodeMap::decRefCnt(), eolDOS, eolMac, eolUnix, GlobalParams::getTextEncoding(), GlobalParams::getTextEOL(), globalParams, i, len, TextString::len, UnicodeMap::mapUnicode(), NULL, printf, rawOrder, TextString::text, TextString::xMax, TextString::xMin, TextString::xyNext, xyStrings, TextString::yMax, TextString::yMin, TextString::yxNext, and yxStrings.

Referenced by TextOutputDev::endPage().

void TextPage::endString  ) 
 

Definition at line 176 of file TextOutputDev.cc.

References curStr, TextString::len, nest, NULL, rawOrder, TextString::xMax, TextString::xMin, TextString::yMax, TextString::yMin, yxCur1, yxCur2, TextString::yxNext, and yxStrings.

Referenced by addChar(), and TextOutputDev::endString().

GBool TextPage::findText Unicode *  s,
int  len,
GBool  top,
GBool  bottom,
fouble xMin,
fouble yMin,
fouble xMax,
fouble yMax
 

Definition at line 288 of file TextOutputDev.cc.

References gFalse, gTrue, i, TextString::len, p, str, TextString::text, Opie::MM::x, TextString::xMax, TextString::xMin, TextString::xRight, TextString::yMax, TextString::yMin, TextString::yxNext, and yxStrings.

Referenced by TextOutputDev::findText().

GString * TextPage::getText fouble  xMin,
fouble  yMin,
fouble  xMax,
fouble  yMax
 

Definition at line 366 of file TextOutputDev.cc.

References GString::append(), buf, UnicodeMap::decRefCnt(), eolDOS, eolMac, eolUnix, GString::getLength(), GlobalParams::getTextEncoding(), GlobalParams::getTextEOL(), gFalse, globalParams, gTrue, i, TextString::len, len, UnicodeMap::mapUnicode(), s, TextString::text, TextString::xMax, TextString::xMin, TextString::xRight, Opie::MM::y, TextString::yMax, TextString::yMin, TextString::yxNext, and yxStrings.

void TextPage::updateFont GfxState state  ) 
 

Definition at line 103 of file TextOutputDev.cc.

References code, fabs(), fontSize, fontType3, GfxState::getFont(), GfxFont::getFontMatrix(), GfxState::getTransformedFontSize(), GfxFont::getType(), and name.

Referenced by TextOutputDev::updateFont().


Member Data Documentation

TextString* TextPage::curStr [private]
 

Definition at line 113 of file TextOutputDev.h.

Referenced by addChar(), beginString(), clear(), endString(), and TextPage().

fouble TextPage::fontSize [private]
 

Definition at line 114 of file TextOutputDev.h.

Referenced by beginString(), TextPage(), and updateFont().

int TextPage::nest [private]
 

Definition at line 120 of file TextOutputDev.h.

Referenced by beginString(), endString(), and TextPage().

GBool TextPage::rawOrder [private]
 

Definition at line 111 of file TextOutputDev.h.

Referenced by coalesce(), dump(), endString(), and TextPage().

TextString* TextPage::xyStrings [private]
 

Definition at line 117 of file TextOutputDev.h.

Referenced by clear(), dump(), and TextPage().

TextString* TextPage::yxCur1 [private]
 

Definition at line 118 of file TextOutputDev.h.

Referenced by clear(), endString(), and TextPage().

TextString * TextPage::yxCur2 [private]
 

Definition at line 118 of file TextOutputDev.h.

Referenced by clear(), endString(), and TextPage().

TextString* TextPage::yxStrings [private]
 

Definition at line 116 of file TextOutputDev.h.

Referenced by clear(), coalesce(), dump(), endString(), findText(), getText(), and TextPage().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:53:46 2005 for OPIE by  doxygen 1.4.2