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

BuffDoc Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-reader/BuffDoc.h>

Collaboration diagram for BuffDoc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

QString about ()
bool findanchor (const QString &nm)
void setHyphenThreshold (int _v)
void setSaveData (unsigned char *&data, unsigned short &len, unsigned char *src, unsigned short srclen)
void putSaveData (unsigned char *&src, unsigned short &srclen)
void suspend ()
 ~BuffDoc ()
 BuffDoc ()
bool empty ()
void setfilter (CFilterChain *_f)
CList< Bkmk > * getbkmklist ()
bool hasrandomaccess ()
bool iseol ()
int openfile (QWidget *_parent, const char *src)
tchar getch ()
void getch (tchar &ch, CStyle &sty, unsigned long &pos)
void setwidth (int w)
QImage * getPicture (unsigned long tgt)
unsigned int startSection ()
unsigned int endSection ()
void resetPos ()
unsigned int locate ()
unsigned int explocate ()
void setContinuous (bool _b)
MarkupType PreferredMarkup ()
linkType hyperlink (unsigned int n, unsigned int noff, QString &wrd, QString &nm)
size_t getHome ()
void locate (unsigned int n)
bool getline (CDrawBuffer *buff, int w, unsigned short _lborder, unsigned short _rborder, bool hyphenate, int availht)
bool getline (CDrawBuffer *buff, int w, int cw, unsigned short _lborder, unsigned short _rborder, int availht)
void sizes (unsigned long &fs, unsigned long &ts)
int getpara (CBuffer &buff)
int getsentence (CBuffer &buff)
void saveposn (const QString &f, size_t posn)
void writeposn (const QString &f, size_t posn)
linkType forward (QString &f, size_t &loc)
linkType back (QString &f, size_t &loc)
bool hasnavigation ()
bool getFile (const QString &href, QString &nm)
QString getTableAsHtml (unsigned long loc)

Private Attributes

CDrawBuffer lastword
CSizeBuffer lastsizes
CSizeBuffer allsizes
size_t laststartline
bool lastispara
CExpander_Interfaceexp
CFilterChainfilt
int m_hyphenthreshold

Constructor & Destructor Documentation

BuffDoc::~BuffDoc  )  [inline]
 

Definition at line 53 of file BuffDoc.h.

References exp, and filt.

BuffDoc::BuffDoc  )  [inline]
 

Definition at line 58 of file BuffDoc.h.

References CDrawBuffer::empty(), exp, filt, lastword, and NULL.


Member Function Documentation

QString BuffDoc::about  ) 
 

Definition at line 734 of file BuffDoc.cpp.

References CFilterChain::about(), and filt.

Referenced by QTReader::about().

linkType BuffDoc::back QString f,
size_t &  loc
[inline]
 

Definition at line 146 of file BuffDoc.h.

References CFilterChain::back(), and filt.

Referenced by QTReader::goBack().

bool BuffDoc::empty  )  [inline]
 

Definition at line 65 of file BuffDoc.h.

References exp, and NULL.

Referenced by QTReader::drawFonts(), QTReader::DrawScroll(), QTReader::empty(), QTReader::fillbuffer(), and QTReader::resizeEvent().

unsigned int BuffDoc::endSection  )  [inline]
 

Definition at line 110 of file BuffDoc.h.

References CExpander_Interface::endSection(), exp, and NULL.

Referenced by QTReader::actionDrag(), QTReaderApp::actionscroll(), QTReaderApp::do_jump(), QTReader::DrawScroll(), QTReader::fillbuffer(), QTReaderApp::gotoEnd(), QTReader::mouseMoveEvent(), QTReader::mousePressEvent(), QTReader::NavDown(), QTReaderApp::OnRedraw(), QTReaderApp::showinfo(), and QTReaderApp::UpdateStatus().

unsigned int BuffDoc::explocate  )  [inline]
 

Definition at line 113 of file BuffDoc.h.

References exp, CExpander_Interface::locate(), and NULL.

