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

Qt3::QTextDocument Class Reference

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

Collaboration diagram for Qt3::QTextDocument:

Collaboration graph
[legend]
List of all members.

Public Types

enum  SelectionIds { Standard = 0, Temp = 32000 }

Signals

void minimumWidthChanged (int)

Public Member Functions

 QTextDocument (QTextDocument *p)
 QTextDocument (QTextDocument *d, QTextFormatCollection *f)
virtual ~QTextDocument ()
QTextDocumentparent () const
QTextParagraphparentParagraph () const
void setText (const QString &text, const QString &context)
QMap< QString, QStringattributes () const
void setAttributes (const QMap< QString, QString > &attr)
QString text () const
QString text (int parag) const
QString originalText () const
int x () const
int y () const
int width () const
int widthUsed () const
int visibleWidth () const
int height () const
void setWidth (int w)
int minimumWidth () const
bool setMinimumWidth (int needed, int used=-1, QTextParagraph *parag=0)
void setY (int y)
int leftMargin () const
void setLeftMargin (int lm)
int rightMargin () const
void setRightMargin (int rm)
QTextParagraphfirstParagraph () const
QTextParagraphlastParagraph () const
void setFirstParagraph (QTextParagraph *p)
void setLastParagraph (QTextParagraph *p)
void invalidate ()
void setPreProcessor (QTextPreProcessor *sh)
QTextPreProcessorpreProcessor () const
void setFormatter (QTextFormatter *f)
QTextFormatterformatter () const
void setIndent (QTextIndent *i)
QTextIndentindent () const
QColor selectionColor (int id) const
bool invertSelectionText (int id) const
void setSelectionColor (int id, const QColor &c)
void setInvertSelectionText (int id, bool b)
bool hasSelection (int id, bool visible=FALSE) const
void setSelectionStart (int id, const QTextCursor &cursor)
bool setSelectionEnd (int id, const QTextCursor &cursor)
void selectAll (int id)
bool removeSelection (int id)
void selectionStart (int id, int &paragId, int &index)
QTextCursor selectionStartCursor (int id)
QTextCursor selectionEndCursor (int id)
void selectionEnd (int id, int &paragId, int &index)
void setFormat (int id, QTextFormat *f, int flags)
int numSelections () const
void addSelection (int id)
QString selectedText (int id, bool asRichText=FALSE) const
void removeSelectedText (int id, QTextCursor *cursor)
void indentSelection (int id)
QTextParagraphparagAt (int i) const
void addCommand (QTextCommand *cmd)
QTextCursorundo (QTextCursor *c=0)
QTextCursorredo (QTextCursor *c=0)
QTextCommandHistorycommands () const
QTextFormatCollectionformatCollection () const
bool find (QTextCursor &cursor, const QString &expr, bool cs, bool wo, bool forward)
void setTextFormat (Qt::TextFormat f)
Qt::TextFormat textFormat () const
bool inSelection (int selId, const QPoint &pos) const
QStyleSheetstyleSheet () const
QMimeSourceFactory * mimeSourceFactory () const
QString context () const
void setStyleSheet (QStyleSheet *s)
void setDefaultFormat (const QFont &font, const QColor &color)
void setMimeSourceFactory (QMimeSourceFactory *f)
void setContext (const QString &c)
void setUnderlineLinks (bool b)
bool underlineLinks () const
void setPaper (QBrush *brush)
QBrush * paper () const
void doLayout (QPainter *p, int w)
void draw (QPainter *p, const QRect &rect, const QColorGroup &cg, const QBrush *paper=0)
void drawParagraph (QPainter *p, QTextParagraph *parag, int cx, int cy, int cw, int ch, QPixmap *&doubleBuffer, const QColorGroup &cg, bool drawCursor, QTextCursor *cursor, bool resetChanged=TRUE)
QTextParagraphdraw (QPainter *p, int cx, int cy, int cw, int ch, const QColorGroup &cg, bool onlyChanged=FALSE, bool drawCursor=FALSE, QTextCursor *cursor=0, bool resetChanged=TRUE)
void registerCustomItem (QTextCustomItem *i, QTextParagraph *p)
void unregisterCustomItem (QTextCustomItem *i, QTextParagraph *p)
void setFlow (QTextFlow *f)
void takeFlow ()
QTextFlowflow () const
bool isPageBreakEnabled () const
void setPageBreakEnabled (bool b)
void setUseFormatCollection (bool b)
bool useFormatCollection () const
QTextTableCelltableCell () const
void setTableCell (QTextTableCell *c)
void setPlainText (const QString &text)
void setRichText (const QString &text, const QString &context)
QString richText () const
QString plainText () const
bool focusNextPrevChild (bool next)
int alignment () const
void setAlignment (int a)
int * tabArray () const
int tabStopWidth () const
void setTabArray (int *a)
void setTabStops (int tw)
void setUndoDepth (int d)
int undoDepth () const
int length () const
void clear (bool createEmptyParag=FALSE)
virtual QTextParagraphcreateParagraph (QTextDocument *d, QTextParagraph *pr=0, QTextParagraph *nx=0, bool updateIds=TRUE)
void insertChild (QObject *o)
void removeChild (QObject *o)
void insertChild (QTextDocument *d)
void removeChild (QTextDocument *d)
QPtrList< QTextDocumentchildren () const
bool hasFocusParagraph () const
QString focusHref () const
void invalidateOriginalText ()

Static Public Member Functions

static QString section (QString str, const QString &sep, int start, int end=0xffffffff)
static bool endsWith (QString str, const QString &s)

Private Member Functions

void init ()
QPixmap * bufferPixmap (const QSize &s)
bool hasPrefix (const QChar *doc, int length, int pos, QChar c)
bool hasPrefix (const QChar *doc, int length, int pos, const QString &s)
QTextCustomItemparseTable (const QMap< QString, QString > &attr, const QTextFormat &fmt, const QChar *doc, int length, int &pos, QTextParagraph *curpar)
bool eatSpace (const QChar *doc, int length, int &pos, bool includeNbsp=FALSE)
bool eat (const QChar *doc, int length, int &pos, QChar c)
QString parseOpenTag (const QChar *doc, int length, int &pos, QMap< QString, QString > &attr, bool &emptyTag)
QString parseCloseTag (const QChar *doc, int length, int &pos)
QChar parseHTMLSpecialChar (const QChar *doc, int length, int &pos)
QString parseWord (const QChar *doc, int length, int &pos, bool lower=TRUE)
QChar parseChar (const QChar *doc, int length, int &pos, QStyleSheetItem::WhiteSpaceMode wsm)
void setRichTextInternal (const QString &text, QTextCursor *cursor=0)
void setRichTextMarginsInternal (QPtrList< QPtrVector< QStyleSheetItem > > &styles, QTextParagraph *stylesPar)

Private Attributes

int cx
int cy
int cw
int vw
QTextParagraphfParag
QTextParagraphlParag
QTextPreProcessorpProcessor
QMap< int, QColor > selectionColors
QMap< int, QTextDocumentSelectionselections
QMap< int, bool > selectionText
QTextCommandHistorycommandHistory
QTextFormatterpFormatter
QTextIndentindenter
QTextFormatCollectionfCollection
Qt::TextFormat txtFormat
uint preferRichText: 1
uint pages: 1
uint useFC: 1
uint withoutDoubleBuffer: 1
uint underlLinks: 1
uint nextDoubleBuffered: 1
uint oTextValid: 1
uint mightHaveCustomItems: 1
int align
int nSelections
QTextFlowflow_
QTextDocumentpar
QTextParagraphparentPar
QTextTableCelltc
QBrush * backBrush
QPixmap * buf_pixmap
Focus focusIndicator
int minw
int wused
int leftmargin
int rightmargin
QTextParagraphminwParag
QTextParagraphcurParag
QStyleSheetsheet_
QMimeSourceFactory * factory_
QString contxt
QMap< QString, QStringattribs
int * tArray
int tStopWidth
int uDepth
QString oText
QPtrList< QTextDocumentchildList
QColor linkColor
double scaleFontsFactor
short list_tm
short list_bm
short list_lm
short li_tm
short li_bm
short par_tm
short par_bm

Friends

class QTextTableCell
class QTextCursor
class QTextEdit
class QTextParagraph

Classes

struct  Focus

Member Enumeration Documentation

enum Qt3::QTextDocument::SelectionIds
 

Enumeration values:
Standard 
Temp 

Definition at line 689 of file qrichtext_p.h.


Constructor & Destructor Documentation

QTextDocument::QTextDocument QTextDocument p  ) 
 

Definition at line 1163 of file qrichtext.cpp.

References fCollection, and init().

