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

CPlucker_base Class Reference

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

Inheritance diagram for CPlucker_base:

Inheritance graph
[legend]
Collaboration diagram for CPlucker_base:

Collaboration graph
[legend]
List of all members.

Public Member Functions

QString about ()
QImage * getPicture (unsigned long tgt)
void sizes (unsigned long &_file, unsigned long &_text)
bool hasrandomaccess ()
virtual ~CPlucker_base ()
 CPlucker_base ()
int OpenFile (const char *src)
virtual tchar getch (bool)=0
tchar getch_base (bool)
int getch ()
void getch (tchar &, CStyle &, unsigned long &pos)
unsigned int locate ()
void locate (unsigned int n)
CList< Bkmk > * getbkmklist ()
linkType hyperlink (unsigned int, unsigned int, QString &, QString &)
MarkupType PreferredMarkup ()
void saveposn (size_t posn)
void writeposn (size_t posn)
linkType forward (size_t &loc)
linkType back (size_t &loc)
bool hasnavigation ()
void setSaveData (unsigned char *&data, unsigned short &len, unsigned char *src, unsigned short srclen)
void putSaveData (unsigned char *&src, unsigned short &srclen)
virtual bool CorrectDecoder ()=0
virtual QImage * imagefromdata (UInt8 *, UInt32)=0
QString getTableAsHtml (unsigned long loc)

Protected Member Functions

virtual void setbuffersize ()=0
virtual void GetHeader (UInt16 &, UInt16 &, UInt32 &, UInt8 &, UInt8 &)=0
virtual int HeaderSize ()=0
unsigned short finduid (unsigned short)
char * geturl (UInt16)
void Expand (UInt32, UInt8, UInt8 *, UInt32)
bool expand (int)
QImage * getimg (UInt16 tgt)
QImage * expandimg (UInt16 tgt, bool border=false)
void home ()
virtual int bgetch ()=0

Static Protected Member Functions

static size_t UnDoc (UInt8 *, size_t, UInt8 *, size_t)

Protected Attributes

CList< unsigned long > visited
bool m_lastIsBreak
size_t textlength
size_t m_lastBreak
size_t m_offset
UInt16 uid
int m_nextPara
int m_nextParaIndex
CBufferFace< UInt16m_ParaOffsets
CBufferFace< UInt16m_ParaAttrs
UInt16 m_nParas
CStyle mystyle
UInt32 buffersize
UInt32 compressedbuffersize
UInt32 buffercontent
UInt8expandedtextbuffer
UInt8compressedtextbuffer
size_t bufferpos
int bufferrec
CPlucker_record0 hdr0
bool m_bufferisreserved
size_t currentpos
size_t(* m_decompress )(UInt8 *, size_t, UInt8 *, size_t)
CNavigation m_nav

Static Protected Attributes

static const UInt8 continuation_bit = 1

Constructor & Destructor Documentation

CPlucker_base::~CPlucker_base  )  [virtual]
 

Definition at line 177 of file plucker_base.cpp.

References compressedtextbuffer, expandedtextbuffer, and NULL.

CPlucker_base::CPlucker_base  ) 
 

Definition at line 29 of file plucker_base.cpp.


Member Function Documentation

QString CPlucker_base::about  )  [virtual]
 

Implements CExpander_Interface.

Reimplemented in CPlucker.

Definition at line 1521 of file plucker_base.cpp.

References m_decompress, UnDoc(), and UnZip().

Referenced by CPlucker::about().

linkType CPlucker_base::back size_t &  loc  )  [inline, virtual]
 

Reimplemented from CExpander.

Definition at line 105 of file plucker_base.h.

References CNavigation_base< T >::back(), eLink, eNone, and m_nav.

virtual int CPlucker_base::bgetch  )  [protected, pure virtual]
 

Implemented in CPlucker.

Referenced by getch_base().

virtual bool CPlucker_base::CorrectDecoder  )  [pure virtual]
 

