Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qdom_p.h>
Public Attributes | |
QDomNamedNodeMapPrivate * | m_attr |
Public Attributes inherited from QDomNodePrivate | |
QAtomicInt | ref |
QDomNodePrivate * | prev |
QDomNodePrivate * | next |
QDomNodePrivate * | ownerNode |
QDomNodePrivate * | first |
QDomNodePrivate * | last |
QString | name |
QString | value |
QString | prefix |
QString | namespaceURI |
bool | createdWithDom1Interface: 1 |
bool | hasParent: 1 |
int | lineNumber |
int | columnNumber |
QDomElementPrivate::QDomElementPrivate | ( | QDomDocumentPrivate * | d, |
QDomNodePrivate * | parent, | ||
const QString & | name ) |
Definition at line 3833 of file qdom.cpp.
References m_attr.
Referenced by cloneNode().
QDomElementPrivate::QDomElementPrivate | ( | QDomDocumentPrivate * | d, |
QDomNodePrivate * | parent, | ||
const QString & | nsURI, | ||
const QString & | qName ) |
Definition at line 3841 of file qdom.cpp.
References QDomNodePrivate::createdWithDom1Interface, QString::isNull(), m_attr, QDomNodePrivate::namespaceURI, QDomNodePrivate::prefix, and qt_split_namespace().
QDomElementPrivate::QDomElementPrivate | ( | QDomElementPrivate * | n, |
bool | deep ) |
Definition at line 3851 of file qdom.cpp.
References QDomNamedNodeMapPrivate::clone(), m_attr, QBasicAtomicInteger< T >::ref(), and QDomNamedNodeMapPrivate::ref.
QDomElementPrivate::~QDomElementPrivate | ( | ) |
Definition at line 3859 of file qdom.cpp.
References QBasicAtomicInteger< T >::deref(), m_attr, and QDomNamedNodeMapPrivate::ref.
Definition at line 3873 of file qdom.cpp.
References m_attr, QDomNamedNodeMapPrivate::namedItem(), and QDomNodePrivate::nodeValue().
QDomAttrPrivate * QDomElementPrivate::attributeNode | ( | const QString & | name | ) |
Definition at line 3933 of file qdom.cpp.
References m_attr, and QDomNamedNodeMapPrivate::namedItem().
QDomAttrPrivate * QDomElementPrivate::attributeNodeNS | ( | const QString & | nsURI, |
const QString & | localName ) |
Definition at line 3938 of file qdom.cpp.
References m_attr, and QDomNamedNodeMapPrivate::namedItemNS().
QString QDomElementPrivate::attributeNS | ( | const QString & | nsURI, |
const QString & | localName, | ||
const QString & | defValue ) const |
Definition at line 3882 of file qdom.cpp.
References m_attr, QDomNamedNodeMapPrivate::namedItemNS(), and QDomNodePrivate::nodeValue().
|
inline |
|
overridevirtual |
Reimplemented from QDomNodePrivate.
Definition at line 3865 of file qdom.cpp.
References QDomElementPrivate().
bool QDomElementPrivate::hasAttribute | ( | const QString & | name | ) |
Definition at line 3972 of file qdom.cpp.
References QDomNamedNodeMapPrivate::contains(), and m_attr.
Definition at line 3977 of file qdom.cpp.
References QDomNamedNodeMapPrivate::containsNS(), and m_attr.
|
inline |
Definition at line 327 of file qdom_p.h.
References QDomNamedNodeMapPrivate::length(), and m_attr.
|
inlineoverridevirtual |
Reimplemented from QDomNodePrivate.
Definition at line 328 of file qdom_p.h.
References QDomNode::ElementNode.
Definition at line 3926 of file qdom.cpp.
References m_attr, and QDomNamedNodeMapPrivate::removeNamedItem().
QDomAttrPrivate * QDomElementPrivate::removeAttributeNode | ( | QDomAttrPrivate * | oldAttr | ) |
Definition at line 3967 of file qdom.cpp.
References m_attr, and QDomNamedNodeMapPrivate::removeNamedItem().
|
overridevirtual |
depth is used for indentation, it seems.
If we still have QDom, optimize this so that we only declare namespaces that are not yet declared. We loose default namespace mappings, so maybe we should rather store the information that we get from startPrefixMapping()/endPrefixMapping() and use them. Modifications becomes more complex then, however.
We cannot do this in a patch release because it would require too invasive changes, and hence possibly behavioral changes.
Reimplemented from QDomNodePrivate.
Definition at line 3998 of file qdom.cpp.
References QString::compare(), encodeText(), Qt::endl(), QString::isEmpty(), QMultiHash< Key, T >::isEmpty(), QString::isNull(), QDomNodePrivate::isText(), QDomNodePrivate::last, m_attr, QDomNamedNodeMapPrivate::map, QDomNodePrivate::name, QDomNodePrivate::namespaceURI, QDomNodePrivate::next, QDomNodePrivate::prefix, QDomNodePrivate::prev, Q_UNUSED, QStringLiteral, QString::reserve(), QDomNodePrivate::save(), and QMultiHash< Key, T >::size().
Definition at line 3891 of file qdom.cpp.
References m_attr, QDomNamedNodeMapPrivate::namedItem(), QDomNodePrivate::ownerDocument(), QDomNamedNodeMapPrivate::setNamedItem(), and QDomNodePrivate::setNodeValue().
QDomAttrPrivate * QDomElementPrivate::setAttributeNode | ( | QDomAttrPrivate * | newAttr | ) |
Definition at line 3943 of file qdom.cpp.
References m_attr, QDomNamedNodeMapPrivate::namedItem(), QDomNamedNodeMapPrivate::setNamedItem(), and QDomNodePrivate::setParent().
QDomAttrPrivate * QDomElementPrivate::setAttributeNodeNS | ( | QDomAttrPrivate * | newAttr | ) |
Definition at line 3955 of file qdom.cpp.
References m_attr, QDomNamedNodeMapPrivate::namedItemNS(), and QDomNamedNodeMapPrivate::setNamedItem().
void QDomElementPrivate::setAttributeNS | ( | const QString & | nsURI, |
const QString & | qName, | ||
const QString & | newValue ) |
Definition at line 3907 of file qdom.cpp.
References m_attr, QDomNamedNodeMapPrivate::namedItemNS(), QDomNodePrivate::ownerDocument(), QDomNodePrivate::prefix, qt_split_namespace(), QDomNamedNodeMapPrivate::setNamedItem(), and QDomNodePrivate::setNodeValue().
Referenced by QDomBuilder::startElement().
QString QDomElementPrivate::text | ( | ) |
Definition at line 3982 of file qdom.cpp.
References QDomNodePrivate::first, QDomNodePrivate::nodeValue(), and text().
Referenced by text().
QDomNamedNodeMapPrivate* QDomElementPrivate::m_attr |
Definition at line 333 of file qdom_p.h.
Referenced by QDomElementPrivate(), QDomElementPrivate(), QDomElementPrivate(), ~QDomElementPrivate(), attribute(), attributeNode(), attributeNodeNS(), attributeNS(), attributes(), hasAttribute(), hasAttributeNS(), hasAttributes(), removeAttribute(), removeAttributeNode(), save(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), and setAttributeNS().