QTextDocument::QTextDocument QTextDocument d,
QTextFormatCollection f
 

Definition at line 1170 of file qrichtext.cpp.

References fCollection, and init().

QTextDocument::~QTextDocument  )  [virtual]
 

Definition at line 1233 of file qrichtext.cpp.

References backBrush, buf_pixmap, clear(), commandHistory, fCollection, flow_, par, pFormatter, pProcessor, removeChild(), and tArray.


Member Function Documentation

void QTextDocument::addCommand QTextCommand cmd  ) 
 

Definition at line 2755 of file qrichtext.cpp.

References Qt3::QTextCommandHistory::addCommand(), and commandHistory.

void QTextDocument::addSelection int  id  ) 
 

Definition at line 2306 of file qrichtext.cpp.

References nSelections.

Referenced by Qt3::QTextEdit::setSelection().

int Qt3::QTextDocument::alignment  )  const [inline]
 

Definition at line 1702 of file qrichtext_p.h.

References QTextDocument::align.

Referenced by Qt3::QTextFormatterBreakWords::format().

QMap<QString, QString> Qt3::QTextDocument::attributes  )  const [inline]
 

Definition at line 703 of file qrichtext_p.h.

References attributes.

QPixmap * QTextDocument::bufferPixmap const QSize &  s  )  [private]
 

Definition at line 2913 of file qrichtext.cpp.

References buf_pixmap.

Referenced by drawParagraph().

QPtrList<QTextDocument> Qt3::QTextDocument::children  )  const [inline]
 

Definition at line 844 of file qrichtext_p.h.

void QTextDocument::clear bool  createEmptyParag = FALSE  ) 
 

Definition at line 1251 of file qrichtext.cpp.

References QMap< Key, T >::clear(), Qt3::QTextFlow::clear(), createParagraph(), flow_, fParag, lParag, QString::null, oText, oTextValid, p, selections, and TRUE.

Referenced by setPlainText(), setRichText(), and ~QTextDocument().

QTextCommandHistory* Qt3::QTextDocument::commands  )  const [inline]
 

Definition at line 768 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::redo(), Qt3::QTextEdit::setText(), and Qt3::QTextEdit::undo().

QString Qt3::QTextDocument::context  )  const [inline]
 

Definition at line 781 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::contentsMouseReleaseEvent().

QTextParagraph * QTextDocument::createParagraph QTextDocument d,
QTextParagraph pr = 0,
QTextParagraph nx = 0,
bool  updateIds = TRUE
[virtual]
 

Definition at line 1284 of file qrichtext.cpp.

References QTextParagraph.

Referenced by clear(), init(), setPlainText(), and setRichText().

void QTextDocument::doLayout QPainter *  p,
int  w
 

Definition at line 2891 of file qrichtext.cpp.

References cw, flow_, fParag, is_printer(), minw, QTextFormat::painter(), QTextFormat::setPainter(), Qt3::QTextFlow::setWidth(), vw, withoutDoubleBuffer, and wused.

Referenced by Qt3::QTextTableCell::draw(), Qt3::QTextTableCell::heightForWidth(), and Qt3::QTextTableCell::setGeometry().

QTextParagraph * QTextDocument::draw QPainter *  p,
int  cx,
int  cy,
int  cw,
int  ch,
const QColorGroup &  cg,
bool  onlyChanged = FALSE,
bool  drawCursor = FALSE,
QTextCursor cursor = 0,
bool  resetChanged = TRUE
 

Definition at line 3023 of file qrichtext.cpp.

References buf_pixmap, Qt3::QTextParagraph::document(), draw(), drawParagraph(), FALSE, firstParagraph(), flow(), Qt3::QTextParagraph::format(), Qt3::QTextParagraph::hasChanged(), height(), Qt3::QTextParagraph::isValid(), lastParagraph(), Qt3::QTextParagraph::next(), par, Qt3::QTextParagraph::rect(), TRUE, width(), and withoutDoubleBuffer.

void QTextDocument::draw QPainter *  p,
const QRect &  rect,
const QColorGroup &  cg,
const QBrush *  paper = 0
 

Definition at line 2922 of file qrichtext.cpp.

References FALSE, firstParagraph(), flow(), Qt3::QTextParagraph::format(), formatCollection(), Qt3::QTextParagraph::isValid(), Qt3::QTextParagraph::next(), Qt3::QTextParagraph::paint(), Qt3::QTextParagraph::rect(), setDefaultFormat(), and y().

Referenced by Qt3::QTextTableCell::draw(), draw(), and Qt3::QTextEdit::paintDocument().

void QTextDocument::drawParagraph QPainter *  p,
QTextParagraph parag,
int  cx,
int  cy,
int  cw,
int  ch,
QPixmap *&  doubleBuffer,
const QColorGroup &  cg,
bool  drawCursor,
QTextCursor cursor,
bool  resetChanged = TRUE
 

Definition at line 2960 of file qrichtext.cpp.

References Qt3::QTextParagraph::at(), Qt3::QTextParagraph::backgroundBrush(), bufferPixmap(), Qt3::QTextParagraph::document(), FALSE, Qt3::QTextCursor::index(), is_printer(), Qt3::QTextParagraph::paint(), Qt3::QTextCursor::paragraph(), Qt3::QTextParagraph::rect(), Qt3::QTextParagraph::setChanged(), TRUE, and Qt3::QTextStringChar::x.

Referenced by draw(), and Qt3::QTextEdit::drawCursor().

bool QTextDocument::eat const QChar doc,
int  length,
int &  pos,
QChar  c
[private]
 

Definition at line 6425 of file qrichtext.cpp.

Referenced by parseCloseTag(), parseOpenTag(), and parseWord().

bool QTextDocument::eatSpace const QChar doc,
int  length,
int &  pos,
bool  includeNbsp = FALSE
[private]
 

Definition at line 6417 of file qrichtext.cpp.

References isSpace(), and QChar::nbsp.

Referenced by parseCloseTag(), parseOpenTag(), parseTable(), and setRichTextInternal().

bool QTextDocument::endsWith QString  str,
const QString s
[static]
 

Definition at line 7823 of file qrichtext.cpp.

References FALSE, i, QString::isNull(), QString::length(), pos, TRUE, and QString::unicode().

Referenced by Qt3::QTextFormat::makeTextFormat(), and setRichTextInternal().

bool QTextDocument::find QTextCursor cursor,
const QString expr,
bool  cs,
bool  wo,
bool  forward
 

Definition at line 2770 of file qrichtext.cpp.

References QString::at(), end, FALSE, QString::find(), QString::findRev(), firstParagraph(), QChar::isPunct(), QChar::isSpace(), isSpace(), lastParagraph(), QString::left(), QString::length(), p, removeSelection(), s, setSelectionEnd(), setSelectionStart(), Standard, start, and TRUE.

Referenced by Qt3::QTextEdit::find().

QTextParagraph * Qt3::QTextDocument::firstParagraph  )  const [inline]
 

Definition at line 1589 of file qrichtext_p.h.

References QTextDocument::fParag.

Referenced by Qt3::QTextTableCell::adjustToPainter(), Qt3::QTextEdit::doResize(), Qt3::QTextTable::down(), draw(), Qt3::QTextTable::enterAt(), find(), Qt3::QTextEdit::lines(), Qt3::QTextTable::next(), Qt3::QTextEdit::placeCursor(), Qt3::QTextCursor::QTextCursor(), Qt3::QTextEdit::removeParagraph(), and Qt3::QTextEdit::setText().

QTextFlow* Qt3::QTextDocument::flow  )  const [inline]
 

Definition at line 808 of file qrichtext_p.h.

Referenced by draw(), Qt3::QTextFormatterBreakWords::format(), and Qt3::QTextFormatterBreakInWords::format().

QString QTextDocument::focusHref  )  const
 

Definition at line 3140 of file qrichtext.cpp.

References focusIndicator, and Qt3::QTextDocument::Focus::href.

bool QTextDocument::focusNextPrevChild bool  next  ) 
 

Definition at line 3145 of file qrichtext.cpp.

References QPtrList< type >::at(), at(), Qt3::QTextParagraph::at(), QString::at(), FALSE, QPtrList< type >::first(), focusIndicator, fParag, Qt3::QTextDocument::Focus::href, i, QPtrList< type >::last(), Qt3::QTextDocument::Focus::len, length(), Qt3::QTextParagraph::length(), lParag, QPtrList< type >::next(), QString::null, p, Qt3::QTextDocument::Focus::parag, Qt3::QTextParagraph::prev(), QPtrList< type >::prev(), Qt3::QTextTableCell::richText(), Qt3::QTextParagraph::setChanged(), Qt3::QTextDocument::Focus::start, t, Qt3::QTextTable::tableCells(), and TRUE.

