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

Qt3::QTextStringChar Class Reference

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

Collaboration diagram for Qt3::QTextStringChar:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Type { Regular = 0, Custom = 1, Anchor = 2, CustomAnchor = 3 }

Public Member Functions

 QTextStringChar ()
 ~QTextStringChar ()
int height () const
int ascent () const
int descent () const
bool isCustom () const
QTextFormatformat () const
QTextCustomItemcustomItem () const
void setFormat (QTextFormat *f)
void setCustomItem (QTextCustomItem *i)
void loseCustomItem ()
bool isAnchor () const
QString anchorName () const
QString anchorHref () const
void setAnchor (const QString &name, const QString &href)

Public Attributes

QChar c
uint lineStart: 1
uint rightToLeft: 1
uint hasCursor: 1
uint canBreak: 1
Type type: 2
uint startOfRun: 1
int x
union {
   QTextFormat *   format
   CustomData *   custom
d

Private Member Functions

QTextStringCharoperator= (const QTextStringChar &)

Friends

class QTextString
class QComplexText
class QTextParagraph

Classes

struct  CustomData

Member Enumeration Documentation

enum Qt3::QTextStringChar::Type
 

Enumeration values:
Regular 
Custom 
Anchor 
CustomAnchor 

Definition at line 111 of file qrichtext_p.h.


Constructor & Destructor Documentation

Qt3::QTextStringChar::QTextStringChar  )  [inline]
 

Definition at line 107 of file qrichtext_p.h.

References d.

QTextStringChar::~QTextStringChar  ) 
 

Definition at line 597 of file qrichtext_p.cpp.

References d, format(), and type.


Member Function Documentation

QString QTextStringChar::anchorHref  )  const
 

Definition at line 3645 of file qrichtext.cpp.

References d, QString::null, Regular, and type.

Referenced by Qt3::QTextParagraph::drawString(), Qt3::QTextParagraph::richText(), Qt3::QTextDocument::setRichTextInternal(), and Qt3::QTextCursor::splitAndInsertEmptyParagraph().

QString QTextStringChar::anchorName  )  const
 

Definition at line 3637 of file qrichtext.cpp.

References d, QString::null, Regular, and type.

Referenced by Qt3::QTextParagraph::richText(), Qt3::QTextEdit::scrollToAnchor(), and Qt3::QTextCursor::splitAndInsertEmptyParagraph().

int Qt3::QTextStringChar::ascent  )  const [inline]
 

Definition at line 2019 of file qrichtext_p.h.

References QTextStringChar::customItem(), QTextStringChar::format(), QTextStringChar::isCustom(), and QTextCustomItem::PlaceInline.

QTextCustomItem * Qt3::QTextStringChar::customItem  )  const [inline]
 

Definition at line 2009 of file qrichtext_p.h.

References QTextStringChar::d, and QTextStringChar::isCustom().

Referenced by Qt3::QTextFormatter::formatVertically(), Qt3::QTextCursor::gotoNextLetter(), Qt3::QTextCursor::gotoPreviousLetter(), Qt3::QTextParagraph::paint(), Qt3::QTextCursor::place(), Qt3::QTextParagraph::remove(), Qt3::QTextParagraph::richText(), Qt3::QTextCursor::splitAndInsertEmptyParagraph(), and Qt3::QTextString::width().

int Qt3::QTextStringChar::descent  )  const [inline]
 

Definition at line 2024 of file qrichtext_p.h.

References QTextStringChar::format(), and QTextStringChar::isCustom().

QTextFormat* Qt3::QTextStringChar::format  )  const
 

Referenced by setAnchor(), setCustomItem(), and ~QTextStringChar().

int Qt3::QTextStringChar::height  )  const [inline]
 

Definition at line 2014 of file qrichtext_p.h.

References QTextStringChar::customItem(), QTextStringChar::format(), QTextStringChar::isCustom(), and QTextCustomItem::PlaceInline.

Referenced by Qt3::QTextFormatterBreakWords::format(), and Qt3::QTextCursor::place().

bool Qt3::QTextStringChar::isAnchor  )  const [inline]
 

Definition at line 143 of file qrichtext_p.h.

References type.

Referenced by Qt3::QTextParagraph::drawString(), Qt3::QTextFormatterBreakWords::format(), Qt3::QTextParagraph::paint(), Qt3::QTextParagraph::richText(), Qt3::QTextEdit::scrollToAnchor(), and Qt3::QTextCursor::splitAndInsertEmptyParagraph().

bool Qt3::QTextStringChar::isCustom  )  const [inline]
 

Definition at line 123 of file qrichtext_p.h.

References Custom, and type.