Referenced by QTReader::explocate(), QTReader::processmousewordevent(), and QTReader::readAloud().

bool BuffDoc::findanchor const QString nm  )  [inline]
 

Definition at line 22 of file BuffDoc.h.

References filt, and CFilterChain::findanchor().

Referenced by QTReader::gotoLink(), and QTReader::mouseReleaseEvent().

linkType BuffDoc::forward QString f,
size_t &  loc
[inline]
 

Definition at line 145 of file BuffDoc.h.

References filt, and CFilterChain::forward().

Referenced by QTReader::goForward().

CList<Bkmk>* BuffDoc::getbkmklist  )  [inline]
 

Definition at line 72 of file BuffDoc.h.

Referenced by QTReader::getbkmklist().

void BuffDoc::getch tchar ch,
CStyle sty,
unsigned long &  pos
[inline]
 

Definition at line 87 of file BuffDoc.h.

References exp, filt, CFilterChain::getch(), NULL, and UEOF.

tchar BuffDoc::getch  )  [inline]
 

Definition at line 76 of file BuffDoc.h.

References exp, filt, CFilterChain::getch(), NULL, and UEOF.

Referenced by QTReader::getch(), getline(), getpara(), and getsentence().

bool BuffDoc::getFile const QString href,
QString nm
[inline]
 

Definition at line 148 of file BuffDoc.h.

References exp, CExpander_Interface::getFile(), and NULL.

Referenced by QTReader::gotoLink(), and QTReader::mouseReleaseEvent().

size_t BuffDoc::getHome  )  [inline]
 

Definition at line 117 of file BuffDoc.h.

References exp, CExpander_Interface::getHome(), and NULL.

Referenced by QTReader::goHome().

bool BuffDoc::getline CDrawBuffer buff,
int  w,
int  cw,
unsigned short  _lborder,
unsigned short  _rborder,
int  availht
 

Definition at line 550 of file BuffDoc.cpp.

References CDrawBuffer::addch(), CDrawBuffer::empty(), exp, getch(), laststartline, CExpander_Interface::locate(), NULL, CDrawBuffer::offset(), CDrawBuffer::truncate(), and UEOF.

bool BuffDoc::getline CDrawBuffer buff,
int  w,
unsigned short  _lborder,
unsigned short  _rborder,
bool  hyphenate,
int  availht
 

Definition at line 157 of file BuffDoc.cpp.

References CDrawBuffer::empty(), exp, CDrawBuffer::firststyle(), getch(), CStyle::getJustify(), i, isconsonant(), isletter(), isvowel(), lastispara, lastsizes, laststartline, CDrawBuffer::laststyle(), lastword, len, CBufferFace< T >::length(), CExpander_Interface::locate(), m_AlignCentre, m_hyphenthreshold, NULL, CDrawBuffer::setright(), and UEOF.

Referenced by QTReader::getline().

int BuffDoc::getpara CBuffer buff  )  [inline]
 

Definition at line 132 of file BuffDoc.h.

References exp, getch(), i, laststartline, CExpander_Interface::locate(), and UEOF.

Referenced by QTReaderApp::do_autogen(), and QTReader::readAloud().

QImage* BuffDoc::getPicture unsigned long  tgt  )  [inline]
 

Definition at line 108 of file BuffDoc.h.

References exp, CExpander_Interface::getPicture(), and NULL.

Referenced by QTReader::gotoLink(), and QTReader::mouseReleaseEvent().

int BuffDoc::getsentence CBuffer buff  ) 
 

Definition at line 739 of file BuffDoc.cpp.

References exp, getch(), laststartline, CExpander_Interface::locate(), and UEOF.

QString BuffDoc::getTableAsHtml unsigned long  loc  )  [inline]
 

Definition at line 152 of file BuffDoc.h.

References exp, filt, CFilterChain::getTableAsHtml(), and NULL.

Referenced by QTReader::mouseReleaseEvent().