Referenced by Qt3::QTextEdit::focusNextPrevChild().

QTextFormatCollection * Qt3::QTextDocument::formatCollection  )  const [inline]
 

Definition at line 1697 of file qrichtext_p.h.

References QTextDocument::fCollection.

Referenced by draw(), Qt3::QTextEdit::handleMouseMove(), Qt3::QTextEdit::init(), init(), Qt3::QTextFormatCommand::QTextFormatCommand(), richText(), Qt3::QTextEdit::setBold(), Qt3::QTextEdit::setColor(), setDefaultFormat(), Qt3::QTextEdit::setFamily(), Qt3::QTextEdit::setFontInternal(), Qt3::QTextEdit::setFormat(), Qt3::QTextEdit::setItalic(), Qt3::QTextEdit::setPalette(), Qt3::QTextEdit::setPointSize(), setRichTextInternal(), setRichTextMarginsInternal(), Qt3::QTextEdit::setUnderline(), Qt3::QTextEdit::setVerticalAlignment(), and Qt3::QTextEdit::updateCurrentFormat().

QTextFormatter * Qt3::QTextDocument::formatter  )  const [inline]
 

Definition at line 1662 of file qrichtext_p.h.

References QTextDocument::pFormatter.

bool QTextDocument::hasFocusParagraph  )  const
 

Definition at line 3135 of file qrichtext.cpp.

References focusIndicator, and Qt3::QTextDocument::Focus::parag.

bool QTextDocument::hasPrefix const QChar doc,
int  length,
int  pos,
const QString s
[private]
 

Definition at line 6300 of file qrichtext.cpp.

References FALSE, i, QString::length(), lower(), and TRUE.

bool QTextDocument::hasPrefix const QChar doc,
int  length,
int  pos,
QChar  c
[private]
 

Definition at line 6293 of file qrichtext.cpp.

References FALSE, and QChar::lower().

Referenced by parseOpenTag(), parseTable(), parseWord(), and setRichTextInternal().

bool QTextDocument::hasSelection int  id,
bool  visible = FALSE
const
 

Definition at line 152 of file qrichtext_p.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), and selections.

Referenced by Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextEdit::contentsMouseMoveEvent(), Qt3::QTextEdit::contentsMousePressEvent(), Qt3::QTextEdit::contentsMouseReleaseEvent(), Qt3::QTextEdit::copy(), Qt3::QTextEdit::cut(), Qt3::QTextEdit::find(), Qt3::QTextEdit::getSelection(), Qt3::QTextEdit::handleMouseMove(), Qt3::QTextEdit::indent(), Qt3::QTextEdit::insert(), Qt3::QTextEdit::keyPressEvent(), Qt3::QTextEdit::moveCursor(), Qt3::QTextEdit::selectAll(), Qt3::QTextEdit::setAlignment(), Qt3::QTextEdit::setFormat(), Qt3::QTextEdit::setParagType(), and Qt3::QTextEdit::setSelection().

int QTextDocument::height  )  const
 

Definition at line 1273 of file qrichtext.cpp.

References Qt3::QTextFlow::boundingRect(), flow_, lParag, and Qt3::QTextParagraph::rect().

Referenced by draw(), Qt3::QTextEdit::formatMore(), Qt3::QTextTableCell::heightForWidth(), Qt3::QTextEdit::paintDocument(), setRichTextMarginsInternal(), Qt3::QTextTableCell::verticalAlignmentOffset(), and Qt3::QTextEdit::viewportResizeEvent().

QTextIndent * Qt3::QTextDocument::indent  )  const [inline]
 

Definition at line 1672 of file qrichtext_p.h.

void QTextDocument::indentSelection int  id  ) 
 

Definition at line 2734 of file qrichtext.cpp.

References QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, QMap< Key, T >::find(), Qt3::QTextParagraph::indent(), Qt3::QTextParagraph::next(), p, Qt3::QTextCursor::paragraph(), selections, and Qt3::QTextDocumentSelection::startCursor.

Referenced by Qt3::QTextEdit::indent().

void QTextDocument::init  )  [private]
 

Definition at line 1177 of file qrichtext.cpp.

References align, Qt3::AlignAuto, Qt::AutoText, backBrush, buf_pixmap, commandHistory, contxt, createParagraph(), curParag, cw, cx, cy, Qt3::QStyleSheet::defaultSheet(), factory_, FALSE, flow_, focusIndicator, formatCollection(), fParag, insertChild(), leftmargin, lParag, mightHaveCustomItems, minw, minwParag, nextDoubleBuffered, nSelections, QString::null, oTextValid, pages, par, Qt3::QTextDocument::Focus::parag, pFormatter, pProcessor, preferRichText, rightmargin, scaleFontsFactor, selectionColors, selectionText, setStyleSheet(), Qt3::QTextFlow::setWidth(), Standard, TRUE, tStopWidth, txtFormat, underlLinks, useFC, vw, withoutDoubleBuffer, and wused.

Referenced by QTextDocument().

bool QTextDocument::inSelection int  selId,
const QPoint &  pos
const
 

Definition at line 2840 of file qrichtext.cpp.

References QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, FALSE, QMap< Key, T >::find(), i, length(), p, Qt3::QTextCursor::paragraph(), selections, Qt3::QTextDocumentSelection::startCursor, TRUE, and y().

Referenced by Qt3::QTextEdit::contentsMouseMoveEvent(), Qt3::QTextEdit::contentsMousePressEvent(), and setSelectionEnd().

void Qt3::QTextDocument::insertChild QTextDocument d  )  [inline]
 

Definition at line 842 of file qrichtext_p.h.

void Qt3::QTextDocument::insertChild QObject *  o  )  [inline]
 

Definition at line 840 of file qrichtext_p.h.

Referenced by init().

void QTextDocument::invalidate  ) 
 

Definition at line 2255 of file qrichtext.cpp.

References fParag, Qt3::QTextParagraph::invalidate(), Qt3::QTextParagraph::next(), and s.

Referenced by Qt3::QTextEdit::doResize().

void Qt3::QTextDocument::invalidateOriginalText  )  [inline]
 

Definition at line 849 of file qrichtext_p.h.

References FALSE.

Referenced by Qt3::QTextEdit::setModified().

bool Qt3::QTextDocument::invertSelectionText int  id  )  const [inline]
 

Definition at line 1682 of file qrichtext_p.h.

References QTextDocument::selectionText.

bool Qt3::QTextDocument::isPageBreakEnabled  )  const [inline]
 

Definition at line 809 of file qrichtext_p.h.

QTextParagraph * Qt3::QTextDocument::lastParagraph  )  const [inline]
 

Definition at line 1594 of file qrichtext_p.h.

References QTextDocument::lParag.

Referenced by draw(), Qt3::QTextDeleteCommand::execute(), find(), Qt3::QTextEdit::init(), Qt3::QTextEdit::moveCursor(), Qt3::QTextEdit::paintDocument(), Qt3::QTextEdit::paragraphs(), Qt3::QTextTable::prev(), Qt3::QTextEdit::removeParagraph(), setSelectionEnd(), Qt3::QTextDeleteCommand::unexecute(), and Qt3::QTextTable::up().

int Qt3::QTextDocument::leftMargin  )  const [inline]
 

Definition at line 1626 of file qrichtext_p.h.

References QTextDocument::leftmargin.

Referenced by Qt3::QTextFormatterBreakWords::format(), and Qt3::QTextFormatterBreakInWords::format().

int QTextDocument::length  )  const
 

Definition at line 3299 of file qrichtext.cpp.

References fParag, l, Qt3::QTextParagraph::length(), and Qt3::QTextParagraph::next().

Referenced by focusNextPrevChild(), inSelection(), plainText(), setDefaultFormat(), and setRichTextInternal().

QMimeSourceFactory* Qt3::QTextDocument::mimeSourceFactory  )  const [inline]
 

Definition at line 780 of file qrichtext_p.h.

int Qt3::QTextDocument::minimumWidth  )  const [inline]
 

Definition at line 1616 of file qrichtext_p.h.

References QTextDocument::minw.

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

void Qt3::QTextDocument::minimumWidthChanged int   )  [signal]
 

Referenced by setMinimumWidth().

int Qt3::QTextDocument::numSelections  )  const [inline]
 

Definition at line 756 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::setSelection().

QString Qt3::QTextDocument::originalText  )  const [inline]
 

Definition at line 1732 of file qrichtext_p.h.

References QTextDocument::oText, QTextDocument::oTextValid, and QTextDocument::text().

QBrush* Qt3::QTextDocument::paper  )  const [inline]
 

Definition at line 792 of file qrichtext_p.h.

