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

QOutputDev Class Reference

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

Inheritance diagram for QOutputDev:

Inheritance graph
[legend]
Collaboration diagram for QOutputDev:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QOutputDev (QWidget *parent=0, const char *name=0, int flags=0)
virtual ~QOutputDev ()
virtual GBool upsideDown ()
virtual GBool useDrawChar ()
virtual GBool interpretType3Chars ()
virtual GBool needNonText ()
virtual void startPage (int pageNum, GfxState *state)
virtual void endPage ()
virtual void drawLink (Link *link, Catalog *catalog)
virtual void saveState (GfxState *state)
virtual void restoreState (GfxState *state)
virtual void updateAll (GfxState *state)
virtual void updateCTM (GfxState *state, fp_t m11, fp_t m12, fp_t m21, fp_t m22, fp_t m31, fp_t m32)
virtual void updateLineDash (GfxState *state)
virtual void updateFlatness (GfxState *state)
virtual void updateLineJoin (GfxState *state)
virtual void updateLineCap (GfxState *state)
virtual void updateMiterLimit (GfxState *state)
virtual void updateLineWidth (GfxState *state)
virtual void updateFillColor (GfxState *state)
virtual void updateStrokeColor (GfxState *state)
virtual void updateFont (GfxState *state)
virtual void stroke (GfxState *state)
virtual void fill (GfxState *state)
virtual void eoFill (GfxState *state)
virtual void clip (GfxState *state)
virtual void eoClip (GfxState *state)
virtual void beginString (GfxState *state, GString *s)
virtual void endString (GfxState *state)
virtual void drawChar (GfxState *state, fp_t x, fp_t y, fp_t dx, fp_t dy, fp_t originX, fp_t originY, CharCode code, Unicode *u, int uLen)
virtual void drawImageMask (GfxState *state, Object *ref, Stream *str, int width, int height, GBool invert, GBool inlineImg)
virtual void drawImage (GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, int *maskColors, GBool inlineImg)
GBool findText (Unicode *s, int len, GBool top, GBool bottom, int *xMin, int *yMin, int *xMax, int *yMax)
bool findText (const QString &str, int &l, int &t, int &w, int &h, bool top=0, bool bottom=0)
bool findText (const QString &str, QRect &r, bool top=0, bool bottom=0)
QString getText (int left, int top, int width, int height)
QString getText (const QRect &r)

Protected Member Functions

virtual void drawContents (QPainter *p, int, int, int, int)

Private Member Functions

QFont matchFont (GfxFont *, fp_t m11, fp_t m12, fp_t m21, fp_t m22)
void updateLineAttrs (GfxState *state, GBool updateDash)
void doFill (GfxState *state, bool winding)
void doClip (GfxState *state, bool winding)
int convertPath (GfxState *state, QPointArray &points, QArray< int > &lengths)
int convertSubpath (GfxState *state, GfxSubpath *subpath, QPointArray &points)

Private Attributes

QPixmap * m_pixmap
QPainter * m_painter
TextPagem_text

Constructor & Destructor Documentation

QOutputDev::QOutputDev QWidget *  parent = 0,
const char *  name = 0,
int  flags = 0
 

Definition at line 181 of file QOutputDev.cpp.

References gFalse, m_painter, m_pixmap, and m_text.

QOutputDev::~QOutputDev  )  [virtual]
 

Definition at line 190 of file QOutputDev.cpp.

References m_painter, m_pixmap, and m_text.


Member Function Documentation

void QOutputDev::beginString GfxState state,
GString s
[virtual]
 

Reimplemented from OutputDev.

Definition at line 622 of file QOutputDev.cpp.

References m_text.

void QOutputDev::clip GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 495 of file QOutputDev.cpp.

References doClip().

Referenced by QPEOutputDev::drawContents().

int QOutputDev::convertPath GfxState state,
QPointArray &  points,
QArray< int > &  lengths
[private]
 

Definition at line 557 of file QOutputDev.cpp.

References convertSubpath(), and i.

Referenced by doClip(), doFill(), and stroke().

int QOutputDev::convertSubpath GfxState state,
GfxSubpath subpath,
QPointArray &  points
[private]
 

Definition at line 577 of file QOutputDev.cpp.

References i, lrint(), p, Opie::MM::x, and Opie::MM::y.

Referenced by convertPath().

void QOutputDev::doClip GfxState state,
bool  winding
[private]
 

Definition at line 505 of file QOutputDev.cpp.

