From 1702a6daff27f5d3e6fdac16962d1828df6ca270 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 May 2024 12:36:05 +0900 Subject: Rename nt* dom and xml related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tagreader-example.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doc/html/tagreader-example.html') diff --git a/doc/html/tagreader-example.html b/doc/html/tagreader-example.html index a7c939c68..947d614e2 100644 --- a/doc/html/tagreader-example.html +++ b/doc/html/tagreader-example.html @@ -54,16 +54,16 @@ indented corresponding to their nesting #ifndef STRUCTUREPARSER_H #define STRUCTUREPARSER_H -#include <ntqxml.h> +#include <tqxml.h> class TQString; -class StructureParser : public TQXmlDefaultHandler +class StructureParser : public TQXmlDefaultHandler { public: bool startDocument(); bool startElement( const TQString&, const TQString&, const TQString& , - const TQXmlAttributes& ); + const TQXmlAttributes& ); bool endElement( const TQString&, const TQString&, const TQString& ); private: @@ -90,22 +90,22 @@ private: #include <stdio.h> #include <ntqstring.h> -bool StructureParser::startDocument() +bool StructureParser::startDocument() { indent = ""; return TRUE; } -bool StructureParser::startElement( const TQString&, const TQString&, +bool StructureParser::startElement( const TQString&, const TQString&, const TQString& qName, - const TQXmlAttributes& ) + const TQXmlAttributes& ) { printf( "%s%s\n", (const char*)indent, (const char*)qName ); indent += " "; return TRUE; } -bool StructureParser::endElement( const TQString&, const TQString&, const TQString& ) +bool StructureParser::endElement( const TQString&, const TQString&, const TQString& ) { indent.remove( (uint)0, 4 ); return TRUE; @@ -126,7 +126,7 @@ private: #include "structureparser.h" #include <ntqfile.h> -#include <ntqxml.h> +#include <tqxml.h> #include <ntqwindowdefs.h> int main( int argc, char **argv ) @@ -136,12 +136,12 @@ int main( int argc, char **argv ) return 1; } StructureParser handler; - TQXmlSimpleReader reader; - reader.setContentHandler( &handler ); + TQXmlSimpleReader reader; + reader.setContentHandler( &handler ); for ( int i=1; i < argc; i++ ) { TQFile xmlFile( argv[i] ); - TQXmlInputSource source( &xmlFile ); - reader.parse( source ); + TQXmlInputSource source( &xmlFile ); + reader.parse( source ); } return 0; } -- cgit v1.2.3