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

CStyle Class Reference

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

Collaboration diagram for CStyle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

signed char getVOffset ()
void setVOffset (signed char sp)
signed char getExtraSpace ()
void setExtraSpace (signed char sp)
bool getPictureLink ()
unsigned long getPictureLinkData ()
void setLeftMargin (unsigned char m)
unsigned char getLeftMargin ()
void setRightMargin (unsigned char m)
unsigned char getRightMargin ()
unsigned char Red ()
unsigned char Green ()
unsigned char Blue ()
void setColour (unsigned char r, unsigned char g, unsigned char b)
unsigned char bRed ()
unsigned char bGreen ()
unsigned char bBlue ()
unsigned char pRed ()
unsigned char pGreen ()
unsigned char pBlue ()
void setPaper (unsigned char r, unsigned char g, unsigned char b)
void setBackground (unsigned char r, unsigned char g, unsigned char b)
 CStyle ()
 ~CStyle ()
 CStyle (const CStyle &)
CStyleoperator= (const CStyle &)
void unset ()
bool isTable () const
void setTable (unsigned long _b)
unsigned long getTable ()
bool isPicture () const
bool canScale () const
void clearPicture ()
void setPicture (bool canScale, QImage *_g, bool il=false, unsigned long tgt=0)
QImage * getPicture ()
void setUnderline ()
void unsetUnderline ()
bool isUnderline ()
void setStrikethru ()
void unsetStrikethru ()
bool isStrikethru ()
void setBold ()
void unsetBold ()
bool isBold ()
void setItalic ()
void unsetItalic ()
bool isItalic ()
void setMono ()
void unsetMono ()
bool isMono ()
void setLeftJustify ()
void setRightJustify ()
void setCentreJustify ()
void setFullJustify ()
void setNoJustify ()
StyleType getJustify ()
void setFontSize (int _fs)
int getFontSize () const
bool operator!= (const CStyle &rhs)
void setLink (bool _l)
bool getLink ()
void setData (unsigned long _d)
unsigned long getData ()
void setOffset (unsigned long _d)
unsigned long getOffset ()
void invert ()

Private Attributes

CBasicStyle sty
pmstoregraphic

Constructor & Destructor Documentation

CStyle::CStyle  )  [inline]
 

Definition at line 146 of file StyleConsts.h.

CStyle::~CStyle  ) 
 

Definition at line 13 of file StyleConsts.cpp.

References pmstore::count, graphic, and NULL.

CStyle::CStyle const CStyle  ) 
 

Definition at line 24 of file StyleConsts.cpp.


Member Function Documentation

unsigned char CStyle::bBlue  )  [inline]
 

Definition at line 130 of file StyleConsts.h.

References CBasicStyle::bblue, and sty.

Referenced by setbg::getch(), makeInverse::getch(), HighlightFilter::getch(), and CDrawBuffer::render().

unsigned char CStyle::bGreen  )  [inline]
 

Definition at line 129 of file StyleConsts.h.

References CBasicStyle::bgreen, and sty.

Referenced by setbg::getch(), makeInverse::getch(), HighlightFilter::getch(), and CDrawBuffer::render().

unsigned char CStyle::Blue  )  [inline]
 

Definition at line 121 of file StyleConsts.h.

References CBasicStyle::blue, and sty.

Referenced by tableLink::getch(), setfg::getch(), makeInverse::getch(), CPlucker_base::getch_base(), and CDrawBuffer::render().

unsigned char CStyle::bRed  )  [inline]
 

Definition at line 128 of file StyleConsts.h.

References CBasicStyle::bred, and sty.

Referenced by setbg::getch(), makeInverse::getch(), HighlightFilter::getch(), and CDrawBuffer::render().

bool CStyle::canScale  )  const [inline]
 

Definition at line 156 of file StyleConsts.h.

References graphic, and pmstore::m_isScaleable.

Referenced by CDrawBuffer::charwidth(), CDrawBuffer::render(), CDrawBuffer::resize(), and CDrawBuffer::width().

void CStyle::clearPicture  ) 
 

