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

Qt3::QTextCursor Class Reference

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

Collaboration diagram for Qt3::QTextCursor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QTextCursor (QTextDocument *d=0)
 QTextCursor (const QTextCursor &c)
QTextCursoroperator= (const QTextCursor &c)
virtual ~QTextCursor ()
bool operator== (const QTextCursor &c) const
bool operator!= (const QTextCursor &c) const
QTextParagraphparagraph () const
void setParagraph (QTextParagraph *p)
QTextDocumentdocument () const
int index () const
void setIndex (int index)
void gotoPosition (QTextParagraph *p, int index=0)
void gotoLeft ()
void gotoRight ()
void gotoNextLetter ()
void gotoPreviousLetter ()
void gotoUp ()
void gotoDown ()
void gotoLineEnd ()
void gotoLineStart ()
void gotoHome ()
void gotoEnd ()
void gotoPageUp (int visibleHeight)
void gotoPageDown (int visibleHeight)
void gotoNextWord ()
void gotoPreviousWord ()
void gotoWordLeft ()
void gotoWordRight ()
void insert (const QString &s, bool checkNewLine, QMemArray< QTextStringChar > *formatting=0)
void splitAndInsertEmptyParagraph (bool ind=TRUE, bool updateIds=TRUE)
bool remove ()
void indent ()
bool atParagStart ()
bool atParagEnd ()
int x () const
int y () const
int globalX () const
int globalY () const
QTextParagraphtopParagraph () const
int offsetX () const
int offsetY () const
int totalOffsetX () const
int totalOffsetY () const
bool place (const QPoint &pos, QTextParagraph *s)
bool place (const QPoint &pos, QTextParagraph *s, bool link)
void restoreState ()
int nestedDepth () const
void oneUp ()
void setValid (bool b)
bool isValid () const

Private Types

enum  Operation {
  EnterBegin, EnterEnd, Next, Prev,
  Up, Down
}

Private Member Functions

void push ()
void pop ()
void processNesting (Operation op)
void invalidateNested ()
void gotoIntoNested (const QPoint &globalPos)

Private Attributes

QTextParagraphpara
int idx
int tmpIndex
int ox
int oy
QValueStack< int > indices
QValueStack< QTextParagraph * > paras
QValueStack< int > xOffsets
QValueStack< int > yOffsets
uint valid: 1

Member Enumeration Documentation

enum Qt3::QTextCursor::Operation [private]
 

Enumeration values:
EnterBegin 
EnterEnd 
Next 
Prev 
Up 
Down 

Definition at line 306 of file qrichtext_p.h.


Constructor & Destructor Documentation

QTextCursor::QTextCursor QTextDocument d = 0  ) 
 

Definition at line 399 of file qrichtext.cpp.

References Qt3::QTextDocument::firstParagraph(), and para.

QTextCursor::QTextCursor const QTextCursor c  ) 
 

Definition at line 406 of file qrichtext.cpp.

References idx, indices, ox, oy, para, paras, tmpIndex, valid, xOffsets, and yOffsets.

virtual Qt3::QTextCursor::~QTextCursor  )  [inline, virtual]
 

Definition at line 246 of file qrichtext_p.h.


Member Function Documentation

bool QTextCursor::atParagEnd  ) 
 

Definition at line 1046 of file qrichtext.cpp.

References idx, Qt3::QTextParagraph::length(), and para.

Referenced by Qt3::QTextEdit::contentsMouseDoubleClickEvent(), Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextEdit::keyPressEvent(), remove(), Qt3::QTextEdit::scrollToAnchor(), Qt3::QTextDocument::setSelectionEnd(), and splitAndInsertEmptyParagraph().

bool QTextCursor::atParagStart  ) 
 

Definition at line 1041 of file qrichtext.cpp.

References idx.

Referenced by Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextEdit::keyPressEvent(), and splitAndInsertEmptyParagraph().

QTextDocument * QTextCursor::document  )  const
 

Definition at line 128 of file qrichtext_p.cpp.

References Qt3::QTextParagraph::document(), and para.

Referenced by gotoEnd(), gotoHome(), gotoIntoNested(), and place().

int QTextCursor::globalX  )  const
 

Definition at line 125 of file qrichtext_p.cpp.

References para, Qt3::QTextParagraph::rect(), totalOffsetX(), and x().

int QTextCursor::globalY  )  const
 

Definition at line 126 of file qrichtext_p.cpp.

