160 if(
d->canIndent.top())
165 if(!
d->characterBuffer.isEmpty())
169 d->characterBuffer.clear();
181 d->canIndent.push(
true);
193 d->indentString.chop(
d->indentationDepth);
195 if(!
d->hasClosedElement.top().second)
196 d->canIndent.top() =
false;
201 d->canIndent.top() =
true;
222 d->canIndent.top() =
true;
231 d->isPreviousAtomic =
false;
244 d->canIndent.top() =
true;
253 d->canIndent.top() =
false;
289 if(!
d->characterBuffer.isEmpty())
309 d->canIndent.top() =
false;
326 return d->indentationDepth;
338 d->indentationDepth = depth;
The QVariant class acts like a union for the most common Qt data types.
QString toString() const
Returns a copy of the string reference as a QString object.
virtual void attribute(const QXmlName &name, const QStringRef &value)
Reimplemented Function
#define QT_END_NAMESPACE
This macro expands to.
virtual void characters(const QStringRef &value)
Reimplemented Function
virtual void comment(const QString &value)
Reimplemented Function
The QString class provides a Unicode character string.
virtual void endDocument()
Reimplemented Function
virtual void endElement()
Reimplemented Function
virtual void processingInstruction(const QXmlName &name, const QString &value)
Reimplemented Function
virtual void startOfSequence()
Reimplemented Function
void reserve(int size)
Attempts to allocate memory for at least size characters.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QXmlSerializer class is an implementation of QAbstractXmlReceiver for transforming XQuery output ...
The namespace for the internal API of QtXmlPatterns.
QString stringValue() const
Returns the string value of this Item.
virtual void item(const QPatternist::Item &item)
void push(const T &t)
Adds element t to the top of the stack.
The QStringRef class provides a thin wrapper around QString substrings.
void resize(int size)
Sets the size of the string to size characters.
bool isAtomicValue() const
Determines whether this item is an atomic value, or a node.
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
Represents an item in the XPath 2.0 Data Model.
virtual void endOfSequence()
Reimplemented Function
virtual void atomicValue(const QVariant &value)
Reimplemented Function
virtual void startDocument()
Reimplemented Function
The QIODevice class is the base interface class of all I/O devices in Qt.
static bool isWhitespaceOnly(const QStringRef &string)
Determines whether consists only of whitespace. Characters considered whitespace are the ones for whi...
virtual void startElement(const QXmlName &name)
Reimplemented Function
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
The QXmlQuery class performs XQueries on XML data, or on non-XML data modeled to look like XML...