Definition at line 58 of file StyleConsts.cpp.

References pmstore::count, graphic, and NULL.

Referenced by striphtml::getch(), and CPlucker::getch().

unsigned long CStyle::getData  )  [inline]
 

Definition at line 226 of file StyleConsts.h.

References CBasicStyle::data, and sty.

Referenced by DePluck::getch(), CDrawBuffer::getLinkType(), and QTReader::gotoLink().

signed char CStyle::getExtraSpace  )  [inline]
 

Definition at line 105 of file StyleConsts.h.

References CBasicStyle::m_extraspace, and sty.

Referenced by striphtml::getch().

int CStyle::getFontSize  )  const [inline]
 

Definition at line 209 of file StyleConsts.h.

References CBasicStyle::m_fontsize, and sty.

Referenced by PeanutFormatter::getch().

StyleType CStyle::getJustify  )  [inline]
 

Definition at line 200 of file StyleConsts.h.

References CBasicStyle::m_align, and sty.

Referenced by FullJust::getch(), PeanutFormatter::getch(), and BuffDoc::getline().

unsigned char CStyle::getLeftMargin  )  [inline]
 

Definition at line 116 of file StyleConsts.h.

References CBasicStyle::m_leftmargin, and sty.

bool CStyle::getLink  )  [inline]
 

Definition at line 222 of file StyleConsts.h.

References CBasicStyle::isLink, and sty.

Referenced by underlineLink::getch(), DePluck::getch(), and CDrawBuffer::getLinkType().

unsigned long CStyle::getOffset  )  [inline]
 

Definition at line 228 of file StyleConsts.h.

References CBasicStyle::offset, and sty.

Referenced by DePluck::getch(), CDrawBuffer::getLinkType(), and QTReader::gotoLink().

QImage* CStyle::getPicture  )  [inline]
 

Definition at line 159 of file StyleConsts.h.

References GraphicLink::graphic, pmstore::graphic, graphic, and NULL.

Referenced by CDrawBuffer::charwidth(), CDrawBuffer::getLinkType(), CDrawBuffer::render(), CDrawBuffer::resize(), and CDrawBuffer::width().

bool CStyle::getPictureLink  )  [inline]
 

Definition at line 107 of file StyleConsts.h.

References pmstore::graphic, graphic, GraphicLink::isLink, and NULL.

Referenced by CDrawBuffer::getLinkType().

unsigned long CStyle::getPictureLinkData  )  [inline]
 

Definition at line 111 of file StyleConsts.h.

References pmstore::graphic, graphic, and GraphicLink::link.

Referenced by CDrawBuffer::getLinkType().

unsigned char CStyle::getRightMargin  )  [inline]
 

Definition at line 118 of file StyleConsts.h.

References CBasicStyle::m_rightmargin, and sty.

unsigned long CStyle::getTable  )  [inline]
 

Definition at line 154 of file StyleConsts.h.

References CBasicStyle::m_table, and sty.

Referenced by CDrawBuffer::getLinkType().

signed char CStyle::getVOffset  )  [inline]
 

Definition at line 103 of file StyleConsts.h.

References CBasicStyle::m_voffset, and sty.

unsigned char CStyle::Green  )  [inline]
 

Definition at line 120 of file StyleConsts.h.

References CBasicStyle::green, and sty.

Referenced by tableLink::getch(), setfg::getch(), makeInverse::getch(), CPlucker_base::getch_base(), and CDrawBuffer::render().

void CStyle::invert  ) 
 

Definition at line 96 of file StyleConsts.cpp.

References CBasicStyle::bblue, CBasicStyle::bgreen, CBasicStyle::blue, CBasicStyle::bred, CBasicStyle::green, qDebug(), CBasicStyle::red, and sty.

bool CStyle::isBold  )  [inline]
 

Definition at line 172 of file StyleConsts.h.

References CBasicStyle::m_bold, and sty.

Referenced by PeanutFormatter::getch(), textfmt::getch(), and CDrawBuffer::render().

bool CStyle::isItalic  )  [inline]
 

