diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/xml-sax-walkthrough.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/xml-sax-walkthrough.html')
-rw-r--r-- | doc/html/xml-sax-walkthrough.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/xml-sax-walkthrough.html b/doc/html/xml-sax-walkthrough.html index d9a2e0c23..cd26dc90f 100644 --- a/doc/html/xml-sax-walkthrough.html +++ b/doc/html/xml-sax-walkthrough.html @@ -66,7 +66,7 @@ provides an implementation that does not change the parsing behavior): #ifndef STRUCTUREPARSER_H #define STRUCTUREPARSER_H -#include <<a href="qxml-h.html">qxml.h</a>> +#include <<a href="qxml-h.html">ntqxml.h</a>> class TQString; @@ -74,12 +74,12 @@ class StructureParser : public <a href="qxmldefaulthandler.html">TQXmlDefaultHan { public: bool startDocument(); - bool startElement( const <a href="qstring.html">TQString</a>&, const <a href="qstring.html">TQString</a>&, const <a href="qstring.html">TQString</a>& , + bool startElement( const <a href="ntqstring.html">TQString</a>&, const <a href="ntqstring.html">TQString</a>&, const <a href="ntqstring.html">TQString</a>& , const <a href="qxmlattributes.html">TQXmlAttributes</a>& ); - bool endElement( const <a href="qstring.html">TQString</a>&, const <a href="qstring.html">TQString</a>&, const <a href="qstring.html">TQString</a>& ); + bool endElement( const <a href="ntqstring.html">TQString</a>&, const <a href="ntqstring.html">TQString</a>&, const <a href="ntqstring.html">TQString</a>& ); private: - <a href="qstring.html">TQString</a> indent; + <a href="ntqstring.html">TQString</a> indent; }; #endif @@ -94,7 +94,7 @@ get indentation right, there is nothing special about our new <p> <pre> #include "structureparser.h" #include <stdio.h> - #include <<a href="qstring-h.html">qstring.h</a>> + #include <<a href="qstring-h.html">ntqstring.h</a>> </pre> <p> First we overload <a href="qxmlcontenthandler.html#startDocument">TQXmlContentHandler::startDocument</a>() with a non-empty version. <p> <pre> <a name="x2137"></a>bool StructureParser::<a href="qxmlcontenthandler.html#startDocument">startDocument</a>() @@ -111,8 +111,8 @@ reporting an error. <p> Because we want to be informed when the parser comes accross a start tag of an element and subsequently print it out, we have to overload <a href="qxmlcontenthandler.html#startElement">TQXmlContentHandler::startElement</a>(). -<p> <pre> <a name="x2138"></a>bool StructureParser::<a href="qxmlcontenthandler.html#startElement">startElement</a>( const <a href="qstring.html">TQString</a>&, const <a href="qstring.html">TQString</a>&, - const <a href="qstring.html">TQString</a>& qName, +<p> <pre> <a name="x2138"></a>bool StructureParser::<a href="qxmlcontenthandler.html#startElement">startElement</a>( const <a href="ntqstring.html">TQString</a>&, const <a href="ntqstring.html">TQString</a>&, + const <a href="ntqstring.html">TQString</a>& qName, const <a href="qxmlattributes.html">TQXmlAttributes</a>& ) { printf( "%s%s\n", (const char*)indent, (const char*)qName ); @@ -131,7 +131,7 @@ it should be indented. Therefore we add four spaces to the errors. <p> The last functionality we need to add is the parser's behaviour when an end tag occurs. This means overloading <a href="qxmlcontenthandler.html#endElement">TQXmlContentHandler::endElement</a>(). -<p> <pre> <a name="x2136"></a>bool StructureParser::<a href="qxmlcontenthandler.html#endElement">endElement</a>( const <a href="qstring.html">TQString</a>&, const <a href="qstring.html">TQString</a>&, const <a href="qstring.html">TQString</a>& ) +<p> <pre> <a name="x2136"></a>bool StructureParser::<a href="qxmlcontenthandler.html#endElement">endElement</a>( const <a href="ntqstring.html">TQString</a>&, const <a href="ntqstring.html">TQString</a>&, const <a href="ntqstring.html">TQString</a>& ) { indent.remove( (uint)0, 4 ); return TRUE; @@ -144,9 +144,9 @@ program. <p> <p> <pre> #include "structureparser.h" - #include <<a href="qfile-h.html">qfile.h</a>> - #include <<a href="qxml-h.html">qxml.h</a>> - #include <<a href="qwindowdefs-h.html">qwindowdefs.h</a>> + #include <<a href="qfile-h.html">ntqfile.h</a>> + #include <<a href="qxml-h.html">ntqxml.h</a>> + #include <<a href="qwindowdefs-h.html">ntqwindowdefs.h</a>> int main( int argc, char **argv ) { @@ -169,7 +169,7 @@ we simply register it as the content handler of our choice. <p> <pre> for ( int i=1; i < argc; i++ ) { </pre> <p> Successively we deal with all files given as command line arguments. -<p> <pre> <a href="qfile.html">TQFile</a> xmlFile( argv[i] ); +<p> <pre> <a href="ntqfile.html">TQFile</a> xmlFile( argv[i] ); <a href="qxmlinputsource.html">TQXmlInputSource</a> source( &xmlFile ); </pre> <p> Then we create a |