References para, Qt3::QTextParagraph::rect(), totalOffsetY(), and y().

Referenced by gotoPageDown(), and gotoPageUp().

void QTextCursor::gotoDown  ) 
 

Definition at line 844 of file qrichtext.cpp.

References Down, end, idx, Qt3::QTextParagraph::isVisible(), Qt3::QTextParagraph::length(), Qt3::QTextParagraph::lines(), Qt3::QTextParagraph::lineStartOfChar(), Qt3::QTextParagraph::lineStartOfLine(), nestedDepth(), Qt3::QTextParagraph::next(), para, pop(), processNesting(), s, and tmpIndex.

Referenced by gotoPageDown(), and Qt3::QTextEdit::moveCursor().

void QTextCursor::gotoEnd  ) 
 

Definition at line 939 of file qrichtext.cpp.

References document(), gotoLineEnd(), gotoPosition(), isValid(), and topParagraph().

Referenced by Qt3::QTextEdit::append(), Qt3::QTextEdit::find(), and Qt3::QTextEdit::moveCursor().

void QTextCursor::gotoHome  ) 
 

Definition at line 931 of file qrichtext.cpp.

References document(), gotoLineStart(), gotoPosition(), and topParagraph().

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

void QTextCursor::gotoIntoNested const QPoint &  globalPos  )  [private]
 

Definition at line 457 of file qrichtext.cpp.

References Qt3::QTextParagraph::at(), document(), idx, Qt3::QTextParagraph::lineHeightOfChar(), offsetX(), offsetY(), ox, oy, p, para, push(), Q_ASSERT, Qt3::QTextParagraph::rect(), and y().

Referenced by place().

void QTextCursor::gotoLeft  ) 
 

Definition at line 568 of file qrichtext.cpp.

References gotoNextLetter(), gotoPreviousLetter(), para, and Qt3::QTextParagraph::string().

Referenced by Qt3::QTextFormatCommand::execute(), and Qt3::QTextFormatCommand::unexecute().

void QTextCursor::gotoLineEnd  ) 
 

Definition at line 901 of file qrichtext.cpp.

References idx, Qt3::QTextParagraph::length(), Qt3::QTextParagraph::lines(), Qt3::QTextParagraph::lineStartOfChar(), Qt3::QTextParagraph::lineStartOfLine(), para, and tmpIndex.

Referenced by gotoEnd(), gotoNextWord(), and Qt3::QTextEdit::moveCursor().

void QTextCursor::gotoLineStart  ) 
 

Definition at line 919 of file qrichtext.cpp.

References idx, Qt3::QTextParagraph::lineStartOfChar(), para, and tmpIndex.

Referenced by gotoHome(), and Qt3::QTextEdit::moveCursor().

void QTextCursor::gotoNextLetter  ) 
 

Definition at line 763 of file qrichtext.cpp.

References Qt3::QTextParagraph::at(), Qt3::QTextStringChar::customItem(), EnterBegin, idx, Qt3::QTextStringChar::isCustom(), Qt3::QTextParagraph::isVisible(), nestedDepth(), Next, Qt3::QTextParagraph::next(), para, pop(), processNesting(), and tmpIndex.

Referenced by Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextDeleteCommand::execute(), Qt3::QTextEdit::find(), gotoLeft(), gotoRight(), Qt3::QTextEdit::insert(), Qt3::QTextEdit::moveCursor(), Qt3::QTextEdit::pasteSubType(), Qt3::QTextDocument::removeSelectedText(), Qt3::QTextDocument::removeSelection(), Qt3::QTextEdit::scrollToAnchor(), and Qt3::QTextDocument::setSelectionEnd().

void QTextCursor::gotoNextWord  ) 
 

Definition at line 1007 of file qrichtext.cpp.

References Qt3::QTextString::at(), FALSE, gotoLineEnd(), idx, Qt3::QTextParagraph::isVisible(), Qt3::QTextParagraph::next(), p, para, s, Qt3::QTextParagraph::string(), tmpIndex, and TRUE.

Referenced by Qt3::QTextEdit::contentsMouseDoubleClickEvent(), gotoWordLeft(), gotoWordRight(), Qt3::QTextEdit::handleMouseMove(), and Qt3::QTextEdit::moveCursor().

void QTextCursor::gotoPageDown int  visibleHeight  ) 
 

Definition at line 958 of file qrichtext.cpp.