Implemented in CPlucker.

Referenced by OpenFile().

bool CPlucker_base::expand int   )  [protected]
 

Definition at line 351 of file plucker_base.cpp.

References buffercontent, bufferpos, bufferrec, buffersize, Expand(), expandedtextbuffer, Cpdb::fin, GetHeader(), Cpdb::gotorecordnumber(), Cpdb::head, HeaderSize(), i, m_bufferisreserved, m_nextPara, m_nextParaIndex, m_nParas, m_ParaAttrs, m_ParaOffsets, mystyle, RecordListType::numRecords, Cpdb::recordlength(), DatabaseHdrType::recordList, uid, and CStyle::unset().

Referenced by CPlucker::bgetch(), home(), hyperlink(), and locate().

void CPlucker_base::Expand UInt32  ,
UInt8  ,
UInt8 ,
UInt32 
[protected]
 

Definition at line 42 of file plucker_base.cpp.

References compressedbuffersize, compressedtextbuffer, Cpdb::fin, NULL, and Cpdb::unsuspend().

Referenced by expand(), getimg(), getTableAsHtml(), and geturl().

QImage * CPlucker_base::expandimg UInt16  tgt,
bool  border = false
[protected]
 

Definition at line 540 of file plucker_base.cpp.

References bitBlt(), getimg(), image, NULL, and Qt::red.

Referenced by getch_base(), and getPicture().

unsigned short CPlucker_base::finduid unsigned  short  )  [protected]
 

Definition at line 622 of file plucker_base.cpp.

References GetHeader(), Cpdb::gotorecordnumber(), Cpdb::head, RecordListType::numRecords, and DatabaseHdrType::recordList.

Referenced by getimg(), getTableAsHtml(), and geturl().

linkType CPlucker_base::forward size_t &  loc  )  [inline, virtual]
 

Reimplemented from CExpander.

Definition at line 104 of file plucker_base.h.

References eLink, eNone, CNavigation_base< T >::forward(), and m_nav.

CList< Bkmk > * CPlucker_base::getbkmklist  )  [virtual]
 

Reimplemented from CExpander.

Definition at line 514 of file plucker_base.cpp.

References NULL.

void CPlucker_base::getch tchar ,
CStyle ,
unsigned long &  pos
[virtual]
 

Reimplemented from CExpander.

Definition at line 188 of file plucker_base.cpp.

References getch(), locate(), and mystyle.

int CPlucker_base::getch  )  [virtual]
 

Implements CExpander.

Definition at line 186 of file plucker_base.cpp.

Referenced by getch(), and getch_base().

virtual tchar CPlucker_base::getch bool   )  [pure virtual]
 

Implemented in CPlucker.

tchar CPlucker_base::getch_base bool   ) 
 

Definition at line 1215 of file plucker_base.cpp.

References CList< T >::begin(), bgetch(), CStyle::Blue(), CList< T >::end(), expandimg(), g, getch(), CStyle::Green(), hRule(), i, CStyle::isMono(), locate(), m_lastBreak, m_lastIsBreak, m_offset, CExpander::m_scrWidth, mystyle, qDebug(), CStyle::Red(), CStyle::setBold(), CStyle::setCentreJustify(), CStyle::setColour(), CStyle::setData(), CStyle::setFontSize(), CStyle::setFullJustify(), CStyle::setItalic(), CStyle::setLeftJustify(), CStyle::setLeftMargin(), CStyle::setLink(), CStyle::setMono(), CStyle::setOffset(), CStyle::setPicture(), CStyle::setRightJustify(), CStyle::setRightMargin(), CStyle::setStrikethru(), CStyle::setTable(), CStyle::setUnderline(), CStyle::setVOffset(), UEOF, CStyle::unsetBold(), CStyle::unsetItalic(), CStyle::unsetMono(), CStyle::unsetStrikethru(), CStyle::unsetUnderline(), and visited.

