diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-10-18 11:22:40 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-10-18 11:22:40 (GMT) |
commit | 410f203fd3542af182a6fe4406cc5094b65a90f8 (patch) | |
tree | ed9911a06347fcad14f7aedab6b98c3f366078dc /tools/qdoc3/ditaxmlgenerator.cpp | |
parent | 65daf75c29f1865bf0eb51570c09a304fefb25ad (diff) | |
download | Qt-410f203fd3542af182a6fe4406cc5094b65a90f8.zip Qt-410f203fd3542af182a6fe4406cc5094b65a90f8.tar.gz Qt-410f203fd3542af182a6fe4406cc5094b65a90f8.tar.bz2 |
qdoc: Changed GUIDs from "{xxxxxx}" to "id-xxxxxxx".
Diffstat (limited to 'tools/qdoc3/ditaxmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/ditaxmlgenerator.cpp | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp index 42f6d1d..9108d7b 100644 --- a/tools/qdoc3/ditaxmlgenerator.cpp +++ b/tools/qdoc3/ditaxmlgenerator.cpp @@ -559,7 +559,8 @@ QString DitaXmlGenerator::lookupGuid(QString text) QMap<QString, QString>::const_iterator i = name2guidMap.find(text); if (i != name2guidMap.end()) return i.value(); - QString guid = QUuid::createUuid().toString(); + QString t = QUuid::createUuid().toString(); + QString guid = "id-" + t.mid(1,t.length()-2); name2guidMap.insert(text,guid); return guid; } @@ -578,7 +579,8 @@ QString DitaXmlGenerator::lookupGuid(const QString& fileName, const QString& tex GuidMap::const_iterator i = gm->find(text); if (i != gm->end()) return i.value(); - QString guid = QUuid::createUuid().toString(); + QString t = QUuid::createUuid().toString(); + QString guid = "id-" + t.mid(1,t.length()-2); gm->insert(text,guid); return guid; } @@ -1840,25 +1842,6 @@ DitaXmlGenerator::generateClassLikeNode(const InnerNode* inner, CodeMarker* mark } /*! - Write a paragraph for the \a target and a poaragraph for - the \a header. Use the \a attribute for the \a header. - */ -void DitaXmlGenerator::writeTargetAndHeader(const QString& target, - const QString& header, - const QString& attribute) -{ - xmlWriter().writeStartElement("p"); - writeGuidAttribute(registerRef(target)); - xmlWriter().writeAttribute("outputclass","target"); - xmlWriter().writeCharacters(header); - xmlWriter().writeEndElement(); // </p> - xmlWriter().writeStartElement("p"); - xmlWriter().writeAttribute("outputclass",attribute); - xmlWriter().writeCharacters(header); - xmlWriter().writeEndElement(); // </p> -} - -/*! Write a list item for a \a link with the given \a text. */ void DitaXmlGenerator::writeXrefListItem(const QString& link, const QString& text) |