53 #include "../ifc/xml/vlabeltemplateconverter.h"
67 QDomElement templateElement = this->createElement(
TagTemplate);
69 QDomElement version = createElement(
TagVersion);
71 version.appendChild(newNodeText);
72 templateElement.appendChild(version);
74 templateElement.appendChild(createElement(
TagLines));
76 this->appendChild(templateElement);
77 insertBefore(createProcessingInstruction(
"xml",
"version=\"1.0\" encoding=\"UTF-8\""), this->firstChild());
83 const QDomNodeList listLines = elementsByTagName(
TagLines);
84 if (listLines.size() == 0)
89 QDomElement tag = listLines.at(0).toElement();
96 const QDomNodeList listLines = elementsByTagName(
TagLines);
97 if (listLines.size() == 0)
The VDomDocument class represents a Seamly2D document (.val file).
void SetLabelTemplate(QDomElement &element, const QVector< VLabelTemplateLine > &lines)
static const QString TagVersion
QVector< VLabelTemplateLine > GetLabelTemplate(const QDomElement &element) const
static const QString LabelTemplateMaxVerStr
static const QString TagLines
void AddLines(const QVector< VLabelTemplateLine > &lines)
static const QString TagTemplate
void CreateEmptyTemplate()
QVector< VLabelTemplateLine > ReadLines() const