Definition at line 175 of file StyleConsts.h.

References CBasicStyle::m_italic, and sty.

Referenced by PeanutFormatter::getch(), textfmt::getch(), and CDrawBuffer::render().

bool CStyle::isMono  )  [inline]
 

Definition at line 178 of file StyleConsts.h.

References CBasicStyle::m_monospaced, and sty.

Referenced by CDrawBuffer::charwidth(), CPlucker_base::getch_base(), CDrawBuffer::render(), and CDrawBuffer::width().

bool CStyle::isPicture  )  const [inline]
 

Definition at line 155 of file StyleConsts.h.

References graphic, and NULL.

Referenced by CDrawBuffer::charwidth(), CDrawBuffer::render(), CDrawBuffer::resize(), and CDrawBuffer::width().

bool CStyle::isStrikethru  )  [inline]
 

Definition at line 169 of file StyleConsts.h.

References CBasicStyle::m_strikethru, and sty.

bool CStyle::isTable  )  const [inline]
 

Definition at line 152 of file StyleConsts.h.

References CBasicStyle::m_table, and sty.

Referenced by tableLink::getch(), and CDrawBuffer::getLinkType().

bool CStyle::isUnderline  )  [inline]
 

Definition at line 166 of file StyleConsts.h.

References CBasicStyle::m_underline, and sty.

bool CStyle::operator!= const CStyle rhs  )  [inline]
 

Definition at line 213 of file StyleConsts.h.

References graphic, and sty.

CStyle & CStyle::operator= const CStyle  ) 
 

Definition at line 29 of file StyleConsts.cpp.

References pmstore::count, graphic, NULL, and sty.

unsigned char CStyle::pBlue  )  [inline]
 

Definition at line 133 of file StyleConsts.h.

References CBasicStyle::pblue, and sty.

Referenced by setbg::getch(), and makeInverse::getch().

unsigned char CStyle::pGreen  )  [inline]
 

Definition at line 132 of file StyleConsts.h.

References CBasicStyle::pgreen, and sty.

Referenced by setbg::getch(), and makeInverse::getch().

unsigned char CStyle::pRed  )  [inline]
 

Definition at line 131 of file StyleConsts.h.

References CBasicStyle::pred, and sty.

Referenced by setbg::getch(), and makeInverse::getch().

unsigned char CStyle::Red  )  [inline]
 

Definition at line 119 of file StyleConsts.h.

References CBasicStyle::red, and sty.

Referenced by tableLink::getch(), setfg::getch(), makeInverse::getch(), CPlucker_base::getch_base(), and CDrawBuffer::render().

void CStyle::setBackground unsigned char  r,
unsigned char  g,
unsigned char  b
[inline]
 

Definition at line 140 of file StyleConsts.h.

References CBasicStyle::bblue, CBasicStyle::bgreen, CBasicStyle::bred, and sty.

Referenced by striphtml::getch(), setbg::getch(), makeInverse::getch(), and HighlightFilter::getch().

void CStyle::setBold  )  [inline]
 

Definition at line 170 of file StyleConsts.h.

References CBasicStyle::m_bold, and sty.

Referenced by striphtml::getch(), iSilo::getch(), embolden::getch(), PeanutFormatter::getch(), textfmt::getch(), and CPlucker_base::getch_base().

void CStyle::setCentreJustify  )  [inline]
 

Definition at line 188 of file StyleConsts.h.

References CBasicStyle::m_align, m_AlignCentre, and sty.

Referenced by striphtml::getch(), CPlucker::getch(), iSilo::getch(), PeanutFormatter::getch(), CPlucker_base::getch_base(), and striphtml::parse_paragraph().

void CStyle::setColour unsigned char  r,
unsigned char  g,
unsigned char  b
[inline]
 

Definition at line 122 of file StyleConsts.h.

References CBasicStyle::blue, CBasicStyle::green, CBasicStyle::red, and sty.

Referenced by striphtml::getch(), tableLink::getch(), setfg::getch(), makeInverse::getch(), PeanutFormatter::getch(), CPlucker_base::getch_base(), and striphtml::parse_paragraph().

