summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/ditaxmlgenerator.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-03-10 08:25:47 (GMT)
committerMartin Smith <martin.smith@nokia.com>2011-03-10 08:25:47 (GMT)
commite6589006ce57734f25c1ac44434457d5e523fdf0 (patch)
tree4e0611193ffec424247f0ca0249f2d2a98fae8f9 /tools/qdoc3/ditaxmlgenerator.cpp
parentfcc8a1b6ff261f128969458146185c9ed9d5892b (diff)
downloadQt-e6589006ce57734f25c1ac44434457d5e523fdf0.zip
Qt-e6589006ce57734f25c1ac44434457d5e523fdf0.tar.gz
Qt-e6589006ce57734f25c1ac44434457d5e523fdf0.tar.bz2
qdoc: Added <publisher> and <permissions> elements.
Diffstat (limited to 'tools/qdoc3/ditaxmlgenerator.cpp')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp32
1 files changed, 23 insertions, 9 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index 6ea371c..2c02892 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -5540,7 +5540,7 @@ void DitaXmlGenerator::writeDitaMap()
\o <author> *
\o <brand>
\o <category> *
- \o <compomnent>
+ \o <compomnent> *
\o <copyrholder>
\o <copyright>
\o <created>
@@ -5550,19 +5550,19 @@ void DitaXmlGenerator::writeDitaMap()
\o <keywords>
\o <metadata> *
\o <othermeta>
- \o <permissions>
+ \o <permissions> *
\o <platform>
- \o <prodinfo>
- \o <prodname>
+ \o <prodinfo> *
+ \o <prodname> *
\o <prolog> *
- \o <publisher>
+ \o <publisher> *
\o <resourceid>
\o <revised>
\o <source>
\o <tm>
\o <unknown>
- \o <vrm>
- \o <vrmlist>
+ \o <vrm> *
+ \o <vrmlist> *
\endlist
\node * means the tag has been used.
@@ -5575,13 +5575,27 @@ DitaXmlGenerator::writeProlog(const InnerNode* inner, CodeMarker* marker)
return;
writeStartTag(DT_prolog);
- writeStartTag(DT_author);
QString author = inner->author();
+ writeStartTag(DT_author);
if (author.isEmpty())
author = "Qt Development Frameworks";
xmlWriter().writeCharacters(author);
writeEndTag(); // <author>
-
+
+ QString publisher = inner->publisher();
+ writeStartTag(DT_publisher);
+ if (publisher.isEmpty())
+ publisher = "Nokia";
+ xmlWriter().writeCharacters(publisher);
+ writeEndTag(); // <publisher>
+
+ QString permissions = inner->permissions();
+ writeStartTag(DT_permissions);
+ if (permissions.isEmpty())
+ permissions = "all";
+ xmlWriter().writeAttribute("view",permissions);
+ writeEndTag(); // <permissions>
+
writeStartTag(DT_metadata);
writeStartTag(DT_category);
QString category = "Page";