Referenced by CPlucker::getch(), hyperlink(), and locate().

virtual void CPlucker_base::GetHeader UInt16 ,
UInt16 ,
UInt32 ,
UInt8 ,
UInt8
[protected, pure virtual]
 

Implemented in CPlucker.

Referenced by expand(), finduid(), getimg(), getTableAsHtml(), geturl(), hyperlink(), locate(), OpenFile(), and sizes().

QImage * CPlucker_base::getimg UInt16  tgt  )  [protected]
 

Definition at line 819 of file plucker_base.cpp.

References bitBlt(), Expand(), Cpdb::fin, finduid(), GetHeader(), Cpdb::gotorecordnumber(), HeaderSize(), height, i, imagefromdata(), qDebug(), Cpdb::recordlength(), uid, and width.

Referenced by expandimg().

QImage * CPlucker_base::getPicture unsigned long  tgt  )  [virtual]
 

Reimplemented from CExpander.

Definition at line 567 of file plucker_base.cpp.

References QMap< Key, T >::end(), expandimg(), QMap< Key, T >::find(), pix, and t.

QString CPlucker_base::getTableAsHtml unsigned long  loc  )  [virtual]
 

Reimplemented from CExpander_Interface.

Definition at line 1061 of file plucker_base.cpp.

References depth, Expand(), finduid(), GetHeader(), Cpdb::gotorecordnumber(), HeaderSize(), len, qDebug(), Cpdb::recordlength(), QString::setNum(), and size.

char * CPlucker_base::geturl UInt16   )  [protected]
 

Definition at line 91 of file plucker_base.cpp.

References Expand(), Cpdb::fin, finduid(), GetHeader(), Cpdb::gotorecordnumber(), hdr0, HeaderSize(), i, id, len, name, CPlucker_record0::nRecords, NULL, and Cpdb::recordlength().

Referenced by hyperlink().

bool CPlucker_base::hasnavigation  )  [inline, virtual]
 

Reimplemented from CExpander.

Definition at line 106 of file plucker_base.h.

bool CPlucker_base::hasrandomaccess  )  [inline, virtual]
 

Implements CExpander.

Definition at line 86 of file plucker_base.h.

virtual int CPlucker_base::HeaderSize  )  [protected, pure virtual]
 

Implemented in CPlucker.

Referenced by expand(), getimg(), getTableAsHtml(), and geturl().

void CPlucker_base::home  )  [protected]
 

Definition at line 508 of file plucker_base.cpp.

References currentpos, and expand().

Referenced by OpenFile().

linkType CPlucker_base::hyperlink unsigned  int,
unsigned  int,
QString ,
QString
[virtual]
 

Reimplemented from CExpander.

Definition at line 915 of file plucker_base.cpp.

References buffercontent, bufferpos, currentpos, eLink, eNone, ePicture, expand(), getch_base(), GetHeader(), geturl(), Cpdb::gotorecordnumber(), Cpdb::head, i, QString::isEmpty(), QString::left(), QString::length(), m_nParas, m_ParaOffsets, NULL, RecordListType::numRecords, PROGNAME, CList< T >::push_front(), qDebug(), DatabaseHdrType::recordList, Global::statusMessage(), QString::truncate(), and visited.

virtual QImage* CPlucker_base::imagefromdata UInt8 ,
UInt32 
[pure virtual]
 

Implemented in CPlucker.

Referenced by getimg().

void CPlucker_base::locate unsigned int  n  )  [virtual]
 

Implements CExpander.

Definition at line 216 of file plucker_base.cpp.

References buffercontent, bufferpos, bufferrec, currentpos, expand(), getch_base(), GetHeader(), and Cpdb::gotorecordnumber().

unsigned int CPlucker_base::locate  )  [virtual]
 

Implements CExpander.

Definition at line 195 of file plucker_base.cpp.

References currentpos.

Referenced by CPlucker::bgetch(), getch(), and getch_base().