References globalY(), gotoDown(), idx, index(), and para.

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

void QTextCursor::gotoPageUp int  visibleHeight  ) 
 

Definition at line 948 of file qrichtext.cpp.

References globalY(), gotoUp(), idx, index(), and para.

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

void QTextCursor::gotoPosition QTextParagraph p,
int  index = 0
 

Definition at line 133 of file qrichtext_p.cpp.

References Qt3::QTextParagraph::document(), idx, indices, QValueList< T >::isEmpty(), Qt3::QTextParagraph::length(), oendl, owarn, para, pop(), Q_ASSERT, and tmpIndex.

Referenced by Qt3::QTextEdit::find(), gotoEnd(), and gotoHome().

void QTextCursor::gotoPreviousLetter  ) 
 

Definition at line 576 of file qrichtext.cpp.

References Qt3::QTextParagraph::at(), Qt3::QTextStringChar::customItem(), EnterEnd, idx, Qt3::QTextStringChar::isCustom(), Qt3::QTextParagraph::isVisible(), Qt3::QTextParagraph::length(), nestedDepth(), para, pop(), Prev, Qt3::QTextParagraph::prev(), processNesting(), and tmpIndex.

Referenced by Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextEdit::find(), gotoLeft(), gotoPreviousWord(), gotoRight(), Qt3::QTextEdit::moveCursor(), Qt3::QTextDocument::removeSelectedText(), and Qt3::QTextDocument::setRichTextInternal().

void QTextCursor::gotoPreviousWord  ) 
 

Definition at line 984 of file qrichtext.cpp.

References Qt3::QTextString::at(), FALSE, gotoPreviousLetter(), i, idx, Qt3::QTextString::length(), para, s, Qt3::QTextParagraph::string(), tmpIndex, and TRUE.

Referenced by Qt3::QTextEdit::contentsMouseDoubleClickEvent(), gotoWordLeft(), gotoWordRight(), Qt3::QTextEdit::handleMouseMove(), and Qt3::QTextEdit::moveCursor().

void QTextCursor::gotoRight  ) 
 

Definition at line 755 of file qrichtext.cpp.

References gotoNextLetter(), gotoPreviousLetter(), para, and Qt3::QTextParagraph::string().

void QTextCursor::gotoUp  ) 
 

Definition at line 795 of file qrichtext.cpp.

References idx, Qt3::QTextParagraph::isVisible(), Qt3::QTextParagraph::length(), Qt3::QTextParagraph::lines(), Qt3::QTextParagraph::lineStartOfChar(), Qt3::QTextParagraph::lineStartOfLine(), nestedDepth(), p, para, pop(), Qt3::QTextParagraph::prev(), processNesting(), tmpIndex, and Up.

Referenced by gotoPageUp(), and Qt3::QTextEdit::moveCursor().

void QTextCursor::gotoWordLeft  ) 
 

Definition at line 976 of file qrichtext.cpp.

References gotoNextWord(), gotoPreviousWord(), para, and Qt3::QTextParagraph::string().

void QTextCursor::gotoWordRight  ) 
 

Definition at line 968 of file qrichtext.cpp.

References gotoNextWord(), gotoPreviousWord(), para, and Qt3::QTextParagraph::string().

void QTextCursor::indent  ) 
 

Definition at line 1148 of file qrichtext.cpp.

References idx, Qt3::QTextParagraph::indent(), and para.

Referenced by Qt3::QTextEdit::indent(), Qt3::QTextEdit::insert(), and splitAndInsertEmptyParagraph().

int Qt3::QTextCursor::index  )  const [inline]
 

Definition at line 1561 of file qrichtext_p.h.

References QTextCursor::idx.