Referenced by Qt3::QTextTableCell::draw(), Qt3::QTextEdit::drawCursor(), and Qt3::QTextEdit::paintDocument().

QTextParagraph * QTextDocument::paragAt int  i  )  const
 

Definition at line 169 of file qrichtext_p.cpp.

References curParag, fParag, Qt3::QTextParagraph::next(), p, and Qt3::QTextParagraph::paragId().

Referenced by Qt3::QTextFormatCommand::execute(), Qt3::QTextDeleteCommand::execute(), Qt3::QTextEdit::find(), Qt3::QTextEdit::insertAt(), Qt3::QTextEdit::insertParagraph(), Qt3::QTextEdit::lineOfChar(), Qt3::QTextEdit::linesOfParagraph(), Qt3::QTextEdit::paragraphLength(), Qt3::QTextStyleCommand::readStyleInformation(), Qt3::QTextEdit::removeParagraph(), Qt3::QTextEdit::setCursorPosition(), Qt3::QTextEdit::setSelection(), text(), Qt3::QTextFormatCommand::unexecute(), and Qt3::QTextDeleteCommand::unexecute().

QTextDocument* Qt3::QTextDocument::parent  )  const [inline]
 

Definition at line 699 of file qrichtext_p.h.

Referenced by selectedText().

QTextParagraph* Qt3::QTextDocument::parentParagraph  )  const [inline]
 

Definition at line 700 of file qrichtext_p.h.

QChar QTextDocument::parseChar const QChar doc,
int  length,
int &  pos,
QStyleSheetItem::WhiteSpaceMode  wsm
[private]
 

Definition at line 6790 of file qrichtext.cpp.

References isSpace(), QChar::isSpace(), QChar::nbsp, QChar::null, parseHTMLSpecialChar(), QChar_linesep, Qt3::QStyleSheetItem::WhiteSpaceNoWrap, and Qt3::QStyleSheetItem::WhiteSpacePre.

Referenced by setRichTextInternal().

QString QTextDocument::parseCloseTag const QChar doc,
int  length,
int &  pos
[private]
 

Definition at line 6889 of file qrichtext.cpp.

References eat(), eatSpace(), parseWord(), and TRUE.

Referenced by parseTable(), and setRichTextInternal().

QChar QTextDocument::parseHTMLSpecialChar const QChar doc,
int  length,
int &  pos
[private]
 

Definition at line 6727 of file qrichtext.cpp.

References end, htmlMap(), isSpace(), QCString::length(), QCString::mid(), and s.

Referenced by parseChar(), and parseWord().

QString QTextDocument::parseOpenTag const QChar doc,
int  length,
int &  pos,
QMap< QString, QString > &  attr,
bool &  emptyTag
[private]
 

Definition at line 6822 of file qrichtext.cpp.

References eat(), eatSpace(), FALSE, QString::fromLatin1(), hasPrefix(), QMap< Key, T >::insert(), QString::isEmpty(), QString::lower(), QString::null, parseWord(), and TRUE.

Referenced by parseTable(), and setRichTextInternal().

QTextCustomItem * QTextDocument::parseTable const QMap< QString, QString > &  attr,
const QTextFormat fmt,
const QChar doc,
int  length,
int &  pos,
QTextParagraph curpar
[private]
 

Definition at line 6321 of file qrichtext.cpp.

References QPtrList< type >::append(), col, Qt3::QTextTableCell::colspan(), QMap< Key, T >::contains(), contxt, eatSpace(), end, factory_, FALSE, hasPrefix(), QString::isEmpty(), Qt3::QStyleSheet::item(), Qt3::QTextFormat::makeTextFormat(), parseCloseTag(), parseOpenTag(), qt_is_cell_in_use(), QTextTableCell, Qt3::QTextTableCell::richText(), row, Qt3::QTextTableCell::rowspan(), s, scaleFontsFactor, and sheet_.

Referenced by setRichTextInternal().

QString QTextDocument::parseWord const QChar doc,
int  length,
int &  pos,
bool  lower = TRUE
[private]
 

Definition at line 6758 of file qrichtext.cpp.

References eat(), QString::fromLatin1(), hasPrefix(), QChar::isSpace(), QString::lower(), parseHTMLSpecialChar(), and s.

Referenced by parseCloseTag(), and parseOpenTag().

QString QTextDocument::plainText  )  const
 

Definition at line 2046 of file qrichtext.cpp.

References Qt3::QTextParagraph::at(), QPtrList< type >::first(), fParag, i, QString::length(), length(), Qt3::QTextParagraph::mightHaveCustomItems, Qt3::QTextParagraph::next(), QPtrList< type >::next(), p, QString::remove(), s, Qt3::QTextParagraph::string(), t, and Qt3::QTextTable::tableCells().

Referenced by text().

QTextPreProcessor * Qt3::QTextDocument::preProcessor  )  const [inline]
 

Definition at line 1646 of file qrichtext_p.h.

References QTextDocument::pProcessor.

Referenced by Qt3::QTextEdit::insert().

QTextCursor * QTextDocument::redo QTextCursor c = 0  ) 
 

Definition at line 2765 of file qrichtext.cpp.

References commandHistory, and Qt3::QTextCommandHistory::redo().

Referenced by Qt3::QTextEdit::redo().

void QTextDocument::registerCustomItem QTextCustomItem i,
QTextParagraph p
 

Definition at line 3118 of file qrichtext.cpp.

References flow_, mightHaveCustomItems, Qt3::QTextParagraph::mightHaveCustomItems, Qt3::QTextCustomItem::PlaceInline, Qt3::QTextParagraph::registerFloatingItem(), Qt3::QTextFlow::registerFloatingItem(), and TRUE.

Referenced by setRichTextInternal().

void Qt3::QTextDocument::removeChild QTextDocument d  )  [inline]
 

Definition at line 843 of file qrichtext_p.h.

void Qt3::QTextDocument::removeChild QObject *  o  )  [inline]
 

Definition at line 841 of file qrichtext_p.h.

Referenced by ~QTextDocument().

void QTextDocument::removeSelectedText int  id,
QTextCursor cursor
 

Definition at line 2669 of file qrichtext.cpp.

References QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, FALSE, QMap< Key, T >::find(), fParag, Qt3::QTextCursor::gotoNextLetter(), Qt3::QTextCursor::gotoPreviousLetter(), Qt3::QTextCursor::index(), Qt3::QTextParagraph::invalidate(), Qt3::QTextCursor::isValid(), Qt3::QTextParagraph::length(), lParag, Qt3::QTextParagraph::move(), Qt3::QTextCursor::nestedDepth(), Qt3::QTextParagraph::next(), p, Qt3::QTextCursor::paragraph(), Qt3::QTextParagraph::rect(), removeSelection(), Qt3::QTextCursor::restoreState(), selections, Qt3::QTextParagraph::setEndState(), Qt3::QTextCursor::setValid(), Qt3::QTextDocumentSelection::startCursor, Qt3::QTextDocumentSelection::swapped, and TRUE.

Referenced by Qt3::QTextEdit::removeSelectedText().

bool QTextDocument::removeSelection int  id  ) 
 

Definition at line 2489 of file qrichtext.cpp.

References QMap< Key, T >::contains(), end, Qt3::QTextDocumentSelection::endCursor, FALSE, Qt3::QTextCursor::gotoNextLetter(), p, Qt3::QTextCursor::paragraph(), QMap< Key, T >::remove(), Qt3::QTextParagraph::removeSelection(), selections, start, Qt3::QTextDocumentSelection::startCursor, Qt3::QTextDocumentSelection::swapped, and TRUE.

Referenced by Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextEdit::contentsMousePressEvent(), Qt3::QTextEdit::contentsMouseReleaseEvent(), find(), Qt3::QTextEdit::insert(), Qt3::QTextEdit::keyPressEvent(), Qt3::QTextEdit::moveCursor(), Qt3::QTextEdit::redo(), Qt3::QTextEdit::removeParagraph(), Qt3::QTextEdit::removeSelectedText(), removeSelectedText(), Qt3::QTextEdit::removeSelection(), Qt3::QTextEdit::selectAll(), selectAll(), Qt3::QTextEdit::setSelection(), setSelectionEnd(), and Qt3::QTextEdit::undo().

QString QTextDocument::richText  )  const
 

Definition at line 2144 of file qrichtext.cpp.