void CStyle::setData unsigned long  _d  )  [inline]
 

Definition at line 225 of file StyleConsts.h.

References CBasicStyle::data, and sty.

Referenced by striphtml::getch(), and CPlucker_base::getch_base().

void CStyle::setExtraSpace signed char  sp  )  [inline]
 

Definition at line 106 of file StyleConsts.h.

References CBasicStyle::m_extraspace, and sty.

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

void CStyle::setFontSize int  _fs  )  [inline]
 

Definition at line 205 of file StyleConsts.h.

References CBasicStyle::m_fontsize, and sty.

Referenced by striphtml::getch(), CPlucker::getch(), iSilo::getch(), PeanutFormatter::getch(), and CPlucker_base::getch_base().

void CStyle::setFullJustify  )  [inline]
 

Definition at line 192 of file StyleConsts.h.

References CBasicStyle::m_align, m_AlignJustify, and sty.

Referenced by FullJust::getch(), CPlucker_base::getch_base(), and striphtml::parse_paragraph().

void CStyle::setItalic  )  [inline]
 

Definition at line 173 of file StyleConsts.h.

References CBasicStyle::m_italic, and sty.

Referenced by striphtml::getch(), iSilo::getch(), PeanutFormatter::getch(), textfmt::getch(), and CPlucker_base::getch_base().

void CStyle::setLeftJustify  )  [inline]
 

Definition at line 180 of file StyleConsts.h.

References CBasicStyle::m_align, m_AlignLeft, and sty.

Referenced by iSilo::getch(), PeanutFormatter::getch(), and CPlucker_base::getch_base().

void CStyle::setLeftMargin unsigned char  m  )  [inline]
 

Definition at line 115 of file StyleConsts.h.

References CBasicStyle::m_leftmargin, and sty.

Referenced by striphtml::getch(), iSilo::getch(), and CPlucker_base::getch_base().

void CStyle::setLink bool  _l  )  [inline]
 

Definition at line 221 of file StyleConsts.h.

References CBasicStyle::isLink, and sty.

Referenced by striphtml::getch(), and CPlucker_base::getch_base().

void CStyle::setMono  )  [inline]
 

Definition at line 176 of file StyleConsts.h.

References CBasicStyle::m_monospaced, and sty.

Referenced by striphtml::getch(), iSilo::getch(), and CPlucker_base::getch_base().

void CStyle::setNoJustify  )  [inline]
 

Definition at line 196 of file StyleConsts.h.

References CBasicStyle::m_align, m_AlignNone, and sty.

Referenced by striphtml::getch().

void CStyle::setOffset unsigned long  _d  )  [inline]
 

Definition at line 227 of file StyleConsts.h.

References CBasicStyle::offset, and sty.

Referenced by CPlucker_base::getch_base().

void CStyle::setPaper unsigned char  r,
unsigned char  g,
unsigned char  b
[inline]
 

Definition at line 134 of file StyleConsts.h.

References CBasicStyle::pblue, CBasicStyle::pgreen, CBasicStyle::pred, and sty.

Referenced by setbg::getch(), makeInverse::getch(), and striphtml::parse_paragraph().

void CStyle::setPicture bool  canScale,
QImage *  _g,
bool  il = false,
unsigned long  tgt = 0
 

Definition at line 83 of file StyleConsts.cpp.

References pmstore::count, graphic, and NULL.

Referenced by striphtml::getch(), CPlucker::getch(), and CPlucker_base::getch_base().

void CStyle::setRightJustify  )  [inline]
 

Definition at line 184 of file StyleConsts.h.

References CBasicStyle::m_align, m_AlignRight, and sty.

Referenced by iSilo::getch(), PeanutFormatter::getch(), CPlucker_base::getch_base(), and striphtml::parse_paragraph().

void CStyle::setRightMargin unsigned char  m  )  [inline]
 

Definition at line 117 of file StyleConsts.h.

References CBasicStyle::m_rightmargin, and sty.

