summaryrefslogtreecommitdiffstats
path: root/src/xml/tqdom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/tqdom.cpp')
-rw-r--r--src/xml/tqdom.cpp450
1 files changed, 225 insertions, 225 deletions
diff --git a/src/xml/tqdom.cpp b/src/xml/tqdom.cpp
index 2d8e684c8..ed67c2ce2 100644
--- a/src/xml/tqdom.cpp
+++ b/src/xml/tqdom.cpp
@@ -131,7 +131,7 @@ public:
void setOwnerDocument( TQDomDocumentPrivate* doc );
virtual TQDomNamedNodeMapPrivate* attributes();
- virtual bool hasAttributes() { return FALSE; }
+ virtual bool hasAttributes() { return false; }
virtual TQDomNodePrivate* insertBefore( TQDomNodePrivate* newChild, TQDomNodePrivate* refChild );
virtual TQDomNodePrivate* insertAfter( TQDomNodePrivate* newChild, TQDomNodePrivate* refChild );
virtual TQDomNodePrivate* replaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild );
@@ -140,31 +140,31 @@ public:
TQDomNodePrivate* namedItem( const TQString& name );
- virtual TQDomNodePrivate* cloneNode( bool deep = TRUE );
+ virtual TQDomNodePrivate* cloneNode( bool deep = true );
virtual void normalize();
virtual void clear();
TQDomNodePrivate* parent() { return hasParent ? ownerNode : 0; }
- void setParent( TQDomNodePrivate *p ) { ownerNode = p; hasParent = TRUE; }
+ void setParent( TQDomNodePrivate *p ) { ownerNode = p; hasParent = true; }
void setNoParent() {
ownerNode = hasParent ? (TQDomNodePrivate*)ownerDocument() : 0;
- hasParent = FALSE;
+ hasParent = false;
}
// Dynamic cast
- virtual bool isAttr() { return FALSE; }
- virtual bool isCDATASection() { return FALSE; }
- virtual bool isDocumentFragment() { return FALSE; }
- virtual bool isDocument() { return FALSE; }
- virtual bool isDocumentType() { return FALSE; }
- virtual bool isElement() { return FALSE; }
- virtual bool isEntityReference() { return FALSE; }
- virtual bool isText() { return FALSE; }
- virtual bool isEntity() { return FALSE; }
- virtual bool isNotation() { return FALSE; }
- virtual bool isProcessingInstruction() { return FALSE; }
- virtual bool isCharacterData() { return FALSE; }
- virtual bool isComment() { return FALSE; }
+ virtual bool isAttr() { return false; }
+ virtual bool isCDATASection() { return false; }
+ virtual bool isDocumentFragment() { return false; }
+ virtual bool isDocument() { return false; }
+ virtual bool isDocumentType() { return false; }
+ virtual bool isElement() { return false; }
+ virtual bool isEntityReference() { return false; }
+ virtual bool isText() { return false; }
+ virtual bool isEntity() { return false; }
+ virtual bool isNotation() { return false; }
+ virtual bool isProcessingInstruction() { return false; }
+ virtual bool isCharacterData() { return false; }
+ virtual bool isComment() { return false; }
virtual TQDomNode::NodeType nodeType() const { return TQDomNode::BaseNode; }
virtual void save( TQTextStream&, int, int ) const;
@@ -230,12 +230,12 @@ public:
void setReadOnly( bool r ) { readonly = r; }
bool isAppendToParent() { return appendToParent; }
/**
- * If TRUE, then the node will redirect insert/remove calls
+ * If true, then the node will redirect insert/remove calls
* to its parent by calling TQDomNodePrivate::appendChild or removeChild.
* In addition the map wont increase or decrease the reference count
* of the nodes it contains.
*
- * By default this value is FALSE and the map will handle reference counting
+ * By default this value is false and the map will handle reference counting
* by itself.
*/
void setAppendToParent( bool b ) { appendToParent = b; }
@@ -262,14 +262,14 @@ public:
void init();
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
+ TQDomNodePrivate* cloneNode( bool deep = true );
TQDomNodePrivate* insertBefore( TQDomNodePrivate* newChild, TQDomNodePrivate* refChild );
TQDomNodePrivate* insertAfter( TQDomNodePrivate* newChild, TQDomNodePrivate* refChild );
TQDomNodePrivate* replaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild );
TQDomNodePrivate* removeChild( TQDomNodePrivate* oldChild );
TQDomNodePrivate* appendChild( TQDomNodePrivate* newChild );
- bool isDocumentType() { return TRUE; }
+ bool isDocumentType() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::DocumentTypeNode; }
void save( TQTextStream& s, int, int ) const;
@@ -290,8 +290,8 @@ public:
~TQDomDocumentFragmentPrivate();
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isDocumentFragment() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isDocumentFragment() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::DocumentFragmentNode; }
};
@@ -310,9 +310,9 @@ public:
void replaceData( unsigned long offset, unsigned long count, const TQString& arg );
// Reimplemented from TQDomNodePrivate
- bool isCharacterData() { return TRUE; }
+ bool isCharacterData() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::CharacterDataNode; }
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
+ TQDomNodePrivate* cloneNode( bool deep = true );
};
@@ -326,8 +326,8 @@ public:
TQDomTextPrivate* splitText( int offset );
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isText() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isText() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::TextNode; }
void save( TQTextStream& s, int, int ) const;
@@ -345,8 +345,8 @@ public:
// Reimplemented from TQDomNodePrivate
void setNodeValue( const TQString& v );
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isAttr() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isAttr() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::AttributeNode; }
void save( TQTextStream& s, int, int ) const;
@@ -380,9 +380,9 @@ public:
// Reimplemented from TQDomNodePrivate
TQDomNamedNodeMapPrivate* attributes() { return m_attr; }
bool hasAttributes() { return ( m_attr->length() > 0 ); }
- bool isElement() { return TRUE; }
+ bool isElement() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::ElementNode; }
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
+ TQDomNodePrivate* cloneNode( bool deep = true );
void save( TQTextStream& s, int, int ) const;
// Variables
@@ -398,8 +398,8 @@ public:
~TQDomCommentPrivate();
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isComment() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isComment() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::CommentNode; }
void save( TQTextStream& s, int, int ) const;
@@ -413,8 +413,8 @@ public:
~TQDomCDATASectionPrivate();
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isCDATASection() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isCDATASection() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::CDATASectionNode; }
void save( TQTextStream& s, int, int ) const;
@@ -429,8 +429,8 @@ public:
~TQDomNotationPrivate();
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isNotation() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isNotation() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::NotationNode; }
void save( TQTextStream& s, int, int ) const;
@@ -448,8 +448,8 @@ public:
~TQDomEntityPrivate();
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isEntity() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isEntity() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::EntityNode; }
void save( TQTextStream& s, int, int ) const;
@@ -467,8 +467,8 @@ public:
~TQDomEntityReferencePrivate();
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isEntityReference() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isEntityReference() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::EntityReferenceNode; }
void save( TQTextStream& s, int, int ) const;
};
@@ -482,8 +482,8 @@ public:
~TQDomProcessingInstructionPrivate();
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isProcessingInstruction() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isProcessingInstruction() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::ProcessingInstructionNode; }
void save( TQTextStream& s, int, int ) const;
};
@@ -520,8 +520,8 @@ public:
TQDomNodePrivate* importNode( const TQDomNodePrivate* importedNode, bool deep );
// Reimplemented from TQDomNodePrivate
- TQDomNodePrivate* cloneNode( bool deep = TRUE );
- bool isDocument() { return TRUE; }
+ TQDomNodePrivate* cloneNode( bool deep = true );
+ bool isDocument() { return true; }
TQDomNode::NodeType nodeType() const { return TQDomNode::DocumentNode; }
void clear();
void save( TQTextStream&, int, int ) const;
@@ -681,8 +681,8 @@ TQDomImplementation& TQDomImplementation::operator= ( const TQDomImplementation&
}
/*!
- Returns TRUE if \a x and this DOM implementation object were
- created from the same TQDomDocument; otherwise returns FALSE.
+ Returns true if \a x and this DOM implementation object were
+ created from the same TQDomDocument; otherwise returns false.
*/
bool TQDomImplementation::operator==( const TQDomImplementation& x ) const
{
@@ -690,8 +690,8 @@ bool TQDomImplementation::operator==( const TQDomImplementation& x ) const
}
/*!
- Returns TRUE if \a x and this DOM implementation object were
- created from different TQDomDocuments; otherwise returns FALSE.
+ Returns true if \a x and this DOM implementation object were
+ created from different TQDomDocuments; otherwise returns false.
*/
bool TQDomImplementation::operator!=( const TQDomImplementation& x ) const
{
@@ -708,8 +708,8 @@ TQDomImplementation::~TQDomImplementation()
}
/*!
- The function returns TRUE if TQDom implements the requested \a
- version of a \a feature; otherwise returns FALSE.
+ The function returns true if TQDom implements the requested \a
+ version of a \a feature; otherwise returns false.
The currently supported features and their versions:
\table
@@ -721,11 +721,11 @@ bool TQDomImplementation::hasFeature( const TQString& feature, const TQString& v
{
if ( feature == "XML" ) {
if ( version.isEmpty() || version == "1.0" ) {
- return TRUE;
+ return true;
}
}
// ### add DOM level 2 features
- return FALSE;
+ return false;
}
/*!
@@ -780,8 +780,8 @@ TQDomDocument TQDomImplementation::createDocument( const TQString& nsURI, const
}
/*!
- Returns FALSE if the object was created by
- TQDomDocument::implementation(); otherwise returns TRUE.
+ Returns false if the object was created by
+ TQDomDocument::implementation(); otherwise returns true.
*/
bool TQDomImplementation::isNull()
{
@@ -980,21 +980,21 @@ TQDomNodeList& TQDomNodeList::operator= ( const TQDomNodeList& n )
}
/*!
- Returns TRUE if the node list \a n and this node list are equal;
- otherwise returns FALSE.
+ Returns true if the node list \a n and this node list are equal;
+ otherwise returns false.
*/
bool TQDomNodeList::operator== ( const TQDomNodeList& n ) const
{
if ( impl == n.impl )
- return TRUE;
+ return true;
if ( !impl || !n.impl )
- return FALSE;
+ return false;
return (*impl == *n.impl);
}
/*!
- Returns TRUE the node list \a n and this node list are not equal;
- otherwise returns FALSE.
+ Returns true the node list \a n and this node list are not equal;
+ otherwise returns false.
*/
bool TQDomNodeList::operator!= ( const TQDomNodeList& n ) const
{
@@ -1015,7 +1015,7 @@ TQDomNodeList::~TQDomNodeList()
If \a index is negative or if \a index >= length() then a null
node is returned (i.e. a node for which TQDomNode::isNull() returns
- TRUE).
+ true).
\sa count()
*/
@@ -1057,7 +1057,7 @@ uint TQDomNodeList::length() const
inline void TQDomNodePrivate::setOwnerDocument( TQDomDocumentPrivate* doc )
{
ownerNode = doc;
- hasParent = FALSE;
+ hasParent = false;
}
TQDomNodePrivate::TQDomNodePrivate( TQDomDocumentPrivate* doc, TQDomNodePrivate *par )
@@ -1070,7 +1070,7 @@ TQDomNodePrivate::TQDomNodePrivate( TQDomDocumentPrivate* doc, TQDomNodePrivate
next = 0;
first = 0;
last = 0;
- createdWithDom1Interface = TRUE;
+ createdWithDom1Interface = true;
}
TQDomNodePrivate::TQDomNodePrivate( TQDomNodePrivate* n, bool deep )
@@ -1091,7 +1091,7 @@ TQDomNodePrivate::TQDomNodePrivate( TQDomNodePrivate* n, bool deep )
return;
for ( TQDomNodePrivate* x = n->first; x; x = x->next )
- appendChild( x->cloneNode( TRUE ) );
+ appendChild( x->cloneNode( true ) );
}
TQDomNodePrivate::~TQDomNodePrivate()
@@ -1664,8 +1664,8 @@ TQDomNode& TQDomNode::operator= ( const TQDomNode& n )
}
/*!
- Returns TRUE if \a n and this DOM node are equal; otherwise
- returns FALSE.
+ Returns true if \a n and this DOM node are equal; otherwise
+ returns false.
*/
bool TQDomNode::operator== ( const TQDomNode& n ) const
{
@@ -1673,8 +1673,8 @@ bool TQDomNode::operator== ( const TQDomNode& n ) const
}
/*!
- Returns TRUE if \a n and this DOM node are not equal; otherwise
- returns FALSE.
+ Returns true if \a n and this DOM node are not equal; otherwise
+ returns false.
*/
bool TQDomNode::operator!= ( const TQDomNode& n ) const
{
@@ -1795,7 +1795,7 @@ TQDomNode::NodeType TQDomNode::nodeType() const
/*!
Returns the parent node. If this node has no parent, a null node
- is returned (i.e. a node for which isNull() returns TRUE).
+ is returned (i.e. a node for which isNull() returns true).
*/
TQDomNode TQDomNode::parentNode() const
{
@@ -1932,9 +1932,9 @@ TQDomDocument TQDomNode::ownerDocument() const
/*!
Creates a deep (not shallow) copy of the TQDomNode.
- If \a deep is TRUE, then the cloning is done recursively which
+ If \a deep is true, then the cloning is done recursively which
means that all the node's children are deep copied too. If \a deep
- is FALSE only the node itself is copied and the copy will have no
+ is false only the node itself is copied and the copy will have no
child nodes.
*/
TQDomNode TQDomNode::cloneNode( bool deep ) const
@@ -1958,9 +1958,9 @@ void TQDomNode::normalize()
}
/*!
- Returns TRUE if the DOM implementation implements the feature \a
+ Returns true if the DOM implementation implements the feature \a
feature and this feature is supported by this node in the version
- \a version; otherwise returns FALSE.
+ \a version; otherwise returns false.
\sa TQDomImplementation::hasFeature()
*/
@@ -2058,14 +2058,14 @@ TQString TQDomNode::localName() const
}
/*!
- Returns TRUE if the node has attributes; otherwise returns FALSE.
+ Returns true if the node has attributes; otherwise returns false.
\sa attributes()
*/
bool TQDomNode::hasAttributes() const
{
if ( !impl )
- return FALSE;
+ return false;
return IMPL->hasAttributes();
}
@@ -2202,19 +2202,19 @@ TQDomNode TQDomNode::appendChild( const TQDomNode& newChild )
}
/*!
- Returns TRUE if the node has one or more children; otherwise
- returns FALSE.
+ Returns true if the node has one or more children; otherwise
+ returns false.
*/
bool TQDomNode::hasChildNodes() const
{
if ( !impl )
- return FALSE;
+ return false;
return IMPL->first != 0;
}
/*!
- Returns TRUE if this node is null (i.e. if it has no type or
- contents); otherwise returns FALSE.
+ Returns true if this node is null (i.e. if it has no type or
+ contents); otherwise returns false.
*/
bool TQDomNode::isNull() const
{
@@ -2274,9 +2274,9 @@ TQTextStream& operator<<( TQTextStream& str, const TQDomNode& node )
}
/*!
- Returns TRUE if the node is an attribute; otherwise returns FALSE.
+ Returns true if the node is an attribute; otherwise returns false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomAttribute; you can get the TQDomAttribute with
toAttribute().
@@ -2286,14 +2286,14 @@ bool TQDomNode::isAttr() const
{
if(impl)
return impl->isAttr();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is a CDATA section; otherwise returns
- FALSE.
+ Returns true if the node is a CDATA section; otherwise returns
+ false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomCDATASection; you can get the TQDomCDATASection with
toCDATASection().
@@ -2303,14 +2303,14 @@ bool TQDomNode::isCDATASection() const
{
if(impl)
return impl->isCDATASection();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is a document fragment; otherwise returns
- FALSE.
+ Returns true if the node is a document fragment; otherwise returns
+ false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomDocumentFragment; you can get the TQDomDocumentFragment
with toDocumentFragment().
@@ -2320,13 +2320,13 @@ bool TQDomNode::isDocumentFragment() const
{
if(impl)
return impl->isDocumentFragment();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is a document; otherwise returns FALSE.
+ Returns true if the node is a document; otherwise returns false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomDocument; you can get the TQDomDocument with toDocument().
\sa toDocument()
@@ -2335,14 +2335,14 @@ bool TQDomNode::isDocument() const
{
if(impl)
return impl->isDocument();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is a document type; otherwise returns
- FALSE.
+ Returns true if the node is a document type; otherwise returns
+ false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomDocumentType; you can get the TQDomDocumentType with
toDocumentType().
@@ -2352,13 +2352,13 @@ bool TQDomNode::isDocumentType() const
{
if(impl)
return impl->isDocumentType();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is an element; otherwise returns FALSE.
+ Returns true if the node is an element; otherwise returns false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomElement; you can get the TQDomElement with toElement().
\sa toElement()
@@ -2367,14 +2367,14 @@ bool TQDomNode::isElement() const
{
if(impl)
return impl->isElement();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is an entity reference; otherwise returns
- FALSE.
+ Returns true if the node is an entity reference; otherwise returns
+ false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomEntityReference; you can get the TQDomEntityReference with
toEntityReference().
@@ -2384,13 +2384,13 @@ bool TQDomNode::isEntityReference() const
{
if(impl)
return impl->isEntityReference();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is a text node; otherwise returns FALSE.
+ Returns true if the node is a text node; otherwise returns false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomText; you can get the TQDomText with toText().
\sa toText()
@@ -2399,13 +2399,13 @@ bool TQDomNode::isText() const
{
if(impl)
return impl->isText();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is an entity; otherwise returns FALSE.
+ Returns true if the node is an entity; otherwise returns false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomEntity; you can get the TQDomEntity with toEntity().
\sa toEntity()
@@ -2414,13 +2414,13 @@ bool TQDomNode::isEntity() const
{
if(impl)
return impl->isEntity();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is a notation; otherwise returns FALSE.
+ Returns true if the node is a notation; otherwise returns false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomNotation; you can get the TQDomNotation with toNotation().
\sa toNotation()
@@ -2429,14 +2429,14 @@ bool TQDomNode::isNotation() const
{
if(impl)
return impl->isNotation();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is a processing instruction; otherwise
- returns FALSE.
+ Returns true if the node is a processing instruction; otherwise
+ returns false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomProcessingInstruction; you can get the
TQProcessingInstruction with toProcessingInstruction().
@@ -2446,14 +2446,14 @@ bool TQDomNode::isProcessingInstruction() const
{
if(impl)
return impl->isProcessingInstruction();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is a character data node; otherwise
- returns FALSE.
+ Returns true if the node is a character data node; otherwise
+ returns false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomCharacterData; you can get the TQDomCharacterData with
toCharacterData().
@@ -2463,13 +2463,13 @@ bool TQDomNode::isCharacterData() const
{
if(impl)
return impl->isCharacterData();
- return FALSE;
+ return false;
}
/*!
- Returns TRUE if the node is a comment; otherwise returns FALSE.
+ Returns true if the node is a comment; otherwise returns false.
- If this function returns TRUE, it does not imply that this object
+ If this function returns true, it does not imply that this object
is a TQDomComment; you can get the TQDomComment with toComment().
\sa toComment()
@@ -2478,7 +2478,7 @@ bool TQDomNode::isComment() const
{
if(impl)
return impl->isComment();
- return FALSE;
+ return false;
}
#undef IMPL
@@ -2491,9 +2491,9 @@ bool TQDomNode::isComment() const
TQDomNamedNodeMapPrivate::TQDomNamedNodeMapPrivate( TQDomNodePrivate* n )
{
- readonly = FALSE;
+ readonly = false;
parent = n;
- appendToParent = FALSE;
+ appendToParent = false;
}
TQDomNamedNodeMapPrivate::~TQDomNamedNodeMapPrivate()
@@ -2720,8 +2720,8 @@ TQDomNamedNodeMap& TQDomNamedNodeMap::operator= ( const TQDomNamedNodeMap& n )
}
/*!
- Returns TRUE if \a n and this named node map are equal; otherwise
- returns FALSE.
+ Returns true if \a n and this named node map are equal; otherwise
+ returns false.
*/
bool TQDomNamedNodeMap::operator== ( const TQDomNamedNodeMap& n ) const
{
@@ -2729,8 +2729,8 @@ bool TQDomNamedNodeMap::operator== ( const TQDomNamedNodeMap& n ) const
}
/*!
- Returns TRUE if \a n and this named node map are not equal;
- otherwise returns FALSE.
+ Returns true if \a n and this named node map are not equal;
+ otherwise returns false.
*/
bool TQDomNamedNodeMap::operator!= ( const TQDomNamedNodeMap& n ) const
{
@@ -2883,13 +2883,13 @@ uint TQDomNamedNodeMap::length() const
*/
/*!
- Returns TRUE if the map contains a node called \a name; otherwise
- returns FALSE.
+ Returns true if the map contains a node called \a name; otherwise
+ returns false.
*/
bool TQDomNamedNodeMap::contains( const TQString& name ) const
{
if ( !impl )
- return FALSE;
+ return false;
return IMPL->contains( name );
}
@@ -2939,8 +2939,8 @@ void TQDomDocumentTypePrivate::init()
systemId = TQString::null;
internalSubset = TQString::null;
- entities->setAppendToParent( TRUE );
- notations->setAppendToParent( TRUE );
+ entities->setAppendToParent( true );
+ notations->setAppendToParent( true );
}
TQDomNodePrivate* TQDomDocumentTypePrivate::cloneNode( bool deep)
@@ -3210,7 +3210,7 @@ TQDomNode::NodeType TQDomDocumentType::nodeType() const
*/
bool TQDomDocumentType::isDocumentType() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -3340,7 +3340,7 @@ TQDomNode::NodeType TQDomDocumentFragment::nodeType() const
*/
bool TQDomDocumentFragment::isDocumentFragment() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -3579,11 +3579,11 @@ TQDomNode::NodeType TQDomCharacterData::nodeType() const
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomCharacterData::isCharacterData() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -3598,7 +3598,7 @@ TQDomAttrPrivate::TQDomAttrPrivate( TQDomDocumentPrivate* d, TQDomNodePrivate* p
: TQDomNodePrivate( d, parent )
{
name = name_;
- m_specified = FALSE;
+ m_specified = false;
}
TQDomAttrPrivate::TQDomAttrPrivate( TQDomDocumentPrivate* d, TQDomNodePrivate* p, const TQString& nsURI, const TQString& qName )
@@ -3606,8 +3606,8 @@ TQDomAttrPrivate::TQDomAttrPrivate( TQDomDocumentPrivate* d, TQDomNodePrivate* p
{
qt_split_namespace( prefix, name, qName, !nsURI.isNull() );
namespaceURI = nsURI;
- createdWithDom1Interface = FALSE;
- m_specified = FALSE;
+ createdWithDom1Interface = false;
+ m_specified = false;
}
TQDomAttrPrivate::TQDomAttrPrivate( TQDomAttrPrivate* n, bool deep )
@@ -3754,7 +3754,7 @@ void TQDomAttrPrivate::save( TQTextStream& s, int, int ) const
TQDomAttr can return the name() and value() of an attribute. An
attribute's value is set with setValue(). If specified() returns
- TRUE the value was either set in the document or set with
+ true the value was either set in the document or set with
setValue(); otherwise the value hasn't been set. The node this
attribute is attached to (if any) is returned by ownerElement().
@@ -3820,16 +3820,16 @@ TQString TQDomAttr::name() const
}
/*!
- Returns TRUE if the attribute has either been expicitly specified
+ Returns true if the attribute has either been expicitly specified
in the XML document or was set by the user with setValue().
- Returns FALSE if the value hasn't been specified or set.
+ Returns false if the value hasn't been specified or set.
\sa setValue()
*/
bool TQDomAttr::specified() const
{
if ( !impl )
- return FALSE;
+ return false;
return IMPL->specified();
}
@@ -3868,7 +3868,7 @@ void TQDomAttr::setValue( const TQString& v )
if ( !impl )
return;
impl->setNodeValue( v );
- IMPL->m_specified = TRUE;
+ IMPL->m_specified = true;
}
/*!
@@ -3880,11 +3880,11 @@ TQDomNode::NodeType TQDomAttr::nodeType() const
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomAttr::isAttr() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -3909,7 +3909,7 @@ TQDomElementPrivate::TQDomElementPrivate( TQDomDocumentPrivate* d, TQDomNodePriv
{
qt_split_namespace( prefix, name, qName, !nsURI.isNull() );
namespaceURI = nsURI;
- createdWithDom1Interface = FALSE;
+ createdWithDom1Interface = false;
m_attr = new TQDomNamedNodeMapPrivate( this );
}
@@ -3972,7 +3972,7 @@ void TQDomElementPrivate::setAttribute( const TQString& aname, const TQString& n
void TQDomElementPrivate::setAttributeNS( const TQString& nsURI, const TQString& qName, const TQString& newValue )
{
TQString prefix, localName;
- qt_split_namespace( prefix, localName, qName, TRUE );
+ qt_split_namespace( prefix, localName, qName, true );
TQDomNodePrivate* n = m_attr->namedItemNS( nsURI, localName );
if ( !n ) {
n = new TQDomAttrPrivate( ownerDocument(), this, nsURI, qName );
@@ -4406,11 +4406,11 @@ TQDomNodeList TQDomElement::elementsByTagName( const TQString& tagname ) const
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomElement::isElement() const
{
- return TRUE;
+ return true;
}
/*!
@@ -4426,13 +4426,13 @@ TQDomNamedNodeMap TQDomElement::attributes() const
}
/*!
- Returns TRUE if this element has an attribute called \a name;
- otherwise returns FALSE.
+ Returns true if this element has an attribute called \a name;
+ otherwise returns false.
*/
bool TQDomElement::hasAttribute( const TQString& name ) const
{
if ( !impl )
- return FALSE;
+ return false;
return IMPL->hasAttribute( name );
}
@@ -4585,14 +4585,14 @@ TQDomNodeList TQDomElement::elementsByTagNameNS( const TQString& nsURI, const TQ
}
/*!
- Returns TRUE if this element has an attribute with the local name
+ Returns true if this element has an attribute with the local name
\a localName and the namespace URI \a nsURI; otherwise returns
- FALSE.
+ false.
*/
bool TQDomElement::hasAttributeNS( const TQString& nsURI, const TQString& localName ) const
{
if ( !impl )
- return FALSE;
+ return false;
return IMPL->hasAttributeNS( nsURI, localName );
}
@@ -4769,11 +4769,11 @@ TQDomText TQDomText::splitText( int offset )
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomText::isText() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -4898,11 +4898,11 @@ TQDomNode::NodeType TQDomComment::nodeType() const
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomComment::isComment() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -5034,11 +5034,11 @@ TQDomNode::NodeType TQDomCDATASection::nodeType() const
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomCDATASection::isCDATASection() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -5204,11 +5204,11 @@ TQString TQDomNotation::systemId() const
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomNotation::isNotation() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -5435,11 +5435,11 @@ TQString TQDomEntity::notationName() const
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomEntity::isEntity() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -5579,11 +5579,11 @@ TQDomNode::NodeType TQDomEntityReference::nodeType() const
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomEntityReference::isEntityReference() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -5749,11 +5749,11 @@ void TQDomProcessingInstruction::setData( const TQString& d )
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomProcessingInstruction::isProcessingInstruction() const
{
- return TRUE;
+ return true;
}
#undef IMPL
@@ -5828,14 +5828,14 @@ bool TQDomDocumentPrivate::setContent( TQXmlInputSource *source, bool namespaceP
{
TQXmlSimpleReader reader;
if ( namespaceProcessing ) {
- reader.setFeature( "http://xml.org/sax/features/namespaces", TRUE );
- reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", FALSE );
+ reader.setFeature( "http://xml.org/sax/features/namespaces", true );
+ reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", false );
} else {
- reader.setFeature( "http://xml.org/sax/features/namespaces", FALSE );
- reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", TRUE );
+ reader.setFeature( "http://xml.org/sax/features/namespaces", false );
+ reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", true );
}
- reader.setFeature( "http://trolltech.com/xml/features/report-whitespace-only-CharData", FALSE );
- reader.setUndefEntityInAttrHack( TRUE );
+ reader.setFeature( "http://trolltech.com/xml/features/report-whitespace-only-CharData", false );
+ reader.setUndefEntityInAttrHack( true );
return setContent( source, &reader, errorMsg, errorLine, errorColumn );
}
@@ -5863,10 +5863,10 @@ bool TQDomDocumentPrivate::setContent( TQXmlInputSource *source, TQXmlReader *re
*errorLine = hnd.errorLine;
if ( errorColumn )
*errorColumn = hnd.errorColumn;
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
TQDomNodePrivate* TQDomDocumentPrivate::cloneNode( bool deep)
@@ -5961,7 +5961,7 @@ TQDomNodePrivate* TQDomDocumentPrivate::importNode( const TQDomNodePrivate* impo
TQDomNodePrivate *node = 0;
switch ( importedNode->nodeType() ) {
case TQDomNode::AttributeNode:
- node = new TQDomAttrPrivate( (TQDomAttrPrivate*)importedNode, TRUE );
+ node = new TQDomAttrPrivate( (TQDomAttrPrivate*)importedNode, true );
break;
case TQDomNode::DocumentFragmentNode:
node = new TQDomDocumentFragmentPrivate( (TQDomDocumentFragmentPrivate*)importedNode, deep );
@@ -5973,7 +5973,7 @@ TQDomNodePrivate* TQDomDocumentPrivate::importNode( const TQDomNodePrivate* impo
node = new TQDomEntityPrivate( (TQDomEntityPrivate*)importedNode, deep );
break;
case TQDomNode::EntityReferenceNode:
- node = new TQDomEntityReferencePrivate( (TQDomEntityReferencePrivate*)importedNode, FALSE );
+ node = new TQDomEntityReferencePrivate( (TQDomEntityReferencePrivate*)importedNode, false );
break;
case TQDomNode::NotationNode:
node = new TQDomNotationPrivate( (TQDomNotationPrivate*)importedNode, deep );
@@ -6004,7 +6004,7 @@ TQDomNodePrivate* TQDomDocumentPrivate::importNode( const TQDomNodePrivate* impo
void TQDomDocumentPrivate::save( TQTextStream& s, int, int indent ) const
{
- bool doc = FALSE;
+ bool doc = false;
TQDomNodePrivate* n = first;
if ( n && n->isProcessingInstruction() && n->nodeName()=="xml" ) {
@@ -6028,7 +6028,7 @@ void TQDomDocumentPrivate::save( TQTextStream& s, int, int indent ) const
if ( !doc && !(n->isProcessingInstruction()&&n->nodeName()=="xml") ) {
// save doctype after XML declaration
type->save( s, 0, indent );
- doc = TRUE;
+ doc = true;
}
n->save( s, 0, indent );
n = n->next;
@@ -6242,23 +6242,23 @@ bool TQDomDocument::setContent( const TQString& text, bool namespaceProcessing,
detect the encoding of the document as required by the XML
specification.
- If \a namespaceProcessing is TRUE, the parser recognizes
+ If \a namespaceProcessing is true, the parser recognizes
namespaces in the XML file and sets the prefix name, local name
and namespace URI to appropriate values. If \a namespaceProcessing
- is FALSE, the parser does no namespace processing when it reads
+ is false, the parser does no namespace processing when it reads
the XML file.
- If a parse error occurs, the function returns FALSE; otherwise it
- returns TRUE. If a parse error occurs and \a errorMsg, \a
+ If a parse error occurs, the function returns false; otherwise it
+ returns true. If a parse error occurs and \a errorMsg, \a
errorLine and \a errorColumn are not 0, the error message is
placed in \a *errorMsg, the line number \a *errorLine and the
column number in \a *errorColumn.
- If \a namespaceProcessing is TRUE, the function TQDomNode::prefix()
+ If \a namespaceProcessing is true, the function TQDomNode::prefix()
returns a string for all elements and attributes. It returns an
empty string if the element or attribute has no prefix.
- If \a namespaceProcessing is FALSE, the functions
+ If \a namespaceProcessing is false, the functions
TQDomNode::prefix(), TQDomNode::localName() and
TQDomNode::namespaceURI() return TQString::null.
@@ -6311,7 +6311,7 @@ bool TQDomDocument::setContent( TQIODevice* dev, bool namespaceProcessing, TQStr
*/
bool TQDomDocument::setContent( const TQString& text, TQString *errorMsg, int *errorLine, int *errorColumn )
{
- return setContent( text, FALSE, errorMsg, errorLine, errorColumn );
+ return setContent( text, false, errorMsg, errorLine, errorColumn );
}
/*!
@@ -6324,7 +6324,7 @@ bool TQDomDocument::setContent( const TQString& text, TQString *errorMsg, int *e
*/
bool TQDomDocument::setContent( const TQByteArray& buffer, TQString *errorMsg, int *errorLine, int *errorColumn )
{
- return setContent( buffer, FALSE, errorMsg, errorLine, errorColumn );
+ return setContent( buffer, false, errorMsg, errorLine, errorColumn );
}
/*!
@@ -6339,7 +6339,7 @@ bool TQDomDocument::setContent( const TQByteArray& buffer, TQString *errorMsg, i
*/
bool TQDomDocument::setContent( const TQCString& buffer, TQString *errorMsg, int *errorLine, int *errorColumn )
{
- return setContent( buffer, FALSE, errorMsg, errorLine, errorColumn );
+ return setContent( buffer, false, errorMsg, errorLine, errorColumn );
}
/*!
@@ -6351,7 +6351,7 @@ bool TQDomDocument::setContent( const TQCString& buffer, TQString *errorMsg, int
*/
bool TQDomDocument::setContent( TQIODevice* dev, TQString *errorMsg, int *errorLine, int *errorColumn )
{
- return setContent( dev, FALSE, errorMsg, errorLine, errorColumn );
+ return setContent( dev, false, errorMsg, errorLine, errorColumn );
}
/*!
@@ -6602,8 +6602,8 @@ TQDomNodeList TQDomDocument::elementsByTagName( const TQString& tagname ) const
import TQDomDocument and TQDomDocumentType nodes. In those cases
this function returns a \link TQDomNode::isNull() null node\endlink.
- If \a deep is TRUE, this function imports not only the node \a
- importedNode but its whole subtree; if it is FALSE, only the \a
+ If \a deep is true, this function imports not only the node \a
+ importedNode but its whole subtree; if it is false, only the \a
importedNode is imported. The argument \a deep has no effect on
TQDomAttr and TQDomEntityReference nodes, since the descendents of
TQDomAttr nodes are always imported and those of
@@ -6615,21 +6615,21 @@ TQDomNodeList TQDomDocument::elementsByTagName( const TQString& tagname ) const
\header \i Node Type \i Behaviour
\row \i TQDomAttr
\i The owner element is set to 0 and the specified flag is
- set to TRUE in the generated attribute. The whole subtree
+ set to true in the generated attribute. The whole subtree
of \a importedNode is always imported for attribute nodes:
\a deep has no effect.
\row \i TQDomDocument
\i Document nodes cannot be imported.
\row \i TQDomDocumentFragment
- \i If \a deep is TRUE, this function imports the whole
+ \i If \a deep is true, this function imports the whole
document fragment; otherwise it only generates an empty
document fragment.
\row \i TQDomDocumentType
\i Document type nodes cannot be imported.
\row \i TQDomElement
- \i Attributes for which TQDomAttr::specified() is TRUE are
+ \i Attributes for which TQDomAttr::specified() is true are
also imported, other attributes are not imported. If \a
- deep is TRUE, this function also imports the subtree of \a
+ deep is true, this function also imports the subtree of \a
importedNode; otherwise it imports only the element node
(and some attributes, see above).
\row \i TQDomEntity
@@ -6733,11 +6733,11 @@ TQDomNode::NodeType TQDomDocument::nodeType() const
}
/*!
- Returns TRUE.
+ Returns true.
*/
bool TQDomDocument::isDocument() const
{
- return TRUE;
+ return true;
}
@@ -6940,7 +6940,7 @@ TQDomHandler::TQDomHandler( TQDomDocumentPrivate* adoc, bool namespaceProcessing
{
doc = adoc;
node = doc;
- cdata = FALSE;
+ cdata = false;
nsProcessing = namespaceProcessing;
}
@@ -6952,8 +6952,8 @@ bool TQDomHandler::endDocument()
{
// ### is this really necessary? (rms)
if ( node != doc )
- return FALSE;
- return TRUE;
+ return false;
+ return true;
}
bool TQDomHandler::startDTD( const TQString& name, const TQString& publicId, const TQString& systemId )
@@ -6961,7 +6961,7 @@ bool TQDomHandler::startDTD( const TQString& name, const TQString& publicId, con
doc->doctype()->name = name;
doc->doctype()->publicId = publicId;
doc->doctype()->systemId = systemId;
- return TRUE;
+ return true;
}
bool TQDomHandler::startElement( const TQString& nsURI, const TQString&, const TQString& qName, const TQXmlAttributes& atts )
@@ -6986,23 +6986,23 @@ bool TQDomHandler::startElement( const TQString& nsURI, const TQString&, const T
}
}
- return TRUE;
+ return true;
}
bool TQDomHandler::endElement( const TQString&, const TQString&, const TQString& )
{
if ( node == doc )
- return FALSE;
+ return false;
node = node->parent();
- return TRUE;
+ return true;
}
bool TQDomHandler::characters( const TQString& ch )
{
// No text as child of some document
if ( node == doc )
- return FALSE;
+ return false;
if ( cdata ) {
node->appendChild( doc->createCDATASection( ch ) );
@@ -7016,19 +7016,19 @@ bool TQDomHandler::characters( const TQString& ch )
node->appendChild( doc->createTextNode( ch ) );
}
- return TRUE;
+ return true;
}
bool TQDomHandler::processingInstruction( const TQString& target, const TQString& data )
{
node->appendChild( doc->createProcessingInstruction( target, data ) );
- return TRUE;
+ return true;
}
bool TQDomHandler::skippedEntity( const TQString& name )
{
node->appendChild( doc->createEntityReference( name ) );
- return TRUE;
+ return true;
}
bool TQDomHandler::fatalError( const TQXmlParseException& exception )
@@ -7041,32 +7041,32 @@ bool TQDomHandler::fatalError( const TQXmlParseException& exception )
bool TQDomHandler::startCDATA()
{
- cdata = TRUE;
- return TRUE;
+ cdata = true;
+ return true;
}
bool TQDomHandler::endCDATA()
{
- cdata = FALSE;
- return TRUE;
+ cdata = false;
+ return true;
}
bool TQDomHandler::startEntity( const TQString &name )
{
entityName = name;
- return TRUE;
+ return true;
}
bool TQDomHandler::endEntity( const TQString & )
{
entityName = TQString::null;
- return TRUE;
+ return true;
}
bool TQDomHandler::comment( const TQString& ch )
{
node->appendChild( doc->createComment( ch ) );
- return TRUE;
+ return true;
}
bool TQDomHandler::unparsedEntityDecl( const TQString &name, const TQString &publicId, const TQString &systemId, const TQString &notationName )
@@ -7074,7 +7074,7 @@ bool TQDomHandler::unparsedEntityDecl( const TQString &name, const TQString &pub
TQDomEntityPrivate* e = new TQDomEntityPrivate( doc, 0, name,
publicId, systemId, notationName );
doc->doctype()->appendChild( e );
- return TRUE;
+ return true;
}
bool TQDomHandler::externalEntityDecl( const TQString &name, const TQString &publicId, const TQString &systemId )
@@ -7086,7 +7086,7 @@ bool TQDomHandler::notationDecl( const TQString & name, const TQString & publicI
{
TQDomNotationPrivate* n = new TQDomNotationPrivate( doc, 0, name, publicId, systemId );
doc->doctype()->appendChild( n );
- return TRUE;
+ return true;
}
#endif //TQT_NO_DOM