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

Qt3::QTextString Class Reference

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

Collaboration diagram for Qt3::QTextString:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QTextString ()
 QTextString (const QTextString &s)
virtual ~QTextString ()
QString toString () const
QTextStringCharat (int i) const
int length () const
int width (int idx) const
void insert (int index, const QString &s, QTextFormat *f)
void insert (int index, const QChar *unicode, int len, QTextFormat *f)
void insert (int index, QTextStringChar *c, bool doAddRefFormat=FALSE)
void truncate (int index)
void remove (int index, int len)
void clear ()
void setFormat (int index, QTextFormat *f, bool useCollection)
void setBidi (bool b)
bool isBidi () const
bool isRightToLeft () const
QChar::Direction direction () const
void setDirection (QChar::Direction d)
QMemArray< QTextStringCharsubString (int start=0, int len=0xFFFFFF) const
QMemArray< QTextStringCharrawData () const
void operator= (const QString &s)
void operator+= (const QString &s)
void prepend (const QString &s)

Static Public Member Functions

static QString toString (const QMemArray< QTextStringChar > &data)

Private Member Functions

void checkBidi () const

Private Attributes

QMemArray< QTextStringChardata
uint bidiDirty: 1
uint bidi: 1
uint rightToLeft: 1
uint dir: 5

Constructor & Destructor Documentation

QTextString::QTextString  ) 
 

Definition at line 3386 of file qrichtext.cpp.

References bidi, bidiDirty, dir, QChar::DirON, FALSE, and rightToLeft.

QTextString::QTextString const QTextString s  ) 
 

Definition at line 3394 of file qrichtext.cpp.

References bidi, bidiDirty, data, dir, rightToLeft, and subString().

QTextString::~QTextString  )  [virtual]
 

Definition at line 3429 of file qrichtext.cpp.

References clear().


Member Function Documentation

QTextStringChar & Qt3::QTextString::at int  i  )  const [inline]
 

Definition at line 1812 of file qrichtext_p.h.

References QTextString::data.

Referenced by Qt3::QTextParagraph::at(), Qt3::QTextFormatter::bidiReorderLine(), Qt3::QTextFormatterBreakWords::format(), Qt3::QTextParagraph::format(), Qt3::QTextFormatter::formatLine(), Qt3::QTextCursor::gotoNextWord(), Qt3::QTextCursor::gotoPreviousWord(), Qt3::QTextFormatter::isBreakable(), Qt3::QTextParagraph::join(), Qt3::QTextParagraph::leftGap(), Qt3::QTextParagraph::lineStartOfChar(), Qt3::QTextParagraph::lineStartOfLine(), Qt3::QTextParagraph::paint(), Qt3::QTextParagraph::richText(), Qt3::QTextParagraph::setFormat(), and width().

void QTextString::checkBidi  )  const [private]
 

Definition at line 3517 of file qrichtext.cpp.

References Qt3::QTextStringChar::c, QMemArray< type >::data(), data, dir, QChar::DirAL, QChar::direction(), QChar::DirL, QChar::DirLRE, QChar::DirLRO, QChar::DirR, QChar::DirRLE, QChar::DirRLO, FALSE, len, QChar::row(), row, QMemArray< type >::size(), and TRUE.

void QTextString::clear  ) 
 

Definition at line 3494 of file qrichtext.cpp.

References QMemArray< type >::count(), d, data, format(), Qt3::QTextStringChar::Regular, QMemArray< type >::resize(), and type.

Referenced by ~QTextString().

QChar::Direction Qt3::QTextString::direction  )  const [inline]
 

Definition at line 225 of file qrichtext_p.h.

References QTextString::dir.

Referenced by Qt3::QTextParagraph::copyParagData(), Qt3::QTextParagraph::direction(), Qt3::QTextParagraph::setDirection(), and Qt3::QTextParagraph::writeStyleInformation().

void QTextString::insert int  index,
QTextStringChar c,
bool  doAddRefFormat = FALSE
 

Definition at line 3434 of file qrichtext.cpp.

References bidiDirty, Qt3::QTextStringChar::c, QMemArray< type >::data(), data, Qt3::QTextStringChar::format, Qt3::QTextStringChar::Regular, QMemArray< type >::resize(), QMemArray< type >::size(), and TRUE.

void QTextString::insert int  index,
const QChar unicode,
int  len,
QTextFormat f
 

Definition at line 3408 of file qrichtext.cpp.

References bidiDirty, QMemArray< type >::data(), data, i, Qt3::QTextStringChar::Regular, QMemArray< type >::resize(), QMemArray< type >::size(), and TRUE.

void QTextString::insert int  index,
const QString s,
QTextFormat f
 

Definition at line 3403 of file qrichtext.cpp.

References QString::length(), and QString::unicode().

Referenced by Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextParagraph::insert(), Qt3::QTextParagraph::QTextParagraph(), and Qt3::QTextEdit::readFormats().

bool Qt3::QTextString::isBidi  )  const [inline]
 

Definition at line 211 of file qrichtext_p.h.

References QTextString::bidi, QTextString::bidiDirty, and QTextString::checkBidi().

Referenced by Qt3::QTextFormatter::formatLine(), and Qt3::QTextParagraph::leftGap().

bool Qt3::QTextString::isRightToLeft  )  const [inline]
 