References align_to_string(), Qt3::QTextParagraph::alignment(), Qt3::QTextParagraph::direction(), direction_to_string(), formatCollection(), fParag, i, Qt3::QTextCursor::index(), Qt3::QTextParagraph::isListItem(), list_is_ordered(), list_style_to_string(), list_value_to_string(), Qt3::QTextParagraph::listDepth(), Qt3::QStyleSheetItem::listStyle(), Qt3::QTextParagraph::listStyle(), Qt3::QTextParagraph::listValue(), margin_to_string(), Qt3::QTextParagraph::next(), QString::null, QString::number(), oendl, owarn, p, par, Qt3::QTextCursor::paragraph(), QMemArray< type >::resize(), Qt3::QTextParagraph::richText(), s, QMemArray< type >::size(), styleSheet(), Qt3::QTextParagraph::ubm, Qt3::QTextParagraph::uflm, Qt3::QTextParagraph::ulm, Qt3::QTextParagraph::urm, and Qt3::QTextParagraph::utm.

Referenced by selectedText(), and text().

int Qt3::QTextDocument::rightMargin  )  const [inline]
 

Definition at line 1636 of file qrichtext_p.h.

References QTextDocument::rightmargin.

Referenced by Qt3::QTextFormatterBreakWords::format(), and Qt3::QTextFormatterBreakInWords::format().

QString QTextDocument::section QString  str,
const QString sep,
int  start,
int  end = 0xffffffff
[static]
 

Definition at line 7701 of file qrichtext.cpp.

References begin, FALSE, QString::length(), match(), TRUE, and QString::unicode().

Referenced by Qt3::QTextFormat::makeTextFormat(), and setRichTextInternal().

void QTextDocument::selectAll int  id  ) 
 

Definition at line 2461 of file qrichtext.cpp.

References childList, d, Qt3::QTextDocumentSelection::endCursor, FALSE, QPtrList< type >::first(), fParag, QMap< Key, T >::insert(), lParag, QPtrList< type >::next(), p, removeSelection(), selections, Qt3::QTextCursor::setIndex(), Qt3::QTextCursor::setParagraph(), Qt3::QTextDocumentSelection::startCursor, and Qt3::QTextDocumentSelection::swapped.

Referenced by Qt3::QTextEdit::selectAll().

QString QTextDocument::selectedText int  id,
bool  asRichText = FALSE
const
 

Definition at line 2510 of file qrichtext.cpp.

References QString::at(), Qt3::QTextParagraph::at(), end, QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, QString::find(), QMap< Key, T >::find(), QString::findRev(), QPtrList< type >::first(), i, Qt3::QTextCursor::index(), QString::length(), QString::mid(), Qt3::QTextParagraph::mightHaveCustomItems, Qt3::QTextCursor::nestedDepth(), QPtrList< type >::next(), QString::null, Qt3::QTextCursor::oneUp(), p, Qt3::QTextCursor::paragraph(), parent(), QChar_linesep, richText(), s, selections, start, Qt3::QTextDocumentSelection::startCursor, Qt3::QTextParagraph::string(), Qt3::QTextDocumentSelection::swapped, t, Qt3::QTextTable::tableCells(), and QString::unicode().

Referenced by Qt3::QTextEdit::copy(), Qt3::QTextEdit::cut(), and Qt3::QTextEdit::startDrag().

QColor Qt3::QTextDocument::selectionColor int  id  )  const [inline]
 

Definition at line 1677 of file qrichtext_p.h.

References QTextDocument::selectionColors.

void QTextDocument::selectionEnd int  id,
int &  paragId,
int &  index
 

Definition at line 2296 of file qrichtext.cpp.

References QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, QMap< Key, T >::find(), Qt3::QTextCursor::index(), Qt3::QTextCursor::paragraph(), selections, Qt3::QTextDocumentSelection::startCursor, and Qt3::QTextDocumentSelection::swapped.

Referenced by Qt3::QTextEdit::getSelection().

QTextCursor QTextDocument::selectionEndCursor int  id  ) 
 

Definition at line 2285 of file qrichtext.cpp.

References QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, QMap< Key, T >::find(), QTextCursor, selections, Qt3::QTextDocumentSelection::startCursor, and Qt3::QTextDocumentSelection::swapped.

Referenced by Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextEdit::removeSelectedText(), Qt3::QTextEdit::setAlignment(), Qt3::QTextEdit::setFormat(), and Qt3::QTextEdit::setParagType().

void QTextDocument::selectionStart int  id,
int &  paragId,
int &  index
 

Definition at line 2264 of file qrichtext.cpp.

References QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, QMap< Key, T >::find(), Qt3::QTextCursor::index(), Qt3::QTextCursor::paragraph(), selections, Qt3::QTextDocumentSelection::startCursor, and Qt3::QTextDocumentSelection::swapped.

Referenced by Qt3::QTextEdit::getSelection(), and Qt3::QTextEdit::removeSelectedText().

QTextCursor QTextDocument::selectionStartCursor int  id  ) 
 

Definition at line 2274 of file qrichtext.cpp.

References QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, QMap< Key, T >::find(), QTextCursor, selections, Qt3::QTextDocumentSelection::startCursor, and Qt3::QTextDocumentSelection::swapped.

Referenced by Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextEdit::removeSelectedText(), Qt3::QTextEdit::setAlignment(), Qt3::QTextEdit::setFormat(), and Qt3::QTextEdit::setParagType().

void Qt3::QTextDocument::setAlignment int  a  )  [inline]
 

Definition at line 1707 of file qrichtext_p.h.

References QTextDocument::align.

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

void Qt3::QTextDocument::setAttributes const QMap< QString, QString > &  attr  )  [inline]
 

Definition at line 704 of file qrichtext_p.h.

void Qt3::QTextDocument::setContext const QString c  )  [inline]
 

Definition at line 786 of file qrichtext_p.h.

Referenced by setRichText().

void QTextDocument::setDefaultFormat const QFont &  font,
const QColor &  color
 

Definition at line 3096 of file qrichtext.cpp.

References Qt3::QTextParagraph::at(), childList, d, Qt3::QTextFormatCollection::defaultFormat(), fCollection, QPtrList< type >::first(), formatCollection(), fParag, i, Qt3::QTextParagraph::invalidate(), length(), Qt3::QTextParagraph::next(), QPtrList< type >::next(), p, sheet_, tStopWidth, and Qt3::QTextFormatCollection::updateDefaultFormat().

Referenced by draw(), and Qt3::QTextTableCell::QTextTableCell().

void Qt3::QTextDocument::setFirstParagraph QTextParagraph p  )  [inline]
 

Definition at line 1599 of file qrichtext_p.h.

References QTextDocument::fParag.

Referenced by Qt3::QTextEdit::removeParagraph().

void Qt3::QTextDocument::setFlow QTextFlow f  )  [inline]
 

Definition at line 1739 of file qrichtext_p.h.

References QTextDocument::flow_.

void QTextDocument::setFormat int  id,
QTextFormat f,
int  flags
 

Definition at line 2637 of file qrichtext.cpp.

References QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, QMap< Key, T >::find(), Qt3::QTextCursor::index(), Qt3::QTextParagraph::length(), Qt3::QTextParagraph::next(), p, Qt3::QTextCursor::paragraph(), Qt3::QTextCursor::restoreState(), selections, Qt3::QTextParagraph::setFormat(), Qt3::QTextDocumentSelection::startCursor, Qt3::QTextDocumentSelection::swapped, and TRUE.

Referenced by Qt3::QTextEdit::insert(), and Qt3::QTextEdit::setFormat().

void Qt3::QTextDocument::setFormatter QTextFormatter f  )  [inline]
 

Definition at line 1656 of file qrichtext_p.h.

References QTextDocument::pFormatter.

Referenced by Qt3::QTextEdit::init(), and Qt3::QTextTableCell::QTextTableCell().

void Qt3::QTextDocument::setIndent QTextIndent i  )  [inline]
 

Definition at line 1667 of file qrichtext_p.h.

void Qt3::QTextDocument::setInvertSelectionText int  id,
bool  b
[inline]
 

Definition at line 1692 of file qrichtext_p.h.

References QTextDocument::selectionText.

void Qt3::QTextDocument::setLastParagraph QTextParagraph p  )  [inline]
 

Definition at line 1604 of file qrichtext_p.h.

References QTextDocument::lParag.

Referenced by Qt3::QTextEdit::removeParagraph().

void Qt3::QTextDocument::setLeftMargin int  lm  )  [inline]
 

Definition at line 1631 of file qrichtext_p.h.

References QTextDocument::leftmargin.

void Qt3::QTextDocument::setMimeSourceFactory QMimeSourceFactory *  f  )  [inline]
 

Definition at line 785 of file qrichtext_p.h.

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

bool QTextDocument::setMinimumWidth int  needed,
int  used = -1,
QTextParagraph parag = 0
 

Definition at line 1289 of file qrichtext.cpp.

References cw, minimumWidthChanged(), minw, minwParag, TRUE, and wused.

