Structure tree information tool

This commit is contained in:
Jakub Melka
2020-10-10 14:45:14 +02:00
parent e735c66d5c
commit b0831a84a7
7 changed files with 458 additions and 9 deletions

View File

@@ -530,7 +530,17 @@ void PDFXmlOutputFormatterImpl::beginElement(PDFOutputFormatter::Element type, Q
case PDFOutputFormatter::Element::TableColumn:
case PDFOutputFormatter::Element::TableHeaderColumn:
{
m_streamWriter.writeTextElement(m_namespace, name, description);
if (reference != 0)
{
m_streamWriter.writeStartElement(m_namespace, name);
m_streamWriter.writeAttribute(m_namespace, "ref", QString::number(reference));
m_streamWriter.writeCharacters(description);
m_streamWriter.writeEndElement();
}
else
{
m_streamWriter.writeTextElement(m_namespace, name, description);
}
break;
}