|
|
@ -654,28 +654,24 @@ QDomElement UBCFFAdaptor::UBToCFFConverter::parseSvgPageSection(const QDomElemen |
|
|
|
|
|
|
|
|
|
|
|
void UBCFFAdaptor::UBToCFFConverter::writeQDomElementToXML(const QDomNode &node) |
|
|
|
void UBCFFAdaptor::UBToCFFConverter::writeQDomElementToXML(const QDomNode &node) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!node.isNull()) |
|
|
|
if (!node.isNull()) { |
|
|
|
if (node.isText()) |
|
|
|
if (node.isText()) |
|
|
|
{
|
|
|
|
mIWBContentWriter->writeCharacters(node.nodeValue()); |
|
|
|
mIWBContentWriter->writeCharacters(node.nodeValue()); |
|
|
|
else { |
|
|
|
}
|
|
|
|
mIWBContentWriter->writeStartElement(node.namespaceURI(), node.toElement().tagName()); |
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
for (int i = 0; i < node.toElement().attributes().count(); i++) { |
|
|
|
mIWBContentWriter->writeStartElement(node.namespaceURI(), node.toElement().tagName()); |
|
|
|
QDomAttr attr = node.toElement().attributes().item(i).toAttr(); |
|
|
|
|
|
|
|
mIWBContentWriter->writeAttribute(attr.name(), attr.value()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
QDomNode child = node.firstChild(); |
|
|
|
|
|
|
|
while(!child.isNull()) { |
|
|
|
|
|
|
|
writeQDomElementToXML(child); |
|
|
|
|
|
|
|
child = child.nextSibling(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < node.toElement().attributes().count(); i++) |
|
|
|
mIWBContentWriter->writeEndElement(); |
|
|
|
{ |
|
|
|
|
|
|
|
QDomAttr attr = node.toElement().attributes().item(i).toAttr(); |
|
|
|
|
|
|
|
mIWBContentWriter->writeAttribute(attr.name(), attr.value()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
QDomNode child = node.firstChild(); |
|
|
|
|
|
|
|
while(!child.isNull()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
writeQDomElementToXML(child); |
|
|
|
|
|
|
|
child = child.nextSibling(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
mIWBContentWriter->writeEndElement(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|