Referenced by Qt3::QTextEdit::doResize(), and Qt3::QTextEdit::setText().

void Qt3::QTextDocument::setPageBreakEnabled bool  b  )  [inline]
 

Definition at line 810 of file qrichtext_p.h.

void Qt3::QTextDocument::setPaper QBrush *  brush  )  [inline]
 

Definition at line 791 of file qrichtext_p.h.

Referenced by setRichTextInternal().

void QTextDocument::setPlainText const QString text  ) 
 

Definition at line 1310 of file qrichtext.cpp.

References Qt3::QTextParagraph::append(), clear(), createParagraph(), FALSE, QString::find(), fParag, QString::isEmpty(), QString::length(), lParag, QString::mid(), oText, oTextValid, preferRichText, QString::remove(), s, and TRUE.

Referenced by setText().

void Qt3::QTextDocument::setPreProcessor QTextPreProcessor sh  )  [inline]
 

Definition at line 1651 of file qrichtext_p.h.

References QTextDocument::pProcessor.

void QTextDocument::setRichText const QString text,
const QString context
 

Definition at line 1414 of file qrichtext.cpp.

References clear(), createParagraph(), fParag, QString::isEmpty(), lParag, oText, oTextValid, Qt3::QTextParagraph::rtext, setContext(), setRichTextInternal(), and TRUE.

Referenced by Qt3::QTextTableCell::QTextTableCell(), and setText().

void QTextDocument::setRichTextInternal const QString text,
QTextCursor cursor = 0
[private]
 

Definition at line 1426 of file qrichtext.cpp.

References align, Qt::AlignCenter, Qt3::AlignJustify, QTextDocumentTag::alignment, Qt::AlignRight, Qt3::QTextStringChar::anchorHref(), QTextDocumentTag::anchorHref, Qt3::QTextParagraph::append(), QString::ascii(), Qt3::QTextParagraph::at(), attribs, QString::contains(), QMap< Key, T >::contains(), contxt, QDictIterator< type >::current(), QTextDocumentTag::direction, QChar::DirL, QChar::DirR, Qt3::QStyleSheetItem::DisplayBlock, Qt3::QStyleSheetItem::DisplayInline, Qt3::QStyleSheetItem::DisplayListItem, Qt3::QStyleSheetItem::displayMode(), Qt3::QStyleSheetItem::DisplayNone, eatSpace(), endsWith(), Qt3::QStyleSheet::error(), f, factory_, FALSE, QString::find(), QTextDocumentTag::format, format(), formatCollection(), fParag, Qt3::QTextCursor::gotoPreviousLetter(), hasPrefix(), i, QValueList< T >::isEmpty(), QString::isEmpty(), QChar::isSpace(), Qt3::QStyleSheet::item(), l, QString::latin1(), Qt3::QTextParagraph::length(), QString::length(), length(), linkColor, Qt3::QStyleSheetItem::ListCircle, Qt3::QStyleSheetItem::ListDecimal, Qt3::QStyleSheetItem::ListDisc, Qt3::QStyleSheetItem::ListLowerAlpha, Qt3::QStyleSheetItem::ListSquare, QTextDocumentTag::liststyle, Qt3::QStyleSheetItem::ListUpperAlpha, QString::lower(), lParag, Qt3::QTextFormat::makeTextFormat(), QString::mid(), Qt3::QTextParagraph::n, QTextDocumentTag::name, Qt3::QStyleSheetItem::name(), QChar::nbsp, NEWPAR, QString::null, oendl, owarn, Qt3::QTextParagraph::p, Qt3::QTextCursor::paragraph(), parseChar(), parseCloseTag(), parseOpenTag(), parseTable(), QValueStack< T >::pop(), pos, QValueStack< T >::push(), QChar_linesep, Qt3::QTextFormat::ref, registerCustomItem(), QMap< Key, T >::replace(), Qt3::QTextParagraph::rtext, s, scaleFontsFactor, section(), Qt3::QTextParagraph::setAlignment(), Qt3::QTextStringChar::setAnchor(), QPtrCollection::setAutoDelete(), Qt3::QTextFormat::setColor(), Qt3::QTextParagraph::setFormat(), Qt3::QTextParagraph::setListValue(), setPaper(), setRichTextMarginsInternal(), sheet_, QString::sprintf(), QString::startsWith(), QTextDocumentTag::style, Qt3::QStyleSheet::tag(), title, QString::toInt(), QValueStack< T >::top(), TRUE, type, Qt3::QTextParagraph::ubm, Qt3::QTextParagraph::uflm, Qt3::QTextParagraph::ulm, Qt3::QStyleSheetItem::Undefined, QChar::unicode(), QString::unicode(), Qt3::QTextParagraph::urm, Qt3::QTextParagraph::utm, Qt3::QStyleSheetItem::WhiteSpaceNormal, Qt3::QStyleSheetItem::WhiteSpacePre, and QTextDocumentTag::wsm.

Referenced by setRichText().

void QTextDocument::setRichTextMarginsInternal QPtrList< QPtrVector< QStyleSheetItem > > &  styles,
QTextParagraph stylesPar
[private]
 

Definition at line 1882 of file qrichtext.cpp.

References Qt3::QTextParagraph::bottomMargin(), Qt3::QStyleSheetItem::DisplayBlock, Qt3::QStyleSheetItem::DisplayListItem, Qt3::QStyleSheetItem::displayMode(), Qt3::QTextParagraph::firstLineMargin(), formatCollection(), height(), i, Qt3::QTextParagraph::ldepth, Qt3::QTextParagraph::leftMargin(), Qt3::QStyleSheetItem::lineSpacing(), Qt3::QStyleSheetItem::listStyle(), Qt3::QStyleSheetItem::margin(), Qt3::QStyleSheetItem::MarginBottom, Qt3::QStyleSheetItem::MarginFirstLine, Qt3::QStyleSheetItem::MarginLeft, Qt3::QStyleSheetItem::MarginRight, Qt3::QStyleSheetItem::MarginTop, Qt3::QTextParagraph::next(), Qt3::QTextParagraph::rightMargin(), Qt3::QTextParagraph::setListItem(), size, QPtrVector< type >::size(), Qt3::QTextParagraph::topMargin(), TRUE, Qt3::QTextParagraph::ubm, Qt3::QTextParagraph::uflm, Qt3::QTextParagraph::ulinespacing, Qt3::QTextParagraph::ulm, Qt3::QStyleSheetItem::Undefined, Qt3::QTextParagraph::urm, and Qt3::QTextParagraph::utm.

Referenced by setRichTextInternal().

void Qt3::QTextDocument::setRightMargin int  rm  )  [inline]
 

Definition at line 1641 of file qrichtext_p.h.

References QTextDocument::rightmargin.

void Qt3::QTextDocument::setSelectionColor int  id,
const QColor &  c
[inline]
 

Definition at line 1687 of file qrichtext_p.h.

References QTextDocument::selectionColors.

bool QTextDocument::setSelectionEnd int  id,
const QTextCursor cursor
 

Definition at line 2335 of file qrichtext.cpp.

References Qt3::QTextCursor::atParagEnd(), Qt3::QTextParagraph::document(), end, QMap< Key, T >::end(), Qt3::QTextDocumentSelection::endCursor, FALSE, QMap< Key, T >::find(), Qt3::QTextCursor::gotoNextLetter(), Qt3::QTextCursor::index(), inSelection(), lastParagraph(), Qt3::QTextParagraph::mightHaveCustomItems, Qt3::QTextParagraph::next(), p, Qt3::QTextCursor::paragraph(), removeSelection(), Qt3::QTextCursor::restoreState(), selections, Qt3::QTextCursor::setParagraph(), setSelectionEndHelper(), setSelectionStart(), start, Qt3::QTextDocumentSelection::startCursor, Qt3::QTextDocumentSelection::swapped, and TRUE.

Referenced by Qt3::QTextEdit::contentsMouseDoubleClickEvent(), Qt3::QTextEdit::contentsMousePressEvent(), Qt3::QTextEdit::doKeyboardAction(), find(), Qt3::QTextEdit::handleMouseMove(), Qt3::QTextEdit::insert(), Qt3::QTextEdit::moveCursor(), and Qt3::QTextEdit::setSelection().

void QTextDocument::setSelectionStart int  id,
const QTextCursor cursor
 

Definition at line 160 of file qrichtext_p.cpp.

References Qt3::QTextDocumentSelection::endCursor, FALSE, selections, Qt3::QTextDocumentSelection::startCursor, and Qt3::QTextDocumentSelection::swapped.