Referenced by Qt3::QTextEdit::anchorAt(), Qt3::QTextEdit::append(), Qt3::QTextEdit::charAt(), Qt3::QTextEdit::clear(), Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextEdit::contentsMouseDoubleClickEvent(), Qt3::QTextEdit::contentsMousePressEvent(), Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextEdit::drawCursor(), Qt3::QTextDocument::drawParagraph(), Qt3::QTextEdit::ensureCursorVisible(), Qt3::QTextEdit::find(), Qt3::QTextEdit::getCursorPosition(), gotoPageDown(), gotoPageUp(), Qt3::QTextEdit::handleMouseMove(), Qt3::QTextEdit::insert(), Qt3::QTextEdit::keyPressEvent(), Qt3::QTextParagraph::paint(), Qt3::QTextEdit::pasteSubType(), place(), Qt3::QTextEdit::readFormats(), Qt3::QTextDocument::removeSelectedText(), Qt3::QTextParagraph::richText(), Qt3::QTextDocument::richText(), Qt3::QTextEdit::scrollToAnchor(), Qt3::QTextDocument::selectedText(), Qt3::QTextDocument::selectionEnd(), Qt3::QTextDocument::selectionStart(), Qt3::QTextEdit::setCursorPosition(), Qt3::QTextEdit::setFormat(), Qt3::QTextDocument::setFormat(), Qt3::QTextDocument::setSelectionEnd(), setSelectionEndHelper(), Qt3::QTextEdit::updateCurrentFormat(), Qt3::QTextEdit::updateCursor(), and Qt3::QTextEdit::updateMicroFocusHint().

void QTextCursor::insert const QString s,
bool  checkNewLine,
QMemArray< QTextStringChar > *  formatting = 0
 

Definition at line 487 of file qrichtext.cpp.

References QMemArray< type >::at(), Qt3::QTextParagraph::document(), end, FALSE, QString::find(), Qt3::QTextParagraph::format(), i, idx, Qt3::QTextParagraph::insert(), Qt3::QTextParagraph::invalidate(), invalidateNested(), len, QString::length(), Qt3::QTextParagraph::next(), p, para, Qt3::QTextParagraph::prev(), Qt3::QTextParagraph::rect(), QString::remove(), s, Qt3::QTextParagraph::setEndState(), Qt3::QTextParagraph::setParagId(), splitAndInsertEmptyParagraph(), start, Qt3::QTextParagraph::string(), tmpIndex, TRUE, QString::unicode(), and y().

Referenced by Qt3::QTextEdit::append(), Qt3::QTextEdit::insert(), Qt3::QTextEdit::insertParagraph(), and Qt3::QTextDeleteCommand::unexecute().

void QTextCursor::invalidateNested  )  [private]
 

Definition at line 474 of file qrichtext.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), indices, para, and paras.

Referenced by insert(), remove(), and splitAndInsertEmptyParagraph().

bool Qt3::QTextCursor::isValid  )  const [inline]
 

Definition at line 303 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::clear(), gotoEnd(), Qt3::QTextEdit::removeSelectedText(), and Qt3::QTextDocument::removeSelectedText().

int Qt3::QTextCursor::nestedDepth  )  const [inline]
 

Definition at line 300 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextEdit::drawCursor(), gotoDown(), gotoNextLetter(), gotoPreviousLetter(), gotoUp(), Qt3::QTextEdit::insert(), Qt3::QTextEdit::removeSelectedText(), Qt3::QTextDocument::removeSelectedText(), and Qt3::QTextDocument::selectedText().

int Qt3::QTextCursor::offsetX  )  const [inline]
 

Definition at line 290 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::ensureCursorVisible(), gotoIntoNested(), and place().

int Qt3::QTextCursor::offsetY  )  const [inline]
 

Definition at line 291 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::ensureCursorVisible(), gotoIntoNested(), and place().

void Qt3::QTextCursor::oneUp  )  [inline]
 

Definition at line 301 of file qrichtext_p.h.

Referenced by Qt3::QTextDocument::selectedText().

bool Qt3::QTextCursor::operator!= const QTextCursor c  )  const [inline]
 

Definition at line 249 of file qrichtext_p.h.

QTextCursor & QTextCursor::operator= const QTextCursor c  ) 
 

Definition at line 420 of file qrichtext.cpp.

References idx, indices, ox, oy, para, paras, tmpIndex, valid, xOffsets, and yOffsets.

bool QTextCursor::operator== const QTextCursor c  )  const
 

Definition at line 436 of file qrichtext.cpp.

References idx, and para.

QTextParagraph * Qt3::QTextCursor::paragraph  )  const [inline]
 

Definition at line 1556 of file qrichtext_p.h.

References QTextCursor::para.

