From dc6b8e72fed2586239e3514819238c520636c9d9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:54:04 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/parsers/qtag.h | 170 +++++++++++++++++++++++++------------------------- 1 file changed, 85 insertions(+), 85 deletions(-) (limited to 'quanta/parsers/qtag.h') diff --git a/quanta/parsers/qtag.h b/quanta/parsers/qtag.h index 6c38c334..89aa1e46 100644 --- a/quanta/parsers/qtag.h +++ b/quanta/parsers/qtag.h @@ -25,11 +25,11 @@ *@author Andras Mantia */ //qt includes -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include //app includes @@ -38,49 +38,49 @@ class Node; //an attribute of a tag looks like: typedef struct Attribute{ - QString name; - QString type; //"input", "check", "list" - QStringList values; //the possible values it can have - QString defaultValue; //the default value - QString status; // "optional", "required","implied" - QString source; - QString interface; - QString method; - QString arguments; + TQString name; + TQString type; //"input", "check", "list" + TQStringList values; //the possible values it can have + TQString defaultValue; //the default value + TQString status; // "optional", "required","implied" + TQString source; + TQString interface; + TQString method; + TQString arguments; }; class XMLStructGroup { public: - QString name; /// AttributeList; -typedef QDict AttributeListDict; +typedef TQPtrList AttributeList; +typedef TQDict AttributeListDict; -typedef QDict QTagList; +typedef TQDict QTagList; enum DTDFamily{Unknown = 0, Xml, Script}; @@ -89,27 +89,27 @@ enum DTDFamily{Unknown = 0, Xml, Script}; //an internal representation of a DTD typedef struct DTDStruct { - QString name; ///< DTD name - QString nickName; ///< DTD nickname + TQString name; ///< DTD name + TQString nickName; ///< DTD nickname bool loaded; ///< true = DTD is complet in memory - QString url; ///< the url of the DTD definition file - QString doctypeStr; ///< the string that appears right after !doctype - QString inheritsTagsFrom; ///< Inherited DTD name - QString defaultExtension; ///< default extension when creating new files - QStringList mimeTypes; + TQString url; ///< the url of the DTD definition file + TQString doctypeStr; ///< the string that appears right after !doctype + TQString inheritsTagsFrom; ///< Inherited DTD name + TQString defaultExtension; ///< default extension when creating new files + TQStringList mimeTypes; bool caseSensitive; ///< the tags&attributes in DTD are case sensitive or not int family; ///< xml, script type bool toplevel; ///< true if the DTD can be the main DTD of a document. Always true for XML like DTD's - QString documentation; ///< the name of the documentation package + TQString documentation; ///< the name of the documentation package QTagList* tagsList; ///< the list of all defined tags in the DTD - QString fileName; ///< the DTD decription.rc with path + TQString fileName; ///< the DTD decription.rc with path AttributeListDict* commonAttrs; ///< the attributes of the common groups - QString booleanAttributes; ///< simple or extended or - QString booleanTrue; ///< "true" or "1" or whatever - QString booleanFalse; ///< "false" or "0" or whatever - QString singleTagStyle; ///< "xml" or "html" ( or ) - QString defaultAttrType; ///< "input", "string" or whatever + TQString booleanAttributes; ///< simple or extended or + TQString booleanTrue; ///< "true" or "1" or whatever + TQString booleanFalse; ///< "false" or "0" or whatever + TQString singleTagStyle; ///< "xml" or "html" ( or ) + TQString defaultAttrType; ///< "input", "string" or whatever /****************** FOR THE NEW PARSER **********************/ @@ -122,18 +122,18 @@ typedef struct DTDStruct /* The starting and closing strings of a special area. For PHP the special areas are and <* *>, so the entries are (),(<*,*>). */ - QMap specialAreas; + TQMap specialAreas; /* To which DTD this special area belongs. It may be a non-dtd name, like "comment", which is treated as a special case. Entries are in for of ( specialAreaNames; + TQMap specialAreaNames; /* A regular expression which matches the starting strings of all the possible special areas. */ - mutable QRegExp specialAreaStartRx; + mutable TQRegExp specialAreaStartRx; /* For each special tag name, holds an attribute name. This attribute is used to figure out the DTD which is valid in the special tag area. @@ -141,7 +141,7 @@ typedef struct DTDStruct Special tags are skipped during parsing and parsed later according to their DTD definition. */ - QMap specialTags; + TQMap specialTags; /* A list of DTDs that can be present inside the DTD. For each DTD specified here the definitionAreaBegin/definitionAreaEnd is @@ -150,58 +150,58 @@ typedef struct DTDStruct Basically this means that we use the DTD definitions when building the special area and tag definitions. */ - QStringList insideDTDs; + TQStringList insideDTDs; /* The definition tags for this DTD in the same for as the above. */ - QMap definitionTags; + TQMap definitionTags; /* The beginning and end string of the definition areas for this DTD. It is stored in (area_begin_str,area_end_str) pairs. E.g () */ - QMap definitionAreas; + TQMap definitionAreas; /* Start/end pairs for comments. Eg. (//,\n); () */ - QMap comments; + TQMap comments; /* Regular expression to match the start of the comments (//,