References convertPath(), data, i, len, m_painter, printf, qApp, QPDFDBG, Opie::MM::x, and Opie::MM::y.

Referenced by clip(), and eoClip().

void QOutputDev::doFill GfxState state,
bool  winding
[private]
 

Definition at line 462 of file QOutputDev.cpp.

References convertPath(), i, len, m_painter, printf, qApp, QPDFDBG, Opie::MM::x, and Opie::MM::y.

Referenced by eoFill(), and fill().

void QOutputDev::drawChar GfxState state,
fp_t  x,
fp_t  y,
fp_t  dx,
fp_t  dy,
fp_t  originX,
fp_t  originY,
CharCode  code,
Unicode *  u,
int  uLen
[virtual]
 

Definition at line 632 of file QOutputDev.cpp.

References data, drawText(), Opie::Core::endl(), fillRect(), i, lrint(), m_painter, m_text, printf, qApp, QPDFDBG, qWarning(), and str.

void QOutputDev::drawContents QPainter *  p,
int  ,
int  ,
int  ,
int 
[protected, virtual]
 

Reimplemented in QPEOutputDev.

Definition at line 1047 of file QOutputDev.cpp.

References fillRect(), and m_pixmap.

Referenced by QPEOutputDev::drawContents().

void QOutputDev::drawImage GfxState state,
Object ref,
Stream str,
int  width,
int  height,
GfxImageColorMap colorMap,
int *  maskColors,
GBool  inlineImg
[virtual]
 

Reimplemented from OutputDev.

Definition at line 845 of file QOutputDev.cpp.

References Stream::close(), Opie::Core::endl(), fabs(), g, Stream::getChar(), GfxImageColorMap::getNumPixelComps(), gfxColorMaxComps, i, lrint(), m_painter, printf, qApp, QPDFDBG, qWarning(), reset(), scanlines, val, Opie::MM::x, and Opie::MM::y.

Referenced by drawImageMask().

void QOutputDev::drawImageMask GfxState state,
Object ref,
Stream str,
int  width,
int  height,
GBool  invert,
GBool  inlineImg
[virtual]
 

Reimplemented from OutputDev.

Definition at line 731 of file QOutputDev.cpp.

References alpha, Stream::close(), drawImage(), Opie::Core::endl(), fabs(), g, Stream::getChar(), i, lrint(), m_painter, printf, qApp, QPDFDBG, qWarning(), reset(), scanlines, val, Opie::MM::x, and Opie::MM::y.

void QOutputDev::drawLink Link link,
Catalog catalog
[virtual]
 

Reimplemented from OutputDev.

Definition at line 233 of file QOutputDev.cpp.

References OutputDev::cvtUserToDev(), m_painter, Opie::MM::x, and Opie::MM::y.

void QOutputDev::endPage  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 216 of file QOutputDev.cpp.

References m_painter, m_text, printf, and QPDFDBG.

void QOutputDev::endString GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 627 of file QOutputDev.cpp.

References m_text.

void QOutputDev::eoClip GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 500 of file QOutputDev.cpp.

References doClip().

void QOutputDev::eoFill GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 448 of file QOutputDev.cpp.

References doFill().

void QOutputDev::fill GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 443 of file QOutputDev.cpp.

References doFill().

Referenced by startPage().

bool QOutputDev::findText const QString str,
QRect &  r,
bool  top = 0,
bool  bottom = 0
 

Definition at line 977 of file QOutputDev.cpp.

References findText(), l, and t.

bool QOutputDev::findText const QString str,
int &  l,
int &  t,
int &  w,
int &  h,
bool  top = 0,
bool  bottom = 0
 

Definition at line 988 of file QOutputDev.cpp.

References findText(), i, len, lrint(), m_text, and s.

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

Definition at line 1014 of file QOutputDev.cpp.

References lrint(), and m_text.

Referenced by findText().

QString QOutputDev::getText const QRect &  r  ) 
 

Definition at line 1040 of file QOutputDev.cpp.

References getText(), height, and width.

QString QOutputDev::getText int  left,
int  top,
int  width,
int  height
 

Definition at line 1032 of file QOutputDev.cpp.

References m_text, and str.

Referenced by getText().

virtual GBool QOutputDev::interpretType3Chars  )  [inline, virtual]
 

Implements OutputDev.

Definition at line 86 of file QOutputDev.h.

References gFalse.

QFont QOutputDev::matchFont GfxFont ,
fp_t  m11,
fp_t  m12,
fp_t  m21,
fp_t  m22
[private]
 

Definition at line 99 of file QOutputDev.cpp.

