diff options
| author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-04-19 12:19:42 +0200 |
|---|---|---|
| committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-19 13:26:51 +0200 |
| commit | c4e308d3f7ad8f2bc6c8e88a89acd1f95a5b46c6 (patch) | |
| tree | a48c953fc0524618bfd827594b6611b6c4e432ea /src/tools/qdoc/ditaxmlgenerator.cpp | |
| parent | 4de95586f1ecbdc1fad82a75bf4ea7ede8105cf8 (diff) | |
QDoc: Generate index file for DITAXML.
This change moves the fullDocumentLocation function to the generator
base-class and adds generateIndex to the DITAXML Generator.
All function calls to fullDocumentLocation are now handled by the static
function in the base-class which will use the file extension from the
currently active generator (either DITAXML or HTML).
Change-Id: I24ce09c05a63eb5980b1243c58990e7ce9d42036
Reviewed-by: Martin Smith <martin.smith@nokia.com>
Diffstat (limited to 'src/tools/qdoc/ditaxmlgenerator.cpp')
| -rw-r--r-- | src/tools/qdoc/ditaxmlgenerator.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools/qdoc/ditaxmlgenerator.cpp b/src/tools/qdoc/ditaxmlgenerator.cpp index f49b267d2a6..9c85e7b02ad 100644 --- a/src/tools/qdoc/ditaxmlgenerator.cpp +++ b/src/tools/qdoc/ditaxmlgenerator.cpp @@ -646,6 +646,10 @@ void DitaXmlGenerator::generateTree(Tree *tree) Generator::generateTree(tree); generateCollisionPages(); + + QString fileBase = project.toLower().simplified().replace(" ", "-"); + generateIndex(fileBase, projectUrl, projectDescription); + writeDitaMap(tree); } @@ -2429,7 +2433,7 @@ void DitaXmlGenerator::writeRelatedLinks(const FakeNode* node, CodeMarker* marke /*! Returns "dita" for this subclass of class Generator. */ -QString DitaXmlGenerator::fileExtension(const Node * /* node */) const +QString DitaXmlGenerator::fileExtension() const { return "dita"; } @@ -5690,7 +5694,7 @@ DitaXmlGenerator::generateInnerNode(InnerNode* node) } /*! - Returns true if \a format is "XML" or "HTML" . + Returns true if \a format is "DITAXML" or "HTML" . */ bool DitaXmlGenerator::canHandleFormat(const QString& format) { |