Referenced by Qt3::QTextEdit::anchorAt(), Qt3::QTextEdit::append(), Qt3::QTextEdit::charAt(), Qt3::QTextEdit::clear(), Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextEdit::contentsMouseDoubleClickEvent(), Qt3::QTextEdit::contentsMousePressEvent(), Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextEdit::drawCursor(), Qt3::QTextDocument::drawParagraph(), Qt3::QTextEdit::ensureCursorVisible(), Qt3::QTextEdit::find(), Qt3::QTextEdit::getCursorPosition(), Qt3::QTextEdit::handleMouseMove(), Qt3::QTextDocument::indentSelection(), Qt3::QTextDocument::inSelection(), Qt3::QTextEdit::insert(), Qt3::QTextEdit::keyPressEvent(), Qt3::QTextEdit::moveCursor(), Qt3::QTextParagraph::paint(), Qt3::QTextEdit::paragraphAt(), Qt3::QTextEdit::pasteSubType(), Qt3::QTextEdit::readFormats(), Qt3::QTextEdit::removeParagraph(), Qt3::QTextEdit::removeSelectedText(), Qt3::QTextDocument::removeSelectedText(), Qt3::QTextDocument::removeSelection(), Qt3::QTextParagraph::richText(), Qt3::QTextDocument::richText(), Qt3::QTextEdit::scrollToAnchor(), Qt3::QTextDocument::selectedText(), Qt3::QTextDocument::selectionEnd(), Qt3::QTextDocument::selectionStart(), Qt3::QTextEdit::setAlignment(), Qt3::QTextEdit::setCursorPosition(), Qt3::QTextEdit::setFormat(), Qt3::QTextDocument::setFormat(), Qt3::QTextEdit::setParagType(), Qt3::QTextDocument::setRichTextInternal(), Qt3::QTextDocument::setSelectionEnd(), setSelectionEndHelper(), Qt3::QTextDeleteCommand::unexecute(), Qt3::QTextEdit::updateCurrentFormat(), Qt3::QTextEdit::updateCursor(), and Qt3::QTextEdit::updateMicroFocusHint().

bool QTextCursor::place const QPoint &  pos,
QTextParagraph s,
bool  link
 

Definition at line 629 of file qrichtext.cpp.

References Qt3::QTextParagraph::at(), Qt3::QTextStringChar::customItem(), d, Qt3::QTextParagraph::document(), document(), FALSE, gotoIntoNested(), Qt3::QTextStringChar::height(), i, index(), Qt3::QTextStringChar::isCustom(), Qt3::QTextParagraph::isVisible(), Qt3::QTextParagraph::next(), offsetX(), offsetY(), p, para, place(), pop(), pos, Qt3::QTextParagraph::rect(), Qt3::QTextStringChar::rightToLeft, setIndex(), setParagraph(), str, TRUE, width, Qt3::QTextStringChar::x, x(), and y().

bool Qt3::QTextCursor::place const QPoint &  pos,
QTextParagraph s
[inline]
 

Definition at line 295 of file qrichtext_p.h.

References FALSE, and place().

Referenced by Qt3::QTextEdit::charAt(), Qt3::QTextEdit::paragraphAt(), place(), and Qt3::QTextEdit::placeCursor().

void QTextCursor::pop  )  [private]
 

Definition at line 613 of file qrichtext.cpp.

References idx, indices, QValueList< T >::isEmpty(), ox, para, paras, QValueStack< T >::pop(), xOffsets, and yOffsets.

Referenced by gotoDown(), gotoNextLetter(), gotoPosition(), gotoPreviousLetter(), gotoUp(), place(), processNesting(), and restoreState().

void QTextCursor::processNesting Operation  op  )  [private]
 

Definition at line 719 of file qrichtext.cpp.

References Qt3::QTextParagraph::at(), Qt3::QTextParagraph::document(), Down, EnterBegin, EnterEnd, FALSE, idx, Qt3::QTextParagraph::lineHeightOfChar(), Next, ox, oy, para, pop(), Prev, push(), Qt3::QTextParagraph::rect(), TRUE, Up, and y().

Referenced by gotoDown(), gotoNextLetter(), gotoPreviousLetter(), and gotoUp().

void QTextCursor::push  )  [private]
 

Definition at line 605 of file qrichtext.cpp.

References idx, indices, ox, oy, para, paras, QValueStack< T >::push(), xOffsets, and yOffsets.

Referenced by gotoIntoNested(), and processNesting().

bool QTextCursor::remove  ) 
 

Definition at line 1128 of file qrichtext.cpp.

References atParagEnd(), Qt3::QTextParagraph::document(), FALSE, Qt3::QTextParagraph::format(), idx, invalidateNested(), Qt3::QTextParagraph::join(), Qt3::QTextParagraph::next(), para, Qt3::QTextParagraph::rect(), Qt3::QTextParagraph::remove(), tmpIndex, and TRUE.