References f, lrint(), m_name, printf, QPDFDBG, size, and sqrt().

Referenced by updateFont().

virtual GBool QOutputDev::needNonText  )  [inline, virtual]
 

Reimplemented from OutputDev.

Definition at line 89 of file QOutputDev.h.

References gFalse.

void QOutputDev::restoreState GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 262 of file QOutputDev.cpp.

References m_painter, printf, and QPDFDBG.

void QOutputDev::saveState GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 252 of file QOutputDev.cpp.

References m_painter, printf, QPDFDBG, and save().

void QOutputDev::startPage int  pageNum,
GfxState state
[virtual]
 

Reimplemented from OutputDev.

Reimplemented in QPEOutputDev.

Definition at line 198 of file QOutputDev.cpp.

References fill(), height, lrint(), m_painter, m_pixmap, m_text, printf, QPDFDBG, and width.

Referenced by QPEOutputDev::startPage().

void QOutputDev::stroke GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 415 of file QOutputDev.cpp.

References convertPath(), i, len, m_painter, printf, qApp, QPDFDBG, Opie::MM::x, and Opie::MM::y.

void QOutputDev::updateAll GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 274 of file QOutputDev.cpp.

References gTrue, updateFillColor(), updateFont(), updateLineAttrs(), and updateStrokeColor().

void QOutputDev::updateCTM GfxState state,
fp_t  m11,
fp_t  m12,
fp_t  m21,
fp_t  m22,
fp_t  m31,
fp_t  m32
[virtual]
 

Definition at line 284 of file QOutputDev.cpp.

References gTrue, and updateLineAttrs().

void QOutputDev::updateFillColor GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 379 of file QOutputDev.cpp.

References m_painter, and q_col().

Referenced by updateAll().

void QOutputDev::updateFlatness GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 294 of file QOutputDev.cpp.

References printf, and QPDFDBG.

void QOutputDev::updateFont GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 397 of file QOutputDev.cpp.

References m_painter, m_text, and matchFont().

Referenced by updateAll().

void QOutputDev::updateLineAttrs GfxState state,
GBool  updateDash
[private]
 

Definition at line 321 of file QOutputDev.cpp.

References GfxState::getLineJoin(), lrint(), m_painter, q_col(), qWarning(), and width.

Referenced by updateAll(), updateCTM(), updateLineCap(), updateLineDash(), updateLineJoin(), and updateLineWidth().

void QOutputDev::updateLineCap GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 305 of file QOutputDev.cpp.

References gFalse, and updateLineAttrs().

void QOutputDev::updateLineDash GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 289 of file QOutputDev.cpp.

References gTrue, and updateLineAttrs().

void QOutputDev::updateLineJoin GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 300 of file QOutputDev.cpp.

References gFalse, and updateLineAttrs().

void QOutputDev::updateLineWidth GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 316 of file QOutputDev.cpp.

References gFalse, and updateLineAttrs().

void QOutputDev::updateMiterLimit GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 311 of file QOutputDev.cpp.

References printf, and QPDFDBG.

void QOutputDev::updateStrokeColor GfxState state  )  [virtual]
 

Reimplemented from OutputDev.

Definition at line 387 of file QOutputDev.cpp.

References m_painter, and q_col().

Referenced by updateAll().

virtual GBool QOutputDev::upsideDown  )  [inline, virtual]
 

Implements OutputDev.

Definition at line 79 of file QOutputDev.h.

References gTrue.

virtual GBool QOutputDev::useDrawChar  )  [inline, virtual]
 

Implements OutputDev.

Definition at line 82 of file QOutputDev.h.

References gTrue.


Member Data Documentation

QPainter* QOutputDev::m_painter [private]
 

Definition at line 168 of file QOutputDev.h.

Referenced by doClip(), doFill(), drawChar(), drawImage(), drawImageMask(), drawLink(), endPage(), QOutputDev(), restoreState(), saveState(), startPage(), stroke(), updateFillColor(), updateFont(), updateLineAttrs(), updateStrokeColor(), and ~QOutputDev().

QPixmap* QOutputDev::m_pixmap [private]
 

Definition at line 167 of file QOutputDev.h.

Referenced by drawContents(), QOutputDev(), startPage(), and ~QOutputDev().

TextPage* QOutputDev::m_text [private]
 

Definition at line 170 of file QOutputDev.h.

Referenced by beginString(), drawChar(), endPage(), endString(), findText(), getText(), QOutputDev(), startPage(), updateFont(), and ~QOutputDev().


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