Referenced by Qt3::QTextFormatter::bidiReorderLine(), Qt3::QTextCursor::gotoNextLetter(), Qt3::QTextCursor::gotoPreviousLetter(), Qt3::QTextParagraph::paint(), Qt3::QTextCursor::place(), Qt3::QTextParagraph::remove(), Qt3::QTextParagraph::richText(), Qt3::QTextCursor::splitAndInsertEmptyParagraph(), and Qt3::QTextString::width().

void QTextStringChar::loseCustomItem  ) 
 

Definition at line 3623 of file qrichtext.cpp.

References Anchor, Custom, CustomAnchor, d, f, Regular, and type.

Referenced by Qt3::QTextCursor::splitAndInsertEmptyParagraph().

QTextStringChar& Qt3::QTextStringChar::operator= const QTextStringChar  )  [inline, private]
 

Definition at line 149 of file qrichtext_p.h.

void QTextStringChar::setAnchor const QString name,
const QString href
 

Definition at line 3653 of file qrichtext.cpp.

References Anchor, Custom, CustomAnchor, d, f, format(), Regular, and type.

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

void QTextStringChar::setCustomItem QTextCustomItem i  ) 
 

Definition at line 3610 of file qrichtext.cpp.

References Anchor, Custom, CustomAnchor, d, f, format(), Regular, and type.

void QTextStringChar::setFormat QTextFormat f  ) 
 

Definition at line 3597 of file qrichtext.cpp.

References d, Regular, and type.

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


Friends And Related Function Documentation

friend class QComplexText [friend]
 

Definition at line 153 of file qrichtext_p.h.

friend class QTextParagraph [friend]
 

Definition at line 154 of file qrichtext_p.h.

friend class QTextString [friend]
 

Definition at line 103 of file qrichtext_p.h.


Member Data Documentation

QChar Qt3::QTextStringChar::c
 

Definition at line 110 of file qrichtext_p.h.

Referenced by Qt3::QTextFormatter::bidiReorderLine(), Qt3::QTextString::checkBidi(), Qt3::QTextString::insert(), Qt3::QTextParagraph::paint(), Qt3::QTextParagraph::richText(), Qt3::QTextString::subString(), Qt3::QTextString::toString(), Qt3::QTextString::width(), and Qt3::QTextCursor::x().

uint Qt3::QTextStringChar::canBreak
 

Definition at line 115 of file qrichtext_p.h.

CustomData* Qt3::QTextStringChar::custom
 

Definition at line 140 of file qrichtext_p.h.

union { ... } Qt3::QTextStringChar::d
 

Referenced by anchorHref(), anchorName(), loseCustomItem(), setAnchor(), setCustomItem(), setFormat(), and ~QTextStringChar().

QTextFormat * Qt3::QTextStringChar::format [inline]
 

Definition at line 2003 of file qrichtext_p.h.

Referenced by Qt3::QTextFormatter::bidiReorderLine(), Qt3::QTextParagraph::drawString(), Qt3::QTextFormatterBreakWords::format(), Qt3::QTextString::insert(), Qt3::QTextParagraph::paint(), Qt3::QTextParagraph::richText(), Qt3::QTextCursor::splitAndInsertEmptyParagraph(), Qt3::QTextString::subString(), and Qt3::QTextString::width().

uint Qt3::QTextStringChar::hasCursor
 

Definition at line 114 of file qrichtext_p.h.

uint Qt3::QTextStringChar::lineStart
 

Definition at line 112 of file qrichtext_p.h.

Referenced by Qt3::QTextParagraph::paint(), and Qt3::QTextCursor::x().

uint Qt3::QTextStringChar::rightToLeft
 

Definition at line 113 of file qrichtext_p.h.

Referenced by Qt3::QTextFormatter::bidiReorderLine(), Qt3::QTextParagraph::paint(), Qt3::QTextCursor::place(), and Qt3::QTextCursor::x().

uint Qt3::QTextStringChar::startOfRun
 

Definition at line 117 of file qrichtext_p.h.

Referenced by Qt3::QTextFormatter::bidiReorderLine(), and Qt3::QTextParagraph::paint().

Type Qt3::QTextStringChar::type
 

Definition at line 116 of file qrichtext_p.h.

Referenced by anchorHref(), anchorName(), loseCustomItem(), setAnchor(), setCustomItem(), setFormat(), and ~QTextStringChar().

int Qt3::QTextStringChar::x
 

Definition at line 119 of file qrichtext_p.h.

Referenced by Qt3::QTextFormatter::bidiReorderLine(), Qt3::QTextDocument::drawParagraph(), Qt3::QTextEdit::ensureCursorVisible(), Qt3::QTextParagraph::format(), Qt3::QTextParagraph::paint(), Qt3::QTextCursor::place(), and Qt3::QTextCursor::x().


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