int CPlucker_base::OpenFile const char *  src  )  [virtual]
 

Implements CExpander.

Definition at line 733 of file plucker_base.cpp.

References buffersize, compressedbuffersize, compressedtextbuffer, CorrectDecoder(), expandedtextbuffer, Cpdb::fin, getdecompressor, GetHeader(), Cpdb::gotorecordnumber(), hdr0, Cpdb::head, home(), i, id, m_decompress, CExpander::m_homepos, m_lastBreak, name, CPlucker_record0::nRecords, NULL, RecordListType::numRecords, Cpdb::openpdbfile(), qDebug(), DatabaseHdrType::recordList, setbuffersize(), DatabaseHdrType::sortInfoID, textlength, UnDoc(), UnZip(), and CPlucker_record0::version.

MarkupType CPlucker_base::PreferredMarkup  )  [inline, virtual]
 

Implements CExpander.

Definition at line 98 of file plucker_base.h.

References cNONE.

void CPlucker_base::putSaveData unsigned char *&  src,
unsigned short &  srclen
[virtual]
 

Reimplemented from CExpander.

Definition at line 704 of file plucker_base.cpp.

References i, m_nav, NULL, PROGNAME, CList< T >::push_front(), CNavigation::putSaveData(), t, visited, and warning().

void CPlucker_base::saveposn size_t  posn  )  [inline, virtual]
 

Reimplemented from CExpander.

Definition at line 102 of file plucker_base.h.

References m_nav, and CNavigation_base< T >::saveposn().

virtual void CPlucker_base::setbuffersize  )  [protected, pure virtual]
 

Implemented in CPlucker.

Referenced by OpenFile().

void CPlucker_base::setSaveData unsigned char *&  data,
unsigned short &  len,
unsigned char *  src,
unsigned short  srclen
[virtual]
 

Reimplemented from CExpander.

Definition at line 675 of file plucker_base.cpp.

References CList< T >::begin(), CList< T >::end(), m_nav, CNavigation::setSaveData(), t, and visited.

void CPlucker_base::sizes unsigned long &  _file,
unsigned long &  _text
[virtual]
 

Implements Cpdb.

Definition at line 72 of file plucker_base.cpp.

References Cpdb::file_length, GetHeader(), Cpdb::gotorecordnumber(), Cpdb::head, RecordListType::numRecords, DatabaseHdrType::recordList, and textlength.

size_t CPlucker_base::UnDoc UInt8 ,
size_t  ,
UInt8 ,
size_t 
[static, protected]
 

Definition at line 454 of file plucker_base.cpp.

References COUNT_BITS, and i.

Referenced by about(), and OpenFile().

void CPlucker_base::writeposn size_t  posn  )  [inline, virtual]
 

Reimplemented from CExpander.

Definition at line 103 of file plucker_base.h.

References m_nav, and CNavigation_base< T >::writeposn().


Member Data Documentation

UInt32 CPlucker_base::buffercontent [protected]
 

Definition at line 58 of file plucker_base.h.

Referenced by CPlucker::bgetch(), expand(), hyperlink(), locate(), and CPlucker::NEFendSection().

size_t CPlucker_base::bufferpos [protected]
 

Definition at line 63 of file plucker_base.h.

Referenced by CPlucker::bgetch(), expand(), hyperlink(), locate(), CPlucker::NEFendSection(), and CPlucker::NEFstartSection().

int CPlucker_base::bufferrec [protected]
 

Definition at line 64 of file plucker_base.h.

Referenced by CPlucker::bgetch(), expand(), locate(), CPlucker::NEFendSection(), and CPlucker::NEFstartSection().

UInt32 CPlucker_base::buffersize [protected]
 

Definition at line 56 of file plucker_base.h.

Referenced by expand(), OpenFile(), and CPlucker::setbuffersize().

UInt32 CPlucker_base::compressedbuffersize [protected]
 

