diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-11 08:18:36 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-11 08:18:36 (GMT) |
commit | f7c910a9d44eb7f775f93fd8ccf94c3e8fd38201 (patch) | |
tree | 9d81a3899b63a1440788b845868cbe5115872ef1 /tools/qdoc3/htmlgenerator.h | |
parent | 892d4b5e6e9495e29c4df40383e883fc19aa0baa (diff) | |
parent | a7f0c36effc38a8d6525538afe1fdcd88b39d244 (diff) | |
download | Qt-f7c910a9d44eb7f775f93fd8ccf94c3e8fd38201.zip Qt-f7c910a9d44eb7f775f93fd8ccf94c3e8fd38201.tar.gz Qt-f7c910a9d44eb7f775f93fd8ccf94c3e8fd38201.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
qdoc: Added a build rule for the documentation - disabled by default.
Doc: Added the qdoc manual to the repository for future maintenance.
qdoc3: Fixed bug in creation of qt.pageindex.
qdoc3: Added capability to create qt.pageindex.
Incorrect property setter generated by dumpcpp for Microsoft Word 2007.
Cocoa: Implement our own NSApplication subclass
Cocoa: Menu in menubar stays highlighted
qdoc: Made a temporary fix for comment highlighting.
Doc: Tidied up the class layout and removed an unnecessary image.
Doc/qdoc: Use Chinese titles; canonicalize titles with non-ASCII chars.
Doc/qdoc: Converted encoding of ISO-8859-1 docs to UTF-8. Output UTF-8.
qdoc: Removed debugging code.
Doc: Updated the configuration file for the Simplified Chinese docs.
qdoc: Standardized encoding names and updated the Chinese config files.
Doc: Added Simplified Chinese documents and build rules for them.
qdoc: Added support for different source and output character encodings.
Doc: Synchronize configuration files for easier maintenance.
Diffstat (limited to 'tools/qdoc3/htmlgenerator.h')
-rw-r--r-- | tools/qdoc3/htmlgenerator.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tools/qdoc3/htmlgenerator.h b/tools/qdoc3/htmlgenerator.h index 19a7c78..369d6c3 100644 --- a/tools/qdoc3/htmlgenerator.h +++ b/tools/qdoc3/htmlgenerator.h @@ -50,6 +50,7 @@ #include <qmap.h> #include <qregexp.h> +#include <QXmlStreamWriter> #include "codemarker.h" #include "config.h" @@ -104,7 +105,8 @@ class HtmlGenerator : public PageGenerator virtual QString format(); virtual void generateTree(const Tree *tree, CodeMarker *marker); - static QString protect(const QString& string); + QString protectEnc(const QString &string); + static QString protect(const QString &string, const QString &encoding = "ISO-8859-1"); static QString cleanRef(const QString& ref); static QString sinceTitle(int i) { return sinceTitles[i]; } @@ -115,7 +117,7 @@ class HtmlGenerator : public PageGenerator CodeMarker *marker); virtual void generateClassLikeNode(const InnerNode *inner, CodeMarker *marker); virtual void generateFakeNode(const FakeNode *fake, CodeMarker *marker); - virtual QString fileExtension(const Node *node); + virtual QString fileExtension(const Node *node) const; virtual QString refForNode(const Node *node); virtual QString linkForNode(const Node *node, const Node *relative); virtual QString refForAtom(Atom *atom, const Node *node); @@ -261,6 +263,14 @@ class HtmlGenerator : public PageGenerator const Node *relative, CodeMarker *marker); void endLink(); + bool generatePageElement(QXmlStreamWriter& writer, + const Node* node, + CodeMarker* marker) const; + void generatePageElements(QXmlStreamWriter& writer, + const Node* node, + CodeMarker* marker) const; + void generatePageIndex(const QString& fileName, + CodeMarker* marker) const; #if 0 NavigationBar currentNavigationBar; @@ -315,6 +325,7 @@ class HtmlGenerator : public PageGenerator NewSinceMaps newSinceMaps; static QString sinceTitles[]; NewClassMaps newClassMaps; + static int id; }; #define HTMLGENERATOR_ADDRESS "address" |