bool BuffDoc::hasnavigation  )  [inline]
 

Definition at line 147 of file BuffDoc.h.

References exp, filt, CFilterChain::hasnavigation(), and NULL.

Referenced by QTReader::goBack(), QTReader::goForward(), QTReader::goHome(), QTReader::NavDown(), QTReader::NavUp(), and QTReader::processmousepositionevent().

bool BuffDoc::hasrandomaccess  )  [inline]
 

Definition at line 73 of file BuffDoc.h.

References exp, CExpander_Interface::hasrandomaccess(), and NULL.

linkType BuffDoc::hyperlink unsigned int  n,
unsigned int  noff,
QString wrd,
QString nm
 

Definition at line 27 of file BuffDoc.cpp.

References eLink, CDrawBuffer::empty(), eNone, exp, filt, CFilterChain::hyperlink(), lastispara, lastsizes, laststartline, lastword, CExpander_Interface::locate(), and NULL.

Referenced by QTReader::gotoLink(), and QTReader::mouseReleaseEvent().

bool BuffDoc::iseol  )  [inline]
 

Definition at line 74 of file BuffDoc.h.

References lastword.

void BuffDoc::locate unsigned int  n  ) 
 

Definition at line 48 of file BuffDoc.cpp.

References CDrawBuffer::empty(), exp, filt, lastispara, lastsizes, laststartline, lastword, CFilterChain::locate(), and NULL.

unsigned int BuffDoc::locate  )  [inline]
 

Definition at line 112 of file BuffDoc.h.

References exp, laststartline, and NULL.

Referenced by QTReader::drawFonts(), QTReader::jumpto(), and QTReader::locate().

int BuffDoc::openfile QWidget *  _parent,
const char *  src
 

Definition at line 576 of file BuffDoc.cpp.

References QPtrListIterator< type >::current(), d, CDrawBuffer::empty(), QDir::entryInfoList(), QDir::exists(), exp, QFileInfo::fileName(), filt, CExpander_Interface::getHome(), lastsizes, laststartline, lastword, list, CExpander_Interface::locate(), NULL, CExpander_Interface::openfile(), PROGNAME, qDebug(), and CFilterChain::setsource().

Referenced by QTReader::load_file().

MarkupType BuffDoc::PreferredMarkup  )  [inline]
 

Definition at line 115 of file BuffDoc.h.

References cTEXT, exp, NULL, and CExpander_Interface::PreferredMarkup().

Referenced by QTReader::PreferredMarkup().

void BuffDoc::putSaveData unsigned char *&  src,
unsigned short &  srclen
[inline]
 

Definition at line 41 of file BuffDoc.h.

References exp, NULL, and CExpander_Interface::putSaveData().

Referenced by QTReader::putSaveData().

void BuffDoc::resetPos  ) 
 

Definition at line 63 of file BuffDoc.cpp.

References CDrawBuffer::empty(), exp, lastispara, lastsizes, laststartline, lastword, and CExpander_Interface::locate().

Referenced by QTReader::gotoLink(), and QTReader::mouseReleaseEvent().

void BuffDoc::saveposn const QString f,
size_t  posn
[inline]
 

Definition at line 143 of file BuffDoc.h.

References filt, and CFilterChain::saveposn().

Referenced by QTReader::goHome(), QTReaderApp::gotobkmk(), QTReader::gotoLink(), and QTReader::mouseReleaseEvent().

void BuffDoc::setContinuous bool  _b  )  [inline]
 

Definition at line 114 of file BuffDoc.h.

References exp, NULL, and CExpander_Interface::setContinuous().

Referenced by QTReader::load_file(), and QTReader::setContinuous().

void BuffDoc::setfilter CFilterChain _f  )  [inline]
 

Definition at line 66 of file BuffDoc.h.

References exp, filt, NULL, and CFilterChain::setsource().

Referenced by QTReader::init(), and QTReader::setfilter().

void BuffDoc::setHyphenThreshold int  _v  )  [inline]
 