Definition at line 57 of file plucker_base.h.

Referenced by Expand(), OpenFile(), and CPlucker::setbuffersize().

UInt8* CPlucker_base::compressedtextbuffer [protected]
 

Definition at line 60 of file plucker_base.h.

Referenced by Expand(), OpenFile(), and ~CPlucker_base().

const UInt8 CPlucker_base::continuation_bit = 1 [static, protected]
 

Definition at line 27 of file plucker_base.cpp.

Referenced by CPlucker::NEFendSection(), and CPlucker::NEFstartSection().

size_t CPlucker_base::currentpos [protected]
 

Definition at line 67 of file plucker_base.h.

Referenced by CPlucker::bgetch(), home(), hyperlink(), locate(), CPlucker::NEFendSection(), and CPlucker::NEFstartSection().

UInt8* CPlucker_base::expandedtextbuffer [protected]
 

Definition at line 59 of file plucker_base.h.

Referenced by CPlucker::bgetch(), expand(), OpenFile(), and ~CPlucker_base().

CPlucker_record0 CPlucker_base::hdr0 [protected]
 

Definition at line 65 of file plucker_base.h.

Referenced by geturl(), and OpenFile().

bool CPlucker_base::m_bufferisreserved [protected]
 

Definition at line 66 of file plucker_base.h.

Referenced by expand(), and CPlucker::isEndOfSection().

size_t(* CPlucker_base::m_decompress)(UInt8 *, size_t, UInt8 *, size_t) [protected]
 

Referenced by about(), and OpenFile().

size_t CPlucker_base::m_lastBreak [protected]
 

Definition at line 48 of file plucker_base.h.

Referenced by CPlucker::bgetch(), getch_base(), and OpenFile().

bool CPlucker_base::m_lastIsBreak [protected]
 

Definition at line 43 of file plucker_base.h.

Referenced by getch_base().

CNavigation CPlucker_base::m_nav [protected]
 

Definition at line 81 of file plucker_base.h.

Referenced by back(), forward(), putSaveData(), saveposn(), setSaveData(), and writeposn().

int CPlucker_base::m_nextPara [protected]
 

Definition at line 50 of file plucker_base.h.

Referenced by CPlucker::bgetch(), and expand().

int CPlucker_base::m_nextParaIndex [protected]
 

Definition at line 50 of file plucker_base.h.

Referenced by CPlucker::bgetch(), and expand().

UInt16 CPlucker_base::m_nParas [protected]
 

Definition at line 53 of file plucker_base.h.

Referenced by CPlucker::bgetch(), expand(), and hyperlink().

size_t CPlucker_base::m_offset [protected]
 

Definition at line 48 of file plucker_base.h.

Referenced by getch_base().

CBufferFace<UInt16> CPlucker_base::m_ParaAttrs [protected]
 

Definition at line 52 of file plucker_base.h.

Referenced by CPlucker::bgetch(), and expand().

CBufferFace<UInt16> CPlucker_base::m_ParaOffsets [protected]
 

Definition at line 51 of file plucker_base.h.

Referenced by CPlucker::bgetch(), expand(), and hyperlink().

CStyle CPlucker_base::mystyle [protected]
 

Definition at line 54 of file plucker_base.h.

Referenced by CPlucker::bgetch(), expand(), getch(), CPlucker::getch(), and getch_base().

size_t CPlucker_base::textlength [protected]
 

Definition at line 48 of file plucker_base.h.

Referenced by CPlucker::NEFendSection(), CPlucker::NEFstartSection(), OpenFile(), and sizes().

UInt16 CPlucker_base::uid [protected]
 

Definition at line 49 of file plucker_base.h.

Referenced by expand(), and getimg().

CList<unsigned long> CPlucker_base::visited [protected]
 

Definition at line 42 of file plucker_base.h.

Referenced by getch_base(), hyperlink(), putSaveData(), and setSaveData().


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