Referenced by Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextDeleteCommand::execute(), and Qt3::QTextEdit::keyPressEvent().

void QTextCursor::restoreState  ) 
 

Definition at line 623 of file qrichtext.cpp.

References indices, QValueList< T >::isEmpty(), and pop().

Referenced by Qt3::QTextEdit::clear(), Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextEdit::placeCursor(), Qt3::QTextEdit::readFormats(), Qt3::QTextEdit::removeSelectedText(), Qt3::QTextDocument::removeSelectedText(), Qt3::QTextEdit::setFormat(), Qt3::QTextDocument::setFormat(), Qt3::QTextDocument::setSelectionEnd(), and Qt3::QTextEdit::setText().

void Qt3::QTextCursor::setIndex int  index  )  [inline]
 

Definition at line 255 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextFormatCommand::execute(), Qt3::QTextDeleteCommand::execute(), Qt3::QTextEdit::insertAt(), Qt3::QTextEdit::insertParagraph(), place(), Qt3::QTextEdit::removeParagraph(), Qt3::QTextDocument::selectAll(), Qt3::QTextEdit::setCursorPosition(), Qt3::QTextEdit::setSelection(), Qt3::QTextFormatCommand::unexecute(), Qt3::QTextDeleteCommand::unexecute(), and Qt3::QTextEdit::updateMicroFocusHint().

void Qt3::QTextCursor::setParagraph QTextParagraph p  )  [inline]
 

Definition at line 252 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::contentsDropEvent(), Qt3::QTextFormatCommand::execute(), Qt3::QTextDeleteCommand::execute(), Qt3::QTextEdit::insertAt(), Qt3::QTextEdit::insertParagraph(), place(), Qt3::QTextEdit::removeParagraph(), Qt3::QTextDocument::selectAll(), Qt3::QTextEdit::setCursorPosition(), Qt3::QTextEdit::setSelection(), Qt3::QTextDocument::setSelectionEnd(), Qt3::QTextFormatCommand::unexecute(), and Qt3::QTextDeleteCommand::unexecute().

void Qt3::QTextCursor::setValid bool  b  )  [inline]
 

Definition at line 302 of file qrichtext_p.h.

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

void QTextCursor::splitAndInsertEmptyParagraph bool  ind = TRUE,
bool  updateIds = TRUE
 

Definition at line 1051 of file qrichtext.cpp.

References Qt3::QTextStringChar::anchorHref(), Qt3::QTextStringChar::anchorName(), Qt3::QTextParagraph::append(), Qt3::QTextParagraph::at(), atParagEnd(), atParagStart(), Qt3::QTextFormat::color(), Qt3::QTextParagraph::copyParagData(), Qt3::QTextStringChar::customItem(), Qt3::QTextParagraph::document(), f, Qt3::QTextFormat::font(), Qt3::QTextStringChar::format, Qt3::QTextParagraph::format(), i, idx, indent(), Qt3::QTextParagraph::indent(), invalidateNested(), Qt3::QTextStringChar::isAnchor(), Qt3::QTextStringChar::isCustom(), Qt3::QTextFormat::isMisspelled(), QString::length(), Qt3::QTextParagraph::length(), Qt3::QTextStringChar::loseCustomItem(), Qt3::QTextParagraph::next(), p, para, Qt3::QTextParagraph::prev(), Qt3::QTextParagraph::remove(), Qt3::QTextFormat::removeRef(), s, Qt3::QTextParagraph::setFormat(), str, Qt3::QTextParagraph::string(), tmpIndex, and TRUE.

Referenced by Qt3::QTextEdit::append(), Qt3::QTextEdit::doKeyboardAction(), insert(), and Qt3::QTextEdit::insertParagraph().

QTextParagraph* Qt3::QTextCursor::topParagraph  )  const [inline]
 

Definition at line 289 of file qrichtext_p.h.

Referenced by Qt3::QTextEdit::drawCursor(), gotoEnd(), and gotoHome().

int QTextCursor::totalOffsetX  )  const
 

Definition at line 441 of file qrichtext.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), ox, and xOffsets.

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

int QTextCursor::totalOffsetY  )  const
 

Definition at line 449 of file qrichtext.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), oy, yoff, and yOffsets.

Referenced by Qt3::QTextEdit::drawCursor(), globalY(), and Qt3::QTextEdit::scrollToAnchor().