Definition at line 218 of file qrichtext_p.h.

References QTextString::bidiDirty, QTextString::checkBidi(), and QTextString::rightToLeft.

Referenced by Qt3::QTextFormatter::bidiReorderLine().

int Qt3::QTextString::length  )  const [inline]
 

Definition at line 1541 of file qrichtext_p.h.

References QTextString::data, and QMemArray< type >::size().

Referenced by Qt3::QTextParagraph::append(), Qt3::QTextEdit::doKeyboardAction(), Qt3::QTextParagraph::format(), Qt3::QTextParagraph::fullSelected(), Qt3::QTextCursor::gotoPreviousWord(), Qt3::QTextEdit::insert(), Qt3::QTextParagraph::join(), Qt3::QTextParagraph::length(), Qt3::QTextEdit::pasteSubType(), Qt3::QTextEdit::readFormats(), Qt3::QTextParagraph::remove(), Qt3::QTextParagraph::setFormat(), and width().

void Qt3::QTextString::operator+= const QString s  )  [inline]
 

Definition at line 198 of file qrichtext_p.h.

References QTextParagraph::insert(), and QTextParagraph::length().

void Qt3::QTextString::operator= const QString s  )  [inline]
 

Definition at line 197 of file qrichtext_p.h.

References QTextParagraph::insert().

void Qt3::QTextString::prepend const QString s  )  [inline]
 

Definition at line 199 of file qrichtext_p.h.

References QTextParagraph::insert().

QMemArray<QTextStringChar> Qt3::QTextString::rawData  )  const [inline]
 

Definition at line 195 of file qrichtext_p.h.

void QTextString::remove int  index,
int  len
 

Definition at line 3475 of file qrichtext.cpp.

References bidiDirty, d, QMemArray< type >::data(), data, format(), i, Qt3::QTextStringChar::Regular, QMemArray< type >::resize(), QMemArray< type >::size(), TRUE, and type.

Referenced by Qt3::QTextParagraph::remove().

void Qt3::QTextString::setBidi bool  b  )  [inline]
 

Definition at line 188 of file qrichtext_p.h.

void Qt3::QTextString::setDirection QChar::Direction  d  )  [inline]
 

Definition at line 192 of file qrichtext_p.h.

References TRUE.

Referenced by Qt3::QTextParagraph::copyParagData(), Qt3::QTextParagraph::readStyleInformation(), and Qt3::QTextParagraph::setDirection().

void QTextString::setFormat int  index,
QTextFormat f,
bool  useCollection
 

Definition at line 3510 of file qrichtext.cpp.

References data, and format().

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

QMemArray< QTextStringChar > QTextString::subString int  start = 0,
int  len = 0xFFFFFF
const
 

Definition at line 3700 of file qrichtext.cpp.

References Qt3::QTextStringChar::c, data, Qt3::QTextStringChar::format, i, Qt3::QTextStringChar::Regular, QMemArray< type >::resize(), and QMemArray< type >::size().

Referenced by QTextString().

QString QTextString::toString  )  const
 

Definition at line 416 of file qrichtext_p.cpp.

References data.

QString QTextString::toString const QMemArray< QTextStringChar > &  data  )  [static]
 

Definition at line 396 of file qrichtext_p.cpp.

References Qt3::QTextStringChar::c, QMemArray< type >::data(), l, s, QString::setUnicode(), QMemArray< type >::size(), and QString::unicode().

Referenced by Qt3::QTextParagraph::join(), and Qt3::QTextParagraph::paint().

void QTextString::truncate int  index  ) 
 

Definition at line 3454 of file qrichtext.cpp.

References bidiDirty, d, data, format(), i, Qt3::QTextStringChar::Regular, QMemArray< type >::size(), TRUE, QMemArray< type >::truncate(), and type.

Referenced by Qt3::QTextParagraph::truncate().

int QTextString::width int  idx  )  const
 

Definition at line 3669 of file qrichtext.cpp.

References at(), Qt3::QTextStringChar::c, Qt3::QTextStringChar::customItem(), end, Qt3::QTextStringChar::format, Qt3::QTextStringChar::isCustom(), length(), off, Qt3::QTextCustomItem::PlaceInline, pos, QChar::row(), str, and QChar::unicode().

Referenced by Qt3::QTextFormatterBreakWords::format(), Qt3::QTextParagraph::format(), Qt3::QTextFormatter::formatLine(), and Qt3::QTextParagraph::paint().


Member Data Documentation

uint Qt3::QTextString::bidi [private]
 

Definition at line 206 of file qrichtext_p.h.

Referenced by QTextString().

uint Qt3::QTextString::bidiDirty [private]
 

Definition at line 205 of file qrichtext_p.h.

Referenced by insert(), QTextString(), remove(), and truncate().

QMemArray<QTextStringChar> Qt3::QTextString::data [private]
 

Definition at line 204 of file qrichtext_p.h.

Referenced by checkBidi(), clear(), insert(), QTextString(), remove(), setFormat(), subString(), toString(), and truncate().

uint Qt3::QTextString::dir [private]
 

Definition at line 208 of file qrichtext_p.h.

Referenced by checkBidi(), and QTextString().

uint Qt3::QTextString::rightToLeft [private]
 

Definition at line 207 of file qrichtext_p.h.

Referenced by QTextString().


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