Referenced by Qt3::QTextEdit::contentsMouseDoubleClickEvent(), Qt3::QTextEdit::contentsMousePressEvent(), Qt3::QTextEdit::doKeyboardAction(), find(), Qt3::QTextEdit::insert(), Qt3::QTextEdit::moveCursor(), Qt3::QTextEdit::setSelection(), and setSelectionEnd().

void QTextDocument::setStyleSheet QStyleSheet s  ) 
 

Definition at line 3567 of file qrichtext.cpp.

References li_bm, li_tm, list_bm, list_lm, list_tm, Qt3::QStyleSheetItem::MarginBottom, Qt3::QStyleSheetItem::MarginLeft, Qt3::QStyleSheetItem::MarginTop, par_bm, par_tm, and sheet_.

Referenced by init(), and Qt3::QTextTableCell::QTextTableCell().

void Qt3::QTextDocument::setTabArray int *  a  )  [inline]
 

Definition at line 1722 of file qrichtext_p.h.

References QTextDocument::tArray.

void Qt3::QTextDocument::setTableCell QTextTableCell c  )  [inline]
 

Definition at line 816 of file qrichtext_p.h.

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

void Qt3::QTextDocument::setTabStops int  tw  )  [inline]
 

Definition at line 1727 of file qrichtext_p.h.

References QTextDocument::tStopWidth.

void QTextDocument::setText const QString text,
const QString context
 

Definition at line 2035 of file qrichtext.cpp.

References Qt::AutoText, QMap< Key, T >::clear(), focusIndicator, Qt3::QStyleSheet::mightBeRichText(), Qt3::QTextDocument::Focus::parag, Qt::RichText, selections, setPlainText(), setRichText(), and txtFormat.

Referenced by Qt3::QTextEdit::setText().

void QTextDocument::setTextFormat Qt::TextFormat  f  ) 
 

Definition at line 2828 of file qrichtext.cpp.

References fParag, Qt3::QTextParagraph::length(), lParag, Qt::RichText, Qt3::QTextParagraph::rtext, and txtFormat.

Referenced by Qt3::QTextEdit::setTextFormat().

void QTextDocument::setUnderlineLinks bool  b  ) 
 

Definition at line 3591 of file qrichtext.cpp.

References childList, d, QPtrList< type >::first(), QPtrList< type >::next(), and underlLinks.

void Qt3::QTextDocument::setUndoDepth int  d  )  [inline]
 

Definition at line 833 of file qrichtext_p.h.

void Qt3::QTextDocument::setUseFormatCollection bool  b  )  [inline]
 

Definition at line 812 of file qrichtext_p.h.

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

void Qt3::QTextDocument::setWidth int  w  )  [inline]
 

Definition at line 1609 of file qrichtext_p.h.

References QTextDocument::cw, QTextDocument::flow_, QTextDocument::minw, Qt3::QTextFlow::setWidth(), and QTextDocument::vw.

Referenced by Qt3::QTextEdit::doResize(), and Qt3::QTextEdit::setText().

void Qt3::QTextDocument::setY int  y  )  [inline]
 

Definition at line 1621 of file qrichtext_p.h.

References QTextDocument::cy.

QStyleSheet* Qt3::QTextDocument::styleSheet  )  const [inline]
 

Definition at line 779 of file qrichtext_p.h.

Referenced by richText().

int * Qt3::QTextDocument::tabArray  )  const [inline]
 

Definition at line 1712 of file qrichtext_p.h.

References QTextDocument::tArray.

QTextTableCell* Qt3::QTextDocument::tableCell  )  const [inline]
 

Definition at line 815 of file qrichtext_p.h.

int Qt3::QTextDocument::tabStopWidth  )  const [inline]
 

Definition at line 1717 of file qrichtext_p.h.

References QTextDocument::tStopWidth.

void Qt3::QTextDocument::takeFlow  )  [inline]
 

Definition at line 1746 of file qrichtext_p.h.

References QTextDocument::flow_.

QString QTextDocument::text int  parag  )  const
 

Definition at line 2243 of file qrichtext.cpp.

References Qt::AutoText, QString::null, p, paragAt(), preferRichText, Qt3::QTextParagraph::richText(), Qt::RichText, Qt3::QTextParagraph::string(), and txtFormat.

QString QTextDocument::text  )  const
 

Definition at line 2236 of file qrichtext.cpp.

References Qt::AutoText, plainText(), preferRichText, richText(), Qt::RichText, and txtFormat.

Referenced by Qt3::QTextEdit::text().

Qt::TextFormat QTextDocument::textFormat  )  const
 

Definition at line 2835 of file qrichtext.cpp.

References txtFormat.

bool Qt3::QTextDocument::underlineLinks  )  const [inline]
 

Definition at line 789 of file qrichtext_p.h.

QTextCursor * QTextDocument::undo QTextCursor c = 0  ) 
 

Definition at line 2760 of file qrichtext.cpp.

References commandHistory, and Qt3::QTextCommandHistory::undo().

Referenced by Qt3::QTextEdit::undo().

int Qt3::QTextDocument::undoDepth  )  const [inline]
 

Definition at line 834 of file qrichtext_p.h.

void QTextDocument::unregisterCustomItem QTextCustomItem i,
QTextParagraph p
 

Definition at line 3128 of file qrichtext.cpp.

References flow_, Qt3::QTextParagraph::unregisterFloatingItem(), and Qt3::QTextFlow::unregisterFloatingItem().

bool Qt3::QTextDocument::useFormatCollection  )  const [inline]
 

Definition at line 813 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::insert(), and Qt3::QTextEdit::updateCurrentFormat().

int Qt3::QTextDocument::visibleWidth  )  const [inline]
 

Definition at line 1584 of file qrichtext_p.h.

References QTextDocument::vw.

Referenced by Qt3::QTextEdit::resizeEvent().

int Qt3::QTextDocument::width  )  const [inline]
 

Definition at line 1579 of file qrichtext_p.h.

References QTextDocument::cw, QTextDocument::flow_, and Qt3::QTextFlow::width().

Referenced by draw(), and Qt3::QTextEdit::paintDocument().

int QTextDocument::widthUsed  )  const
 

Definition at line 1268 of file qrichtext.cpp.

References border_tolerance, and wused.

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

int Qt3::QTextDocument::x  )  const [inline]
 

Definition at line 1569 of file qrichtext_p.h.

References QTextDocument::cx.

Referenced by Qt3::QTextTable::down(), Qt3::QTextTable::enterAt(), Qt3::QTextTable::next(), Qt3::QTextTable::prev(), and Qt3::QTextTable::up().

int Qt3::QTextDocument::y  )  const [inline]
 

Definition at line 1574 of file qrichtext_p.h.

References QTextDocument::cy.

Referenced by draw(), inSelection(), and Qt3::QTextEdit::paintDocument().


Friends And Related Function Documentation

friend class QTextCursor [friend]
 

Definition at line 684 of file qrichtext_p.h.

Referenced by selectionEndCursor(), and selectionStartCursor().

friend class QTextEdit [friend]
 

Definition at line 685 of file qrichtext_p.h.

friend class QTextParagraph [friend]
 

Definition at line 686 of file qrichtext_p.h.

Referenced by createParagraph().

friend class QTextTableCell [friend]
 

Definition at line 681 of file qrichtext_p.h.

Referenced by parseTable().


Member Data Documentation

int Qt3::QTextDocument::align [private]
 

Definition at line 901 of file qrichtext_p.h.

Referenced by init(), and setRichTextInternal().

QMap<QString, QString> Qt3::QTextDocument::attribs [private]
 

Definition at line 918 of file qrichtext_p.h.

Referenced by setRichTextInternal().

QBrush* Qt3::QTextDocument::backBrush [private]
 

Definition at line 907 of file qrichtext_p.h.

Referenced by init(), and ~QTextDocument().

QPixmap* Qt3::QTextDocument::buf_pixmap [private]
 

Definition at line 908 of file qrichtext_p.h.

Referenced by bufferPixmap(), draw(), init(), and ~QTextDocument().

QPtrList<QTextDocument> Qt3::QTextDocument::childList [private]
 

Definition at line 923 of file qrichtext_p.h.

Referenced by selectAll(), setDefaultFormat(), and setUnderlineLinks().

QTextCommandHistory* Qt3::QTextDocument::commandHistory [private]
 

Definition at line 888 of file qrichtext_p.h.

Referenced by addCommand(), init(), redo(), undo(), and ~QTextDocument().

QString Qt3::QTextDocument::contxt [private]
 

Definition at line 917 of file qrichtext_p.h.

Referenced by init(), parseTable(), and setRichTextInternal().

QTextParagraph * Qt3::QTextDocument::curParag [private]
 

Definition at line 914 of file qrichtext_p.h.