int QTextCursor::x  )  const
 

Definition at line 103 of file qrichtext_p.cpp.

References Qt3::AlignJustify, Qt3::QTextParagraph::alignment(), Qt3::QTextParagraph::at(), Qt3::QTextStringChar::c, idx, QChar::isSpace(), Qt3::QTextStringChar::lineStart, para, Qt3::QTextStringChar::rightToLeft, Qt3::QTextParagraph::string(), and Qt3::QTextStringChar::x.

Referenced by Qt3::QTextEdit::drawCursor(), globalX(), Qt3::QTextParagraph::paint(), place(), and Qt3::QTextEdit::updateMicroFocusHint().

int QTextCursor::y  )  const
 

Definition at line 118 of file qrichtext_p.cpp.

References idx, Qt3::QTextParagraph::lineStartOfChar(), Qt3::QTextParagraph::lineY(), and para.

Referenced by Qt3::QTextEdit::drawCursor(), globalY(), gotoIntoNested(), insert(), place(), processNesting(), and Qt3::QTextEdit::updateMicroFocusHint().


Member Data Documentation

int Qt3::QTextCursor::idx [private]
 

Definition at line 315 of file qrichtext_p.h.

Referenced by atParagEnd(), atParagStart(), gotoDown(), gotoIntoNested(), gotoLineEnd(), gotoLineStart(), gotoNextLetter(), gotoNextWord(), gotoPageDown(), gotoPageUp(), gotoPosition(), gotoPreviousLetter(), gotoPreviousWord(), gotoUp(), indent(), insert(), operator=(), operator==(), pop(), processNesting(), push(), QTextCursor(), remove(), splitAndInsertEmptyParagraph(), x(), and y().

QValueStack<int> Qt3::QTextCursor::indices [private]
 

Definition at line 317 of file qrichtext_p.h.

Referenced by gotoPosition(), invalidateNested(), operator=(), pop(), push(), QTextCursor(), and restoreState().

int Qt3::QTextCursor::ox [private]
 

Definition at line 316 of file qrichtext_p.h.

Referenced by gotoIntoNested(), operator=(), pop(), processNesting(), push(), QTextCursor(), and totalOffsetX().

int Qt3::QTextCursor::oy [private]
 

Definition at line 316 of file qrichtext_p.h.

Referenced by gotoIntoNested(), operator=(), processNesting(), push(), QTextCursor(), and totalOffsetY().

QTextParagraph* Qt3::QTextCursor::para [private]
 

Definition at line 314 of file qrichtext_p.h.

Referenced by atParagEnd(), document(), globalX(), globalY(), gotoDown(), gotoIntoNested(), gotoLeft(), gotoLineEnd(), gotoLineStart(), gotoNextLetter(), gotoNextWord(), gotoPageDown(), gotoPageUp(), gotoPosition(), gotoPreviousLetter(), gotoPreviousWord(), gotoRight(), gotoUp(), gotoWordLeft(), gotoWordRight(), indent(), insert(), invalidateNested(), operator=(), operator==(), place(), pop(), processNesting(), push(), QTextCursor(), remove(), splitAndInsertEmptyParagraph(), x(), and y().

QValueStack<QTextParagraph*> Qt3::QTextCursor::paras [private]
 

Definition at line 318 of file qrichtext_p.h.

Referenced by invalidateNested(), operator=(), pop(), push(), and QTextCursor().

int Qt3::QTextCursor::tmpIndex [private]
 

Definition at line 315 of file qrichtext_p.h.

Referenced by gotoDown(), gotoLineEnd(), gotoLineStart(), gotoNextLetter(), gotoNextWord(), gotoPosition(), gotoPreviousLetter(), gotoPreviousWord(), gotoUp(), insert(), operator=(), QTextCursor(), remove(), and splitAndInsertEmptyParagraph().

uint Qt3::QTextCursor::valid [private]
 

Definition at line 321 of file qrichtext_p.h.

Referenced by operator=(), and QTextCursor().

QValueStack<int> Qt3::QTextCursor::xOffsets [private]
 

Definition at line 319 of file qrichtext_p.h.

Referenced by operator=(), pop(), push(), QTextCursor(), and totalOffsetX().

QValueStack<int> Qt3::QTextCursor::yOffsets [private]
 

Definition at line 320 of file qrichtext_p.h.

Referenced by operator=(), pop(), push(), QTextCursor(), and totalOffsetY().


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