Referenced by striphtml::getch(), iSilo::getch(), and CPlucker_base::getch_base().

void CStyle::setStrikethru  )  [inline]
 

Definition at line 167 of file StyleConsts.h.

References CBasicStyle::m_strikethru, and sty.

Referenced by CPlucker_base::getch_base().

void CStyle::setTable unsigned long  _b  )  [inline]
 

Definition at line 153 of file StyleConsts.h.

References CBasicStyle::m_table, and sty.

Referenced by striphtml::getch(), and CPlucker_base::getch_base().

void CStyle::setUnderline  )  [inline]
 

Definition at line 164 of file StyleConsts.h.

References CBasicStyle::m_underline, and sty.

Referenced by striphtml::getch(), iSilo::getch(), underlineLink::getch(), and CPlucker_base::getch_base().

void CStyle::setVOffset signed char  sp  )  [inline]
 

Definition at line 104 of file StyleConsts.h.

References CBasicStyle::m_voffset, and sty.

Referenced by striphtml::getch(), and CPlucker_base::getch_base().

void CStyle::unset  ) 
 

Definition at line 70 of file StyleConsts.cpp.

References pmstore::count, graphic, NULL, sty, and CBasicStyle::unset().

Referenced by CPlucker::bgetch(), CPlucker_base::expand(), striphtml::getch(), CPlucker::getch(), iSilo::getch(), PeanutFormatter::getch(), textfmt::getch(), striphtml::parse_paragraph(), and striphtml::reset().

void CStyle::unsetBold  )  [inline]
 

Definition at line 171 of file StyleConsts.h.

References CBasicStyle::m_bold, and sty.

Referenced by striphtml::getch(), PeanutFormatter::getch(), textfmt::getch(), and CPlucker_base::getch_base().

void CStyle::unsetItalic  )  [inline]
 

Definition at line 174 of file StyleConsts.h.

References CBasicStyle::m_italic, and sty.

Referenced by striphtml::getch(), PeanutFormatter::getch(), textfmt::getch(), and CPlucker_base::getch_base().

void CStyle::unsetMono  )  [inline]
 

Definition at line 177 of file StyleConsts.h.

References CBasicStyle::m_monospaced, and sty.

Referenced by striphtml::getch(), and CPlucker_base::getch_base().

void CStyle::unsetStrikethru  )  [inline]
 

Definition at line 168 of file StyleConsts.h.

References CBasicStyle::m_strikethru, and sty.

Referenced by CPlucker_base::getch_base().

void CStyle::unsetUnderline  )  [inline]
 

Definition at line 165 of file StyleConsts.h.

References CBasicStyle::m_underline, and sty.

Referenced by striphtml::getch(), and CPlucker_base::getch_base().


Member Data Documentation

pmstore* CStyle::graphic [private]
 

Definition at line 101 of file StyleConsts.h.

Referenced by canScale(), clearPicture(), getPicture(), getPictureLink(), getPictureLinkData(), isPicture(), operator!=(), operator=(), setPicture(), unset(), and ~CStyle().

CBasicStyle CStyle::sty [private]
 

Definition at line 100 of file StyleConsts.h.

Referenced by bBlue(), bGreen(), Blue(), bRed(), getData(), getExtraSpace(), getFontSize(), getJustify(), getLeftMargin(), getLink(), getOffset(), getRightMargin(), getTable(), getVOffset(), Green(), invert(), isBold(), isItalic(), isMono(), isStrikethru(), isTable(), isUnderline(), operator!=(), operator=(), pBlue(), pGreen(), pRed(), Red(), setBackground(), setBold(), setCentreJustify(), setColour(), setData(), setExtraSpace(), setFontSize(), setFullJustify(), setItalic(), setLeftJustify(), setLeftMargin(), setLink(), setMono(), setNoJustify(), setOffset(), setPaper(), setRightJustify(), setRightMargin(), setStrikethru(), setTable(), setUnderline(), setVOffset(), unset(), unsetBold(), unsetItalic(), unsetMono(), unsetStrikethru(), and unsetUnderline().


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