Cutelee 6.1.0
Cutelee::PlainTextMarkupBuilderPrivate Class Reference

Public Member Functions

 PlainTextMarkupBuilderPrivate (PlainTextMarkupBuilder *b)
QString getLetterString (int itemNumber)
QString getReferences ()
QString getRomanString (int itemNumber)

Public Attributes

QString activeLink
QList< int > currentListItemNumbers
QList< QTextListFormat::StylecurrentListItemStyles
QString m_text
QStringList m_urls
PlainTextMarkupBuilderq_ptr

Detailed Description

Definition at line 26 of file plaintextmarkupbuilder.cpp.

Constructor & Destructor Documentation

◆ PlainTextMarkupBuilderPrivate()

Cutelee::PlainTextMarkupBuilderPrivate::PlainTextMarkupBuilderPrivate ( PlainTextMarkupBuilder * b)
inline

Definition at line 29 of file plaintextmarkupbuilder.cpp.

Member Function Documentation

◆ getLetterString()

QString PlainTextMarkupBuilderPrivate::getLetterString ( int itemNumber)

Get a letter string to represent a number.

The numbers 1-26 are represented by a-z, and 27-52 by aa-az, 53-79 by ba-bz etc.

Parameters
Thenumber to convert
Returns
The letter string representation of the number.

Definition at line 107 of file plaintextmarkupbuilder.cpp.

References QString::prepend().

◆ getReferences()

QString PlainTextMarkupBuilderPrivate::getReferences ( )

Gets a block of references in the body of the text. This is an ordered list of links and images in the text.

Definition at line 129 of file plaintextmarkupbuilder.cpp.

References QString::append().

◆ getRomanString()

QString PlainTextMarkupBuilderPrivate::getRomanString ( int itemNumber)

Definition at line 66 of file plaintextmarkupbuilder.cpp.

Member Data Documentation

◆ activeLink

QString Cutelee::PlainTextMarkupBuilderPrivate::activeLink

Definition at line 54 of file plaintextmarkupbuilder.cpp.

◆ currentListItemNumbers

QList<int> Cutelee::PlainTextMarkupBuilderPrivate::currentListItemNumbers

Definition at line 52 of file plaintextmarkupbuilder.cpp.

◆ currentListItemStyles

QList<QTextListFormat::Style> Cutelee::PlainTextMarkupBuilderPrivate::currentListItemStyles

Definition at line 51 of file plaintextmarkupbuilder.cpp.

◆ m_text

QString Cutelee::PlainTextMarkupBuilderPrivate::m_text

Definition at line 56 of file plaintextmarkupbuilder.cpp.

◆ m_urls

QStringList Cutelee::PlainTextMarkupBuilderPrivate::m_urls

Definition at line 50 of file plaintextmarkupbuilder.cpp.

◆ q_ptr

PlainTextMarkupBuilder* Cutelee::PlainTextMarkupBuilderPrivate::q_ptr

Definition at line 58 of file plaintextmarkupbuilder.cpp.