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

CExpander Class Reference

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

Inheritance diagram for CExpander:

Inheritance graph
[legend]
Collaboration diagram for CExpander:

Collaboration graph
[legend]
List of all members.

Public Member Functions

size_t getHome ()
 CExpander ()
virtual ~CExpander ()
int openfile (const char *src)
virtual int OpenFile (const char *src)=0
virtual unsigned int locate ()=0
virtual void locate (unsigned int n)=0
virtual bool hasrandomaccess ()=0
virtual void sizes (unsigned long &file, unsigned long &text)=0
virtual CList< Bkmk > * getbkmklist ()
virtual void getch (tchar &ch, CStyle &sty, unsigned long &pos)
virtual int getch ()=0
virtual linkType hyperlink (unsigned int n, unsigned int noff, QString &wrd, QString &nm)
virtual MarkupType PreferredMarkup ()=0
virtual void saveposn (size_t posn)
virtual void writeposn (size_t posn)
virtual linkType forward (size_t &loc)
virtual linkType back (size_t &loc)
virtual bool hasnavigation ()
unsigned long startSection ()
unsigned long endSection ()
virtual void start2endSection ()
virtual QImage * getPicture (unsigned long tgt)
void setContinuous (bool _b)
virtual void setSaveData (unsigned char *&data, unsigned short &len, unsigned char *src, unsigned short srclen)
virtual void putSaveData (unsigned char *&src, unsigned short &srclen)
void setwidth (int w)
int getwidth ()
virtual QImage * getPicture (const QString &href)
virtual bool getFile (const QString &href, const QString &nm)
virtual bool findanchor (const QString &nm)

Protected Attributes

size_t m_homepos
bool m_continuous
char * fname
bool bSuspended
size_t suspos
time_t sustime
int m_scrWidth
unsigned long m_currentstart
unsigned long m_currentend

Constructor & Destructor Documentation

CExpander::CExpander  ) 
 

Definition at line 8 of file CExpander.cpp.

CExpander::~CExpander  )  [virtual]
 

Definition at line 10 of file CExpander.cpp.

References fname, and NULL.


Member Function Documentation

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

Reimplemented from CExpander_Interface.

Reimplemented in CPlucker_base.

Definition at line 126 of file CExpander.h.

References eNone.

Referenced by ebookcodec::back().

unsigned long CExpander::endSection  )  [virtual]
 

Implements CExpander_Interface.

Definition at line 43 of file CExpander.cpp.

References locate(), m_currentend, m_currentstart, and start2endSection().

Referenced by ebookcodec::endSection().

virtual bool CExpander::findanchor const QString nm  )  [inline, virtual]
 

Implements CExpander_Interface.

Reimplemented in CReb.

Definition at line 151 of file CExpander.h.

Referenced by ebookcodec::findanchor().

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

Reimplemented from CExpander_Interface.

Reimplemented in CPlucker_base.

Definition at line 125 of file CExpander.h.

References eNone.

Referenced by ebookcodec::forward().

virtual CList<Bkmk>* CExpander::getbkmklist  )  [inline, virtual]
 

Reimplemented from CExpander_Interface.

Reimplemented in Aportis, CPlucker_base, CReb, and ztxt.

Definition at line 118 of file CExpander.h.

References NULL.

Referenced by ebookcodec::getbkmklist().

virtual int CExpander::getch  )  [pure virtual]
 

Implements CExpander_Interface.

Implemented in Aportis, CHM, iSilo, CPlucker_base, ppm_expander, CReb, Text, and ztxt.

Referenced by getch().

void CExpander::getch tchar ch,
CStyle sty,
unsigned long &  pos
[virtual]
 

Implements CExpander_Interface.

Reimplemented in iSilo, and CPlucker_base.

Definition at line 19 of file CExpander.cpp.

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

Referenced by ebookcodec::getch().

virtual bool CExpander::getFile const QString href,
const QString nm
[inline, virtual]
 

Implements CExpander_Interface.

Reimplemented in CHM, and CReb.

Definition at line 150 of file CExpander.h.

Referenced by ebookcodec::getFile().

size_t CExpander::getHome  )  [virtual]
 

Implements CExpander_Interface.

Definition at line 6 of file CExpander.cpp.

References m_homepos.

Referenced by ebookcodec::getHome().

virtual QImage* CExpander::getPicture const QString href  )  [inline, virtual]
 

Implements CExpander_Interface.

Reimplemented in CHM, and CReb.

Definition at line 149 of file CExpander.h.

References NULL.

virtual QImage* CExpander::getPicture unsigned long  tgt  )  [inline, virtual]
 

Reimplemented from CExpander_Interface.

Reimplemented in Aportis, and CPlucker_base.

Definition at line 131 of file CExpander.h.

References NULL.

Referenced by ebookcodec::getPicture().

int CExpander::getwidth  )  [inline, virtual]
 

Implements CExpander_Interface.

Definition at line 143 of file CExpander.h.

References m_scrWidth.

Referenced by ebookcodec::getwidth().

virtual bool CExpander::hasnavigation  )  [inline, virtual]
 

Reimplemented from CExpander_Interface.

Reimplemented in CHM, and CPlucker_base.

Definition at line 127 of file CExpander.h.

Referenced by ebookcodec::hasnavigation().

virtual bool CExpander::hasrandomaccess  )  [pure virtual]
 

Implements CExpander_Interface.

Implemented in Aportis, CHM, iSilo, CPlucker_base, ppm_expander, CReb, Text, and ztxt.

Referenced by ebookcodec::hasrandomaccess().

linkType CExpander::hyperlink unsigned int  n,
unsigned int  noff,
QString wrd,
QString nm
[virtual]
 

Implements CExpander_Interface.

Reimplemented in CPlucker_base.

Definition at line 27 of file CExpander.cpp.

References eLink, and locate().

Referenced by ebookcodec::hyperlink().

virtual void CExpander::locate unsigned int  n  )  [pure virtual]
 

Implements CExpander_Interface.

Implemented in Aportis, CHM, iSilo, CPlucker_base, ppm_expander, CReb, Text, and ztxt.

virtual unsigned int CExpander::locate  )  [pure virtual]
 

Implements CExpander_Interface.

Implemented in Aportis, CHM, iSilo, CPlucker_base, ppm_expander, CReb, Text, and ztxt.

Referenced by endSection(), getch(), hyperlink(), ebookcodec::locate(), and startSection().

virtual int CExpander::OpenFile const char *  src  )  [pure virtual]
 

Implemented in Aportis, CHM, iSilo, CPlucker_base, ppm_expander, CReb, Text, and ztxt.

Referenced by openfile().

int CExpander::openfile const char *  src  )  [virtual]
 

Implements CExpander_Interface.

Definition at line 12 of file CExpander.cpp.

References bSuspended, fname, and OpenFile().

Referenced by ebookcodec::openfile().

virtual MarkupType CExpander::PreferredMarkup  )  [pure virtual]
 

Implements CExpander_Interface.

Implemented in Aportis, CHM, iSilo, CPlucker_base, ppm_expander, CReb, Text, and ztxt.

Referenced by ebookcodec::PreferredMarkup().

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

Implements CExpander_Interface.

Reimplemented in CPlucker_base.

Definition at line 105 of file CExpander.cpp.

References qDebug().

Referenced by ebookcodec::putSaveData().

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

Reimplemented from CExpander_Interface.

Reimplemented in CPlucker_base.

Definition at line 123 of file CExpander.h.

Referenced by ebookcodec::saveposn().

void CExpander::setContinuous bool  _b  )  [inline, virtual]
 

Implements CExpander_Interface.

Definition at line 132 of file CExpander.h.

References m_continuous.

Referenced by ebookcodec::setContinuous().

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

Implements CExpander_Interface.

Reimplemented in CPlucker_base.

Definition at line 98 of file CExpander.cpp.

Referenced by ebookcodec::setSaveData().

void CExpander::setwidth int  w  )  [inline, virtual]
 

Implements CExpander_Interface.

Definition at line 139 of file CExpander.h.

References m_scrWidth.

Referenced by ebookcodec::setwidth().

virtual void CExpander::sizes unsigned long &  file,
unsigned long &  text
[pure virtual]
 

Implements CExpander_Interface.

Implemented in Aportis, CHM, iSilo, Cpdb, CPlucker_base, ppm_expander, CReb, Text, and ztxt.

Referenced by ebookcodec::sizes(), and start2endSection().

void CExpander::start2endSection  )  [virtual]
 

Implements CExpander_Interface.

Reimplemented in CHM, CPlucker, and CReb.

Definition at line 53 of file CExpander.cpp.

References m_currentend, m_currentstart, and sizes().

Referenced by endSection(), ebookcodec::start2endSection(), and startSection().

unsigned long CExpander::startSection  )  [virtual]
 

Implements CExpander_Interface.

Definition at line 33 of file CExpander.cpp.

References locate(), m_currentend, m_currentstart, and start2endSection().

Referenced by ebookcodec::startSection().

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

Reimplemented from CExpander_Interface.

Reimplemented in CPlucker_base.

Definition at line 124 of file CExpander.h.

Referenced by ebookcodec::writeposn().


Member Data Documentation

bool CExpander::bSuspended [protected]
 

Definition at line 99 of file CExpander.h.

Referenced by openfile(), Text::suspend(), CHM::suspend(), Text::unsuspend(), and CHM::unsuspend().

char* CExpander::fname [protected]
 

Definition at line 98 of file CExpander.h.

Referenced by openfile(), Text::sizes(), Text::unsuspend(), CHM::unsuspend(), and ~CExpander().

bool CExpander::m_continuous [protected]
 

Definition at line 97 of file CExpander.h.

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

unsigned long CExpander::m_currentend [protected]
 

Definition at line 103 of file CExpander.h.

Referenced by endSection(), CHM::FillBuffer(), CHM::FillContent(), CHM::FillHomeContent(), CReb::locate(), CHM::locate(), CReb::start2endSection(), CPlucker::start2endSection(), CHM::start2endSection(), start2endSection(), and startSection().

unsigned long CExpander::m_currentstart [protected]
 

Definition at line 103 of file CExpander.h.

Referenced by endSection(), CHM::FillBuffer(), CHM::FillContent(), CHM::FillHomeContent(), CReb::locate(), CHM::locate(), CReb::start2endSection(), CPlucker::start2endSection(), CHM::start2endSection(), start2endSection(), and startSection().

size_t CExpander::m_homepos [protected]
 

Definition at line 96 of file CExpander.h.

Referenced by getHome(), CHM::locate(), CReb::OpenFile(), CPlucker_base::OpenFile(), and CHM::OpenFile().

int CExpander::m_scrWidth [protected]
 

Definition at line 102 of file CExpander.h.

Referenced by CPlucker_base::getch_base(), getwidth(), and setwidth().

size_t CExpander::suspos [protected]
 

Definition at line 100 of file CExpander.h.

Referenced by Text::suspend(), and Text::unsuspend().

time_t CExpander::sustime [protected]
 

Definition at line 101 of file CExpander.h.

Referenced by Text::suspend(), CHM::suspend(), Text::unsuspend(), and CHM::unsuspend().


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