QDoc: Use \page title with prev/next links in DITAXML.
Change-Id: I260998986752f5c8cc48279c04557c925af1cb14 Reviewed-by: Martin Smith <martin.smith@nokia.com>
This commit is contained in:
parent
6375cbf99a
commit
6c60fe20c2
@ -2414,16 +2414,28 @@ void DitaXmlGenerator::writeRelatedLinks(const FakeNode* node, CodeMarker* marke
|
||||
if (node->links().contains(Node::PreviousLink)) {
|
||||
linkPair = node->links()[Node::PreviousLink];
|
||||
linkNode = findNodeForTarget(linkPair.first, node, marker);
|
||||
if (linkNode->type() == Node::Fake) {
|
||||
const FakeNode *fakeNode = static_cast<const FakeNode*>(linkNode);
|
||||
linkPair.second = fakeNode->title();
|
||||
}
|
||||
writeLink(linkNode, linkPair.second, "previous");
|
||||
}
|
||||
if (node->links().contains(Node::NextLink)) {
|
||||
linkPair = node->links()[Node::NextLink];
|
||||
linkNode = findNodeForTarget(linkPair.first, node, marker);
|
||||
if (linkNode->type() == Node::Fake) {
|
||||
const FakeNode *fakeNode = static_cast<const FakeNode*>(linkNode);
|
||||
linkPair.second = fakeNode->title();
|
||||
}
|
||||
writeLink(linkNode, linkPair.second, "next");
|
||||
}
|
||||
if (node->links().contains(Node::StartLink)) {
|
||||
linkPair = node->links()[Node::StartLink];
|
||||
linkNode = findNodeForTarget(linkPair.first, node, marker);
|
||||
if (linkNode->type() == Node::Fake) {
|
||||
const FakeNode *fakeNode = static_cast<const FakeNode*>(linkNode);
|
||||
linkPair.second = fakeNode->title();
|
||||
}
|
||||
writeLink(linkNode, linkPair.second, "parent");
|
||||
}
|
||||
writeEndTag(); // </related-links>
|
||||
|
Loading…
Reference in New Issue
Block a user