Definition at line 28 of file BuffDoc.h.

References m_hyphenthreshold.

Referenced by QTReader::setHyphenThreshold().

void BuffDoc::setSaveData unsigned char *&  data,
unsigned short &  len,
unsigned char *  src,
unsigned short  srclen
[inline]
 

Definition at line 29 of file BuffDoc.h.

References exp, NULL, and CExpander_Interface::setSaveData().

Referenced by QTReader::setSaveData().

void BuffDoc::setwidth int  w  )  [inline]
 

Definition at line 107 of file BuffDoc.h.

References exp, NULL, and CExpander_Interface::setwidth().

Referenced by QTReader::drawFonts(), and QTReader::load_file().

void BuffDoc::sizes unsigned long &  fs,
unsigned long &  ts
[inline]
 

Definition at line 121 of file BuffDoc.h.

References exp, NULL, and CExpander_Interface::sizes().

Referenced by QTReader::sizes().

unsigned int BuffDoc::startSection  )  [inline]
 

Definition at line 109 of file BuffDoc.h.

References exp, NULL, and CExpander_Interface::startSection().

Referenced by QTReader::actionDrag(), QTReaderApp::actionscroll(), QTReaderApp::do_jump(), QTReader::dopageup(), QTReader::DrawScroll(), QTReaderApp::gotoStart(), QTReader::mouseMoveEvent(), QTReader::mousePressEvent(), QTReader::NavUp(), QTReaderApp::OnRedraw(), QTReaderApp::showinfo(), and QTReaderApp::UpdateStatus().

void BuffDoc::suspend  )  [inline]
 

Definition at line 51 of file BuffDoc.h.

Referenced by QTReader::suspend().

void BuffDoc::writeposn const QString f,
size_t  posn
[inline]
 

Definition at line 144 of file BuffDoc.h.

References filt, and CFilterChain::writeposn().

Referenced by QTReader::goBack().


Member Data Documentation

CSizeBuffer BuffDoc::allsizes [private]
 

Definition at line 13 of file BuffDoc.h.

CExpander_Interface* BuffDoc::exp [private]
 

Definition at line 16 of file BuffDoc.h.

Referenced by BuffDoc(), empty(), endSection(), explocate(), getch(), getFile(), getHome(), getline(), getpara(), getPicture(), getsentence(), getTableAsHtml(), hasnavigation(), hasrandomaccess(), hyperlink(), locate(), openfile(), PreferredMarkup(), putSaveData(), resetPos(), setContinuous(), setfilter(), setSaveData(), setwidth(), sizes(), startSection(), and ~BuffDoc().

CFilterChain* BuffDoc::filt [private]
 

Definition at line 17 of file BuffDoc.h.

Referenced by about(), back(), BuffDoc(), findanchor(), forward(), getch(), getTableAsHtml(), hasnavigation(), hyperlink(), locate(), openfile(), saveposn(), setfilter(), writeposn(), and ~BuffDoc().

bool BuffDoc::lastispara [private]
 

Definition at line 15 of file BuffDoc.h.

Referenced by getline(), hyperlink(), locate(), and resetPos().

CSizeBuffer BuffDoc::lastsizes [private]
 

Definition at line 13 of file BuffDoc.h.

Referenced by getline(), hyperlink(), locate(), openfile(), and resetPos().

size_t BuffDoc::laststartline [private]
 

Definition at line 14 of file BuffDoc.h.

Referenced by getline(), getpara(), getsentence(), hyperlink(), locate(), openfile(), and resetPos().

CDrawBuffer BuffDoc::lastword [private]
 

Definition at line 12 of file BuffDoc.h.

Referenced by BuffDoc(), getline(), hyperlink(), iseol(), locate(), openfile(), and resetPos().

int BuffDoc::m_hyphenthreshold [private]
 

Definition at line 18 of file BuffDoc.h.

Referenced by getline(), and setHyphenThreshold().


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