Referenced by init(), paragAt(), and Qt3::QTextParagraph::~QTextParagraph().

int Qt3::QTextDocument::cw [private]
 

Definition at line 882 of file qrichtext_p.h.

Referenced by doLayout(), init(), and setMinimumWidth().

int Qt3::QTextDocument::cx [private]
 

Definition at line 882 of file qrichtext_p.h.

Referenced by init().

int Qt3::QTextDocument::cy [private]
 

Definition at line 882 of file qrichtext_p.h.

Referenced by init().

QMimeSourceFactory* Qt3::QTextDocument::factory_ [private]
 

Definition at line 916 of file qrichtext_p.h.

Referenced by init(), parseTable(), and setRichTextInternal().

QTextFormatCollection* Qt3::QTextDocument::fCollection [private]
 

Definition at line 891 of file qrichtext_p.h.

Referenced by QTextDocument(), setDefaultFormat(), and ~QTextDocument().

QTextFlow* Qt3::QTextDocument::flow_ [private]
 

Definition at line 903 of file qrichtext_p.h.

Referenced by clear(), doLayout(), height(), init(), registerCustomItem(), unregisterCustomItem(), and ~QTextDocument().

Focus Qt3::QTextDocument::focusIndicator [private]
 

Definition at line 909 of file qrichtext_p.h.

Referenced by focusHref(), Qt3::QTextEdit::focusNextPrevChild(), focusNextPrevChild(), hasFocusParagraph(), init(), and setText().

QTextParagraph* Qt3::QTextDocument::fParag [private]
 

Definition at line 883 of file qrichtext_p.h.

Referenced by clear(), doLayout(), focusNextPrevChild(), init(), invalidate(), length(), paragAt(), plainText(), removeSelectedText(), richText(), selectAll(), setDefaultFormat(), setPlainText(), setRichText(), setRichTextInternal(), and setTextFormat().

QTextIndent* Qt3::QTextDocument::indenter [private]
 

Definition at line 890 of file qrichtext_p.h.

int Qt3::QTextDocument::leftmargin [private]
 

Definition at line 912 of file qrichtext_p.h.

Referenced by init().

short Qt3::QTextDocument::li_bm [private]
 

Definition at line 927 of file qrichtext_p.h.

Referenced by setStyleSheet().

short Qt3::QTextDocument::li_tm [private]
 

Definition at line 927 of file qrichtext_p.h.

Referenced by setStyleSheet().

QColor Qt3::QTextDocument::linkColor [private]
 

Definition at line 924 of file qrichtext_p.h.

Referenced by setRichTextInternal().

short Qt3::QTextDocument::list_bm [private]
 

Definition at line 927 of file qrichtext_p.h.

Referenced by setStyleSheet().

short Qt3::QTextDocument::list_lm [private]
 

Definition at line 927 of file qrichtext_p.h.

Referenced by setStyleSheet().

short Qt3::QTextDocument::list_tm [private]
 

Definition at line 927 of file qrichtext_p.h.

Referenced by setStyleSheet().

QTextParagraph * Qt3::QTextDocument::lParag [private]
 

Definition at line 883 of file qrichtext_p.h.

Referenced by clear(), focusNextPrevChild(), height(), init(), removeSelectedText(), selectAll(), setPlainText(), setRichText(), setRichTextInternal(), and setTextFormat().

uint Qt3::QTextDocument::mightHaveCustomItems [private]
 

Definition at line 900 of file qrichtext_p.h.

Referenced by init(), and registerCustomItem().

int Qt3::QTextDocument::minw [private]
 

Definition at line 910 of file qrichtext_p.h.

Referenced by doLayout(), init(), setMinimumWidth(), and Qt3::QTextParagraph::~QTextParagraph().

QTextParagraph* Qt3::QTextDocument::minwParag [private]
 

Definition at line 914 of file qrichtext_p.h.

Referenced by init(), setMinimumWidth(), and Qt3::QTextParagraph::~QTextParagraph().

uint Qt3::QTextDocument::nextDoubleBuffered [private]
 

Definition at line 898 of file qrichtext_p.h.

Referenced by init().

int Qt3::QTextDocument::nSelections [private]
 

Definition at line 902 of file qrichtext_p.h.

Referenced by addSelection(), and init().

QString Qt3::QTextDocument::oText [private]
 

Definition at line 922 of file qrichtext_p.h.

Referenced by clear(), setPlainText(), and setRichText().

uint Qt3::QTextDocument::oTextValid [private]
 

Definition at line 899 of file qrichtext_p.h.

Referenced by clear(), init(), Qt3::QTextEdit::setModified(), setPlainText(), and setRichText().

uint Qt3::QTextDocument::pages [private]
 

Definition at line 894 of file qrichtext_p.h.

Referenced by init().

QTextDocument* Qt3::QTextDocument::par [private]
 

Definition at line 904 of file qrichtext_p.h.

Referenced by draw(), init(), richText(), and ~QTextDocument().

short Qt3::QTextDocument::par_bm [private]
 

Definition at line 927 of file qrichtext_p.h.

Referenced by setStyleSheet().

short Qt3::QTextDocument::par_tm [private]
 

Definition at line 927 of file qrichtext_p.h.

Referenced by setStyleSheet().

QTextParagraph* Qt3::QTextDocument::parentPar [private]
 

Definition at line 905 of file qrichtext_p.h.

QTextFormatter* Qt3::QTextDocument::pFormatter [private]
 

Definition at line 889 of file qrichtext_p.h.

Referenced by init(), and ~QTextDocument().

QTextPreProcessor* Qt3::QTextDocument::pProcessor [private]
 

Definition at line 884 of file qrichtext_p.h.

Referenced by init(), and ~QTextDocument().

uint Qt3::QTextDocument::preferRichText [private]
 

Definition at line 893 of file qrichtext_p.h.

Referenced by init(), setPlainText(), and text().

int Qt3::QTextDocument::rightmargin [private]
 

Definition at line 913 of file qrichtext_p.h.

Referenced by init().

double Qt3::QTextDocument::scaleFontsFactor [private]
 

Definition at line 925 of file qrichtext_p.h.

Referenced by init(), parseTable(), and setRichTextInternal().

QMap<int, QColor> Qt3::QTextDocument::selectionColors [private]
 

Definition at line 885 of file qrichtext_p.h.

Referenced by init().

QMap<int, QTextDocumentSelection> Qt3::QTextDocument::selections [private]
 

Definition at line 886 of file qrichtext_p.h.

Referenced by clear(), hasSelection(), indentSelection(), inSelection(), removeSelectedText(), removeSelection(), selectAll(), selectedText(), selectionEnd(), selectionEndCursor(), selectionStart(), selectionStartCursor(), setFormat(), setSelectionEnd(), setSelectionStart(), and setText().

QMap<int, bool> Qt3::QTextDocument::selectionText [private]
 

Definition at line 887 of file qrichtext_p.h.

Referenced by init().

QStyleSheet* Qt3::QTextDocument::sheet_ [private]
 

Definition at line 915 of file qrichtext_p.h.

Referenced by parseTable(), setDefaultFormat(), setRichTextInternal(), and setStyleSheet().

int* Qt3::QTextDocument::tArray [private]
 

Definition at line 919 of file qrichtext_p.h.

Referenced by ~QTextDocument().

QTextTableCell* Qt3::QTextDocument::tc [private]
 

Definition at line 906 of file qrichtext_p.h.

int Qt3::QTextDocument::tStopWidth [private]
 

Definition at line 920 of file qrichtext_p.h.

Referenced by init(), and setDefaultFormat().

Qt::TextFormat Qt3::QTextDocument::txtFormat [private]
 

Definition at line 892 of file qrichtext_p.h.

Referenced by init(), setText(), setTextFormat(), text(), and textFormat().

int Qt3::QTextDocument::uDepth [private]
 

Definition at line 921 of file qrichtext_p.h.

uint Qt3::QTextDocument::underlLinks [private]
 

Definition at line 897 of file qrichtext_p.h.

Referenced by init(), and setUnderlineLinks().

uint Qt3::QTextDocument::useFC [private]
 

Definition at line 895 of file qrichtext_p.h.

Referenced by init().

int Qt3::QTextDocument::vw [private]
 

Definition at line 882 of file qrichtext_p.h.

Referenced by doLayout(), and init().

uint Qt3::QTextDocument::withoutDoubleBuffer [private]
 

Definition at line 896 of file qrichtext_p.h.

Referenced by doLayout(), draw(), and init().

int Qt3::QTextDocument::wused [private]
 

Definition at line 911 of file qrichtext_p.h.

Referenced by doLayout(), init(), setMinimumWidth(), and widthUsed().


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