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

Qt3::QTextTable Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-write/qrichtext_p.h>

Inheritance diagram for Qt3::QTextTable:

Inheritance graph
[legend]
Collaboration diagram for Qt3::QTextTable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QTextTable (QTextDocument *p, const QMap< QString, QString > &attr)
virtual ~QTextTable ()
void adjustToPainter (QPainter *p)
void pageBreak (int y, QTextFlow *flow)
void draw (QPainter *p, int x, int y, int cx, int cy, int cw, int ch, const QColorGroup &cg, bool selected)
bool noErase () const
bool ownLine () const
Placement placement () const
bool isNested () const
void resize (int nwidth)
virtual void invalidate ()
virtual bool enter (QTextCursor *c, QTextDocument *&doc, QTextParagraph *&parag, int &idx, int &ox, int &oy, bool atEnd=FALSE)
virtual bool enterAt (QTextCursor *c, QTextDocument *&doc, QTextParagraph *&parag, int &idx, int &ox, int &oy, const QPoint &pos)
virtual bool next (QTextCursor *c, QTextDocument *&doc, QTextParagraph *&parag, int &idx, int &ox, int &oy)
virtual bool prev (QTextCursor *c, QTextDocument *&doc, QTextParagraph *&parag, int &idx, int &ox, int &oy)
virtual bool down (QTextCursor *c, QTextDocument *&doc, QTextParagraph *&parag, int &idx, int &ox, int &oy)
virtual bool up (QTextCursor *c, QTextDocument *&doc, QTextParagraph *&parag, int &idx, int &ox, int &oy)
QString richText () const
int minimumWidth () const
QPtrList< QTextTableCelltableCells () const
bool isStretching () const

Private Member Functions

void format (int w)
void addCell (QTextTableCell *cell)
void adjustCells (int y, int shift)

Private Attributes

QGridLayout * layout
QPtrList< QTextTableCellcells
int cachewidth
int fixwidth
int cellpadding
int cellspacing
int border
int outerborder
int stretch
int innerborder
int us_cp
int us_ib
int us_b
int us_ob
int us_cs
QMap< QString, QStringattributes
QMap< QTextCursor *, int > currCell
Placement place
int pageBreakFor

Friends

class QTextTableCell

Constructor & Destructor Documentation

QTextTable::QTextTable QTextDocument p,
const QMap< QString, QString > &  attr
 

Definition at line 7013 of file qrichtext.cpp.

References attributes, border, cachewidth, cellpadding, cells, cellspacing, QMap< Key, T >::contains(), FALSE, fixwidth, innerborder, layout, QString::left(), QString::length(), outerborder, pageBreakFor, place, Qt3::QTextCustomItem::PlaceInline, Qt3::QTextCustomItem::PlaceLeft, Qt3::QTextCustomItem::PlaceRight, s, QPtrCollection::setAutoDelete(), stretch, QString::stripWhiteSpace(), QString::toInt(), us_b, us_cp, us_cs, us_ib, and us_ob.

QTextTable::~QTextTable  )  [virtual]
 

Definition at line 7070 of file qrichtext.cpp.

References layout.


Member Function Documentation

void QTextTable::addCell QTextTableCell cell  )  [private]
 

Definition at line 7287 of file qrichtext.cpp.

References QPtrList< type >::append(), cells, and layout.

Referenced by Qt3::QTextTableCell::QTextTableCell().

void QTextTable::adjustCells int  y,
int  shift
[private]
 

Definition at line 7124 of file qrichtext.cpp.

References cells, QPtrListIterator< type >::current(), FALSE, Qt3::QTextTableCell::geometry(), Qt3::QTextCustomItem::height, Qt3::QTextTableCell::setGeometry(), and TRUE.

Referenced by pageBreak().

