Qt 4.8
Public Functions | Public Variables | List of all members
QXmlFormatterPrivate Class Reference
Inheritance diagram for QXmlFormatterPrivate:
QXmlSerializerPrivate QAbstractXmlReceiverPrivate

Public Functions

 QXmlFormatterPrivate (const QXmlQuery &q, QIODevice *const outputDevice)
 
- Public Functions inherited from QXmlSerializerPrivate
 QXmlSerializerPrivate (const QXmlQuery &q, QIODevice *outputDevice)
 
void write (const char c)
 
- Public Functions inherited from QAbstractXmlReceiverPrivate
virtual ~QAbstractXmlReceiverPrivate ()
 

Public Variables

QStack< bool > canIndent
 
QString characterBuffer
 
int currentDepth
 
int indentationDepth
 
QString indentString
 
- Public Variables inherited from QXmlSerializerPrivate
const QTextCodeccodec
 
QTextCodec::ConverterState converterState
 
QIODevicedevice
 
QStack< QPair< QXmlName, bool > > hasClosedElement
 
bool isPreviousAtomic
 
QHash< QXmlName::Code, QByteArraynameCache
 
QStack< QVector< QXmlName > > namespaces
 
const QPatternist::NamePool::Ptr np
 
const QXmlQuery query
 
QXmlSerializer::State state
 

Detailed Description

Definition at line 52 of file qxmlformatter.cpp.

Constructors and Destructors

◆ QXmlFormatterPrivate()

QXmlFormatterPrivate::QXmlFormatterPrivate ( const QXmlQuery q,
QIODevice *const  outputDevice 
)
inline

Definition at line 70 of file qxmlformatter.cpp.

71  : QXmlSerializerPrivate(query, outputDevice)
72  , indentationDepth(4)
73  , currentDepth(0)
74 {
77  indentString[0] = QLatin1Char('\n');
78  canIndent.push(false);
79 }
QStack< bool > canIndent
void reserve(int size)
Attempts to allocate memory for at least size characters.
Definition: qstring.h:881
void push(const T &t)
Adds element t to the top of the stack.
Definition: qstack.h:60
void resize(int size)
Sets the size of the string to size characters.
Definition: qstring.cpp:1353
QXmlSerializerPrivate(const QXmlQuery &q, QIODevice *outputDevice)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55

Properties

◆ canIndent

QStack<bool> QXmlFormatterPrivate::canIndent

Whether we /have/ sent nodes like processing instructions and comments to QXmlSerializer.

Definition at line 67 of file qxmlformatter.cpp.

Referenced by QXmlFormatterPrivate().

◆ characterBuffer

QString QXmlFormatterPrivate::characterBuffer

Definition at line 60 of file qxmlformatter.cpp.

◆ currentDepth

int QXmlFormatterPrivate::currentDepth

Definition at line 59 of file qxmlformatter.cpp.

◆ indentationDepth

int QXmlFormatterPrivate::indentationDepth

Definition at line 58 of file qxmlformatter.cpp.

◆ indentString

QString QXmlFormatterPrivate::indentString

Definition at line 61 of file qxmlformatter.cpp.

Referenced by QXmlFormatterPrivate().


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