summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2011-01-03 14:11:09 (GMT)
committerMartin Smith <martin.smith@nokia.com>2011-01-03 14:11:09 (GMT)
commit666a94d7758e466e044bafa943b2c252ef4b5228 (patch)
tree7dbf6373b32b953e4b7d354f102e7432f3ed6150 /tools
parent867a421ed539040bd197c13f6c98f313e232cdf3 (diff)
downloadQt-666a94d7758e466e044bafa943b2c252ef4b5228.zip
Qt-666a94d7758e466e044bafa943b2c252ef4b5228.tar.gz
Qt-666a94d7758e466e044bafa943b2c252ef4b5228.tar.bz2
qdoc: Added format="html" to every <xref> for http.
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index 7b40886..1deafda 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -331,6 +331,7 @@ void DitaXmlGenerator::addLink(const QString& href,
{
if (!href.isEmpty()) {
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
xmlWriter().writeAttribute("href", href);
writeCharacters(text.toString());
xmlWriter().writeEndElement(); // </xref>
@@ -1026,6 +1027,7 @@ int DitaXmlGenerator::generateAtom(const Atom *atom,
xmlWriter().writeStartElement("p");
xmlWriter().writeCharacters("Class ");
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
xmlWriter().writeAttribute("href",linkForNode(pmap.key(), 0));
QStringList pieces = fullName(pmap.key(), 0, marker).split("::");
writeCharacters(protectEnc(pieces.last()));
@@ -2001,6 +2003,7 @@ void DitaXmlGenerator::writeXrefListItem(const QString& link, const QString& tex
{
xmlWriter().writeStartElement("li");
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
xmlWriter().writeAttribute("href",link);
writeCharacters(text);
xmlWriter().writeEndElement(); // </xref>
@@ -2777,6 +2780,7 @@ void DitaXmlGenerator::generateCompactList(const Node* relative,
QChar ch('a' + i);
if (usedParagraphNames.contains(char('a' + i))) {
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
QString guid = lookupGuid(outFileName(),QString(ch));
QString attr = outFileName() + QString("#%1").arg(guid);
xmlWriter().writeAttribute("href", attr);
@@ -2836,6 +2840,7 @@ void DitaXmlGenerator::generateCompactList(const Node* relative,
require some special formatting.
*/
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
xmlWriter().writeAttribute("href",linkForNode(it.value(), relative));
QStringList pieces;
@@ -2870,6 +2875,7 @@ void DitaXmlGenerator::generateFunctionIndex(const Node* relative,
for (int i = 0; i < 26; i++) {
QChar ch('a' + i);
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
QString guid = lookupGuid(outFileName(),QString(ch));
QString attr = outFileName() + QString("#%1").arg(guid);
xmlWriter().writeAttribute("href", attr);
@@ -3050,6 +3056,7 @@ void DitaXmlGenerator::generateOverviewList(const Node* relative, CodeMarker* /*
xmlWriter().writeStartElement("p");
xmlWriter().writeAttribute("outputclass","h3");
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
xmlWriter().writeAttribute("href",linkForNode(groupNode, relative));
writeCharacters(protectEnc(groupNode->fullTitle()));
xmlWriter().writeEndElement(); // </xref>
@@ -3064,6 +3071,7 @@ void DitaXmlGenerator::generateOverviewList(const Node* relative, CodeMarker* /*
title.remove(0, 4);
xmlWriter().writeStartElement("li");
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
xmlWriter().writeAttribute("href",linkForNode(fakeNode, relative));
writeCharacters(protectEnc(title));
xmlWriter().writeEndElement(); // </xref>
@@ -3085,6 +3093,7 @@ void DitaXmlGenerator::generateOverviewList(const Node* relative, CodeMarker* /*
title.remove(0, 4);
xmlWriter().writeStartElement("li");
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
xmlWriter().writeAttribute("href",linkForNode(fakeNode, relative));
writeCharacters(protectEnc(title));
xmlWriter().writeEndElement(); // </xref>
@@ -3143,6 +3152,7 @@ void DitaXmlGenerator::generateSectionInheritedList(const Section& section,
text += " inherited from ";
writeCharacters(text);
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
// zzz
text = fileName((*p).first) + "#";
text += DitaXmlGenerator::cleanRef(section.name.toLower());
@@ -3718,6 +3728,7 @@ void DitaXmlGenerator::generateFullName(const Node* apparentNode,
if (actualNode == 0)
actualNode = apparentNode;
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
QString href = linkForNode(actualNode, relative);
xmlWriter().writeAttribute("href",href);
writeCharacters(protectEnc(fullName(apparentNode, relative, marker)));
@@ -4146,6 +4157,7 @@ void DitaXmlGenerator::beginLink(const QString& link)
if (link.isEmpty())
return;
xmlWriter().writeStartElement("xref");
+ xmlWriter().writeAttribute("format", "html");
xmlWriter().writeAttribute("href",link);
inLink = true;
}