void QTextTable::adjustToPainter QPainter *  p  )  [virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7111 of file qrichtext.cpp.

References border, cachewidth, cellpadding, cells, cellspacing, QPtrList< type >::first(), innerborder, QPtrList< type >::next(), outerborder, scale(), us_b, us_cp, us_cs, us_ib, us_ob, and Qt3::QTextCustomItem::width.

bool QTextTable::down QTextCursor c,
QTextDocument *&  doc,
QTextParagraph *&  parag,
int &  idx,
int &  ox,
int &  oy
[virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7416 of file qrichtext.cpp.

References QPtrList< type >::at(), cells, Qt3::QTextTableCell::col_, QPtrList< type >::count(), currCell, QTextCustomItem::down(), QMap< Key, T >::end(), FALSE, QMap< Key, T >::find(), QPtrList< type >::first(), Qt3::QTextDocument::firstParagraph(), Qt3::QTextTableCell::geometry(), Qt3::QTextTableCell::horizontalAlignmentOffset(), i, QMap< Key, T >::insert(), layout, outerborder, Qt3::QTextCustomItem::parent, Qt3::QTextTableCell::richText(), Qt3::QTextTableCell::row_, TRUE, Qt3::QTextTableCell::verticalAlignmentOffset(), and Qt3::QTextDocument::x().

void QTextTable::draw QPainter *  p,
int  x,
int  y,
int  cx,
int  cy,
int  cw,
int  ch,
const QColorGroup &  cg,
bool  selected
[virtual]
 

Implements Qt3::QTextCustomItem.

Definition at line 7168 of file qrichtext.cpp.

References border, cells, cellspacing, FALSE, QPtrList< type >::first(), Qt3::QTextCustomItem::height, innerborder, is_printer(), QPtrList< type >::next(), outerborder, Qt3::QTextCustomItem::PlaceInline, placement(), s, TRUE, Qt3::QTextCustomItem::width, Qt3::QTextCustomItem::xpos, and Qt3::QTextCustomItem::ypos.

bool QTextTable::enter QTextCursor c,
QTextDocument *&  doc,
QTextParagraph *&  parag,
int &  idx,
int &  ox,
int &  oy,
bool  atEnd = FALSE
[virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7294 of file qrichtext.cpp.

References cells, QPtrList< type >::count(), currCell, QMap< Key, T >::insert(), next(), prev(), and QMap< Key, T >::remove().

bool QTextTable::enterAt QTextCursor c,
QTextDocument *&  doc,
QTextParagraph *&  parag,
int &  idx,
int &  ox,
int &  oy,
const QPoint &  pos
[virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7303 of file qrichtext.cpp.

References QPtrList< type >::at(), cells, QPtrList< type >::count(), currCell, QMap< Key, T >::end(), FALSE, QMap< Key, T >::find(), Qt3::QTextDocument::firstParagraph(), Qt3::QTextTableCell::geometry(), Qt3::QTextTableCell::horizontalAlignmentOffset(), i, innerborder, QMap< Key, T >::insert(), outerborder, Qt3::QTextCustomItem::parent, QMap< Key, T >::remove(), Qt3::QTextTableCell::richText(), TRUE, Qt3::QTextTableCell::verticalAlignmentOffset(), and Qt3::QTextDocument::x().

void QTextTable::format int  w  )  [private]
 

Definition at line 7277 of file qrichtext.cpp.

References QPtrList< type >::at(), cells, QPtrList< type >::count(), Qt3::QTextTableCell::geometry(), i, outerborder, and Qt3::QTextTableCell::setGeometry().

Referenced by resize().

void QTextTable::invalidate  )  [virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 92 of file qrichtext_p.cpp.

References cachewidth.

bool Qt3::QTextTable::isNested  )  const [inline, virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 617 of file qrichtext_p.h.

References TRUE.

bool Qt3::QTextTable::isStretching  )  const [inline]
 

Definition at line 634 of file qrichtext_p.h.

int QTextTable::minimumWidth  )  const [virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7235 of file qrichtext.cpp.

References layout, and outerborder.

bool QTextTable::next QTextCursor c,
QTextDocument *&  doc,
QTextParagraph *&  parag,
int &  idx,
int &  ox,
int &  oy
[virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7350 of file qrichtext.cpp.

References QPtrList< type >::at(), cells, QPtrList< type >::count(), currCell, QMap< Key, T >::end(), FALSE, QMap< Key, T >::find(), QPtrList< type >::first(), Qt3::QTextDocument::firstParagraph(), Qt3::QTextTableCell::geometry(), Qt3::QTextTableCell::horizontalAlignmentOffset(), QMap< Key, T >::insert(), QTextCustomItem::next(), outerborder, Qt3::QTextCustomItem::parent, QMap< Key, T >::remove(), Qt3::QTextTableCell::richText(), TRUE, Qt3::QTextTableCell::verticalAlignmentOffset(), and Qt3::QTextDocument::x().

Referenced by enter().

bool Qt3::QTextTable::noErase  )  const [inline]
 

Definition at line 614 of file qrichtext_p.h.

References TRUE.

bool Qt3::QTextTable::ownLine  )  const [inline, virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 615 of file qrichtext_p.h.

References TRUE.

void QTextTable::pageBreak int  y,
QTextFlow flow
[virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7146 of file qrichtext.cpp.

References adjustCells(), Qt3::QTextFlow::adjustFlow(), cells, cellspacing, QPtrListIterator< type >::current(), Qt3::QTextTableCell::geometry(), Qt3::QTextCustomItem::height, layout, outerborder, pageBreakFor, Qt3::QTextFlow::pageSize(), Qt3::QTextTableCell::richText(), shift, Qt3::QTextCustomItem::width, and Opie::MM::y.

Placement Qt3::QTextTable::placement  )  const [inline, virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 616 of file qrichtext_p.h.

References place().

Referenced by draw().

bool QTextTable::prev QTextCursor c,
QTextDocument *&  doc,
QTextParagraph *&  parag,
int &  idx,
int &  ox,
int &  oy
[virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7383 of file qrichtext.cpp.

References QPtrList< type >::at(), cells, QPtrList< type >::count(), currCell, QMap< Key, T >::end(), FALSE, QMap< Key, T >::find(), QPtrList< type >::first(), Qt3::QTextTableCell::geometry(), Qt3::QTextTableCell::horizontalAlignmentOffset(), QMap< Key, T >::insert(), Qt3::QTextDocument::lastParagraph(), Qt3::QTextParagraph::length(), outerborder, Qt3::QTextCustomItem::parent, QTextCustomItem::prev(), QMap< Key, T >::remove(), Qt3::QTextTableCell::richText(), TRUE, Qt3::QTextTableCell::verticalAlignmentOffset(), and Qt3::QTextDocument::x().

Referenced by enter().

void QTextTable::resize int  nwidth  )  [virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7240 of file qrichtext.cpp.

References cachewidth, fixwidth, format(), Qt3::QTextCustomItem::height, layout, outerborder, stretch, and Qt3::QTextCustomItem::width.

QString QTextTable::richText  )  const [virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7075 of file qrichtext.cpp.

References Qt3::QTextTableCell::attributes, attributes, QMap< Key, T >::begin(), cells, QPtrListIterator< type >::current(), QMap< Key, T >::end(), FALSE, lastRow(), Qt3::QTextTableCell::richText(), Qt3::QTextTableCell::row(), s, and TRUE.

QPtrList<QTextTableCell> Qt3::QTextTable::tableCells  )  const [inline]
 

Definition at line 632 of file qrichtext_p.h.

Referenced by Qt3::QTextDocument::focusNextPrevChild(), Qt3::QTextDocument::plainText(), and Qt3::QTextDocument::selectedText().

bool QTextTable::up QTextCursor c,
QTextDocument *&  doc,
QTextParagraph *&  parag,
int &  idx,
int &  ox,
int &  oy
[virtual]
 

Reimplemented from Qt3::QTextCustomItem.

Definition at line 7454 of file qrichtext.cpp.

References QPtrList< type >::at(), cells, Qt3::QTextTableCell::col_, currCell, QMap< Key, T >::end(), FALSE, QMap< Key, T >::find(), QPtrList< type >::first(), Qt3::QTextTableCell::geometry(), Qt3::QTextTableCell::horizontalAlignmentOffset(), i, QMap< Key, T >::insert(), Qt3::QTextDocument::lastParagraph(), Qt3::QTextParagraph::length(), outerborder, Qt3::QTextCustomItem::parent, Qt3::QTextTableCell::richText(), Qt3::QTextTableCell::row_, TRUE, QTextCustomItem::up(), Qt3::QTextTableCell::verticalAlignmentOffset(), and Qt3::QTextDocument::x().


Friends And Related Function Documentation

friend class QTextTableCell [friend]
 

Definition at line 603 of file qrichtext_p.h.


Member Data Documentation

QMap<QString, QString> Qt3::QTextTable::attributes [private]
 

Definition at line 652 of file qrichtext_p.h.

Referenced by QTextTable(), and richText().

int Qt3::QTextTable::border [private]
 

Definition at line 647 of file qrichtext_p.h.

Referenced by adjustToPainter(), draw(), and QTextTable().

int Qt3::QTextTable::cachewidth [private]
 

Definition at line 643 of file qrichtext_p.h.

Referenced by adjustToPainter(), invalidate(), QTextTable(), and resize().

int Qt3::QTextTable::cellpadding [private]
 

Definition at line 645 of file qrichtext_p.h.

Referenced by adjustToPainter(), Qt3::QTextTableCell::draw(), Qt3::QTextTableCell::heightForWidth(), Qt3::QTextTableCell::horizontalAlignmentOffset(), Qt3::QTextTableCell::minimumSize(), QTextTable(), Qt3::QTextTableCell::setGeometry(), Qt3::QTextTableCell::sizeHint(), and Qt3::QTextTableCell::verticalAlignmentOffset().

QPtrList<QTextTableCell> Qt3::QTextTable::cells [private]
 

Definition at line 642 of file qrichtext_p.h.

Referenced by addCell(), adjustCells(), adjustToPainter(), down(), draw(), enter(), enterAt(), format(), next(), pageBreak(), prev(), QTextTable(), richText(), and up().

int Qt3::QTextTable::cellspacing [private]
 

Definition at line 646 of file qrichtext_p.h.

Referenced by adjustToPainter(), draw(), pageBreak(), QTextTable(), and Qt3::QTextTableCell::sizeHint().

QMap<QTextCursor*, int> Qt3::QTextTable::currCell [private]
 

Definition at line 653 of file qrichtext_p.h.

Referenced by down(), enter(), enterAt(), next(), prev(), and up().

int Qt3::QTextTable::fixwidth [private]
 

Definition at line 644 of file qrichtext_p.h.

Referenced by QTextTable(), and resize().

int Qt3::QTextTable::innerborder [private]
 

Definition at line 650 of file qrichtext_p.h.

Referenced by adjustToPainter(), Qt3::QTextTableCell::draw(), draw(), enterAt(), Qt3::QTextTableCell::heightForWidth(), Qt3::QTextTableCell::minimumSize(), QTextTable(), Qt3::QTextTableCell::setGeometry(), and Qt3::QTextTableCell::sizeHint().

QGridLayout* Qt3::QTextTable::layout [private]
 

Definition at line 641 of file qrichtext_p.h.

Referenced by addCell(), down(), minimumWidth(), pageBreak(), QTextTable(), resize(), and ~QTextTable().

int Qt3::QTextTable::outerborder [private]
 

Definition at line 648 of file qrichtext_p.h.

Referenced by adjustToPainter(), down(), draw(), enterAt(), format(), minimumWidth(), next(), pageBreak(), prev(), QTextTable(), resize(), and up().

int Qt3::QTextTable::pageBreakFor [private]
 

Definition at line 656 of file qrichtext_p.h.

Referenced by pageBreak(), and QTextTable().

Placement Qt3::QTextTable::place [private]
 

Definition at line 654 of file qrichtext_p.h.

Referenced by QTextTable().

int Qt3::QTextTable::stretch [private]
 

Definition at line 649 of file qrichtext_p.h.

Referenced by QTextTable(), and resize().

int Qt3::QTextTable::us_b [private]
 

Definition at line 651 of file qrichtext_p.h.

Referenced by adjustToPainter(), and QTextTable().

int Qt3::QTextTable::us_cp [private]
 

Definition at line 651 of file qrichtext_p.h.

Referenced by adjustToPainter(), and QTextTable().

int Qt3::QTextTable::us_cs [private]
 

Definition at line 651 of file qrichtext_p.h.

Referenced by adjustToPainter(), and QTextTable().

int Qt3::QTextTable::us_ib [private]
 

Definition at line 651 of file qrichtext_p.h.

Referenced by adjustToPainter(), and QTextTable().

int Qt3::QTextTable::us_ob [private]
 

Definition at line 651 of file qrichtext_p.h.

Referenced by adjustToPainter(), and QTextTable().


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