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

QTextCursor Class Reference

#include </home/clem/local/src/opie/qmake/include/private/qrichtext_p.h>

Collaboration diagram for 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 (bool onlySpace=FALSE)
void gotoPreviousWord (bool onlySpace=FALSE)
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 ()
bool 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 QTextCursor::Operation [private]
 

Enumeration values:
EnterBegin 
EnterEnd 
Next 
Prev 
Up 
Down 

Definition at line 327 of file qrichtext_p.h.


Constructor & Destructor Documentation

QTextCursor::QTextCursor QTextDocument d = 0  ) 
 

QTextCursor::QTextCursor const QTextCursor c  ) 
 

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

Definition at line 260 of file qrichtext_p.h.


Member Function Documentation

bool QTextCursor::atParagEnd  ) 
 

bool QTextCursor::atParagStart  ) 
 

QTextDocument* QTextCursor::document  )  const
 

int QTextCursor::globalX  )  const
 

int QTextCursor::globalY  )  const
 

void QTextCursor::gotoDown  ) 
 

void QTextCursor::gotoEnd  ) 
 

void QTextCursor::gotoHome  ) 
 

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

void QTextCursor::gotoLeft  ) 
 

void QTextCursor::gotoLineEnd  ) 
 

void QTextCursor::gotoLineStart  ) 
 

void QTextCursor::gotoNextLetter  ) 
 

void QTextCursor::gotoNextWord bool  onlySpace = FALSE  ) 
 

void QTextCursor::gotoPageDown int  visibleHeight  ) 
 

void QTextCursor::gotoPageUp int  visibleHeight  ) 
 

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

void QTextCursor::gotoPreviousLetter  ) 
 

void QTextCursor::gotoPreviousWord bool  onlySpace = FALSE  ) 
 

void QTextCursor::gotoRight  ) 
 

void QTextCursor::gotoUp  ) 
 

void QTextCursor::gotoWordLeft  ) 
 

void QTextCursor::gotoWordRight  ) 
 

void QTextCursor::indent  ) 
 

int QTextCursor::index  )  const [inline]
 

Definition at line 1658 of file qrichtext_p.h.

References idx.

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

void QTextCursor::invalidateNested  )  [private]
 

bool QTextCursor::isValid  )  const [inline]
 

Definition at line 324 of file qrichtext_p.h.

int QTextCursor::nestedDepth  )  const [inline]
 

Definition at line 321 of file qrichtext_p.h.

int QTextCursor::offsetX  )  const [inline]
 

Definition at line 311 of file qrichtext_p.h.

int QTextCursor::offsetY  )  const [inline]
 

Definition at line 312 of file qrichtext_p.h.

void QTextCursor::oneUp  )  [inline]
 

Definition at line 322 of file qrichtext_p.h.

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

Definition at line 263 of file qrichtext_p.h.

QTextCursor& QTextCursor::operator= const QTextCursor c  ) 
 

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

QTextParagraph * QTextCursor::paragraph  )  const [inline]
 

Definition at line 1653 of file qrichtext_p.h.

References para.

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

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

Definition at line 316 of file qrichtext_p.h.

References FALSE, and place().

void QTextCursor::pop  )  [private]
 

bool QTextCursor::processNesting Operation  op  )  [private]
 

void QTextCursor::push  )  [private]
 

bool QTextCursor::remove  ) 
 

void QTextCursor::restoreState  ) 
 

void QTextCursor::setIndex int  index  )  [inline]
 

Definition at line 276 of file qrichtext_p.h.

void QTextCursor::setParagraph QTextParagraph p  )  [inline]
 

Definition at line 273 of file qrichtext_p.h.

void QTextCursor::setValid bool  b  )  [inline]
 

Definition at line 323 of file qrichtext_p.h.

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

QTextParagraph* QTextCursor::topParagraph  )  const [inline]
 

Definition at line 310 of file qrichtext_p.h.

int QTextCursor::totalOffsetX  )  const
 

int QTextCursor::totalOffsetY  )  const
 

int QTextCursor::x  )  const
 

int QTextCursor::y  )  const
 


Member Data Documentation

int QTextCursor::idx [private]
 

Definition at line 336 of file qrichtext_p.h.

Referenced by index(), and Qt3::QTextCursor::index().

QValueStack<int> QTextCursor::indices [private]
 

Definition at line 338 of file qrichtext_p.h.

int QTextCursor::ox [private]
 

Definition at line 337 of file qrichtext_p.h.

int QTextCursor::oy [private]
 

Definition at line 337 of file qrichtext_p.h.

QTextParagraph* QTextCursor::para [private]
 

Definition at line 335 of file qrichtext_p.h.

Referenced by paragraph(), and Qt3::QTextCursor::paragraph().

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

Definition at line 339 of file qrichtext_p.h.

int QTextCursor::tmpIndex [private]
 

Definition at line 336 of file qrichtext_p.h.

uint QTextCursor::valid [private]
 

Definition at line 342 of file qrichtext_p.h.

QValueStack<int> QTextCursor::xOffsets [private]
 

Definition at line 340 of file qrichtext_p.h.

QValueStack<int> QTextCursor::yOffsets [private]
 

Definition at line 341 of file qrichtext_p.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:49:20 2005 for OPIE by  doxygen 1.4.2