112 if ( a0 < 0 || a0 > sipCpp->size() )
114 PyErr_SetString( PyExc_IndexError, QByteArray::number( a0 ) );
119 sipCpp->insert( a0, *a1 );
134 void reserve(
int count );
151 if ( a0 < 0 || a0 >= sipCpp->size() )
153 PyErr_SetString( PyExc_KeyError, QByteArray::number( a0 ) );
169 SIP_SSIZE_T idx = sipConvertFromSequenceIndex( a0, sipCpp->size() );
185 sipRes = sipCpp->size();
192 QStringList toPlainText()
const;
203 void splitLines(
const QString &wrapCharacter,
int autoWrapLength = 0,
bool useMaxLineLengthWhenAutoWrapping =
true );
214 QVector< QgsTextBlock >::const_iterator begin()
const;
215 QVector< QgsTextBlock >::const_iterator end()
const;
221 QVector< QgsTextBlock > mBlocks;
Represents a block of text consisting of one or more QgsTextFragment objects.
Represents a document consisting of one or more QgsTextBlock objects.
Stores a fragment of document along with formatting overrides to be used when rendering the fragment.