QtBase  v6.3.1
Public Types | Public Member Functions | Public Attributes | List of all members
QTextFormatCollection Class Reference

#include <qtextformat_p.h>

Collaboration diagram for QTextFormatCollection:
Collaboration graph
[legend]

Public Types

typedef QList< QTextFormatFormatVector
 

Public Member Functions

 QTextFormatCollection ()
 
 ~QTextFormatCollection ()
 
void clear ()
 
QTextFormat objectFormat (int objectIndex) const
 
void setObjectFormat (int objectIndex, const QTextFormat &format)
 
int objectFormatIndex (int objectIndex) const
 
void setObjectFormatIndex (int objectIndex, int formatIndex)
 
int createObjectIndex (const QTextFormat &f)
 
int indexForFormat (const QTextFormat &f)
 
bool hasFormatCached (const QTextFormat &format) const
 
QTextFormat format (int idx) const
 
QTextBlockFormat blockFormat (int index) const
 
QTextCharFormat charFormat (int index) const
 
QTextListFormat listFormat (int index) const
 
QTextTableFormat tableFormat (int index) const
 
QTextImageFormat imageFormat (int index) const
 
int numFormats () const
 
QFont defaultFont () const
 
void setDefaultFont (const QFont &f)
 
void setSuperScriptBaseline (qreal baseline)
 
void setSubScriptBaseline (qreal baseline)
 
void setBaselineOffset (qreal baseline)
 
QTextCharFormat defaultTextFormat () const
 

Public Attributes

FormatVector formats
 
QList< qint32objFormats
 
QMultiHash< size_t, int > hashes
 

Detailed Description

Definition at line 60 of file qtextformat_p.h.

Member Typedef Documentation

◆ FormatVector

Definition at line 95 of file qtextformat_p.h.

Constructor & Destructor Documentation

◆ QTextFormatCollection()

QTextFormatCollection::QTextFormatCollection ( )
inline

Definition at line 63 of file qtextformat_p.h.

◆ ~QTextFormatCollection()

QTextFormatCollection::~QTextFormatCollection ( )

Definition at line 3952 of file qtextformat.cpp.

Member Function Documentation

◆ blockFormat()

QTextBlockFormat QTextFormatCollection::blockFormat ( int  index) const
inline

Definition at line 82 of file qtextformat_p.h.

Here is the caller graph for this function:

◆ charFormat()

QTextCharFormat QTextFormatCollection::charFormat ( int  index) const
inline

Definition at line 84 of file qtextformat_p.h.

Here is the caller graph for this function:

◆ clear()

void QTextFormatCollection::clear ( )

Definition at line 3956 of file qtextformat.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createObjectIndex()

int QTextFormatCollection::createObjectIndex ( const QTextFormat f)

Definition at line 4017 of file qtextformat.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ defaultFont()

QFont QTextFormatCollection::defaultFont ( ) const
inline

Definition at line 101 of file qtextformat_p.h.

Here is the caller graph for this function:

◆ defaultTextFormat()

QTextCharFormat QTextFormatCollection::defaultTextFormat ( ) const
inline

Definition at line 108 of file qtextformat_p.h.

◆ format()

QTextFormat QTextFormatCollection::format ( int  idx) const

Definition at line 4024 of file qtextformat.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasFormatCached()

bool QTextFormatCollection::hasFormatCached ( const QTextFormat format) const

Definition at line 3992 of file qtextformat.cpp.

◆ imageFormat()

QTextImageFormat QTextFormatCollection::imageFormat ( int  index) const
inline

Definition at line 90 of file qtextformat_p.h.

◆ indexForFormat()

int QTextFormatCollection::indexForFormat ( const QTextFormat f)

Definition at line 3963 of file qtextformat.cpp.

Here is the caller graph for this function:

◆ listFormat()

QTextListFormat QTextFormatCollection::listFormat ( int  index) const
inline

Definition at line 86 of file qtextformat_p.h.

◆ numFormats()

int QTextFormatCollection::numFormats ( ) const
inline

Definition at line 93 of file qtextformat_p.h.

◆ objectFormat()

QTextFormat QTextFormatCollection::objectFormat ( int  objectIndex) const
inline

Definition at line 68 of file qtextformat_p.h.

Here is the caller graph for this function:

◆ objectFormatIndex()

int QTextFormatCollection::objectFormatIndex ( int  objectIndex) const

Definition at line 4005 of file qtextformat.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setBaselineOffset()

void QTextFormatCollection::setBaselineOffset ( qreal  baseline)
inline

Definition at line 106 of file qtextformat_p.h.

◆ setDefaultFont()

void QTextFormatCollection::setDefaultFont ( const QFont f)

Definition at line 4032 of file qtextformat.cpp.

Here is the call graph for this function:

◆ setObjectFormat()

void QTextFormatCollection::setObjectFormat ( int  objectIndex,
const QTextFormat format 
)
inline

Definition at line 70 of file qtextformat_p.h.

◆ setObjectFormatIndex()

void QTextFormatCollection::setObjectFormatIndex ( int  objectIndex,
int  formatIndex 
)

Definition at line 4012 of file qtextformat.cpp.

Here is the caller graph for this function:

◆ setSubScriptBaseline()

void QTextFormatCollection::setSubScriptBaseline ( qreal  baseline)
inline

Definition at line 105 of file qtextformat_p.h.

◆ setSuperScriptBaseline()

void QTextFormatCollection::setSuperScriptBaseline ( qreal  baseline)
inline

Definition at line 104 of file qtextformat_p.h.

◆ tableFormat()

QTextTableFormat QTextFormatCollection::tableFormat ( int  index) const
inline

Definition at line 88 of file qtextformat_p.h.

Member Data Documentation

◆ formats

FormatVector QTextFormatCollection::formats

Definition at line 97 of file qtextformat_p.h.

◆ hashes

QMultiHash<size_t,int> QTextFormatCollection::hashes

Definition at line 99 of file qtextformat_p.h.

◆ objFormats

QList<qint32> QTextFormatCollection::objFormats

Definition at line 98 of file qtextformat_p.h.


The documentation for this class was generated from the following files: