mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-01 03:29:49 +03:00
Version 1.4 initial commit
This commit is contained in:
@@ -37,12 +37,19 @@ namespace LimeReport{
|
||||
|
||||
XMLWriter::XMLWriter() : m_doc(new QDomDocument)
|
||||
{
|
||||
m_rootElement=m_doc->createElement("Report");
|
||||
m_doc->appendChild(m_rootElement);
|
||||
init();
|
||||
}
|
||||
|
||||
XMLWriter::XMLWriter(QSharedPointer<QDomDocument> doc) : m_doc(doc){
|
||||
init();
|
||||
}
|
||||
|
||||
void XMLWriter::init()
|
||||
{
|
||||
m_rootElement=m_doc->createElement("Report");
|
||||
QDomNode xmlNode = m_doc->createProcessingInstruction("xml",
|
||||
"version=\"1.0\" encoding=\"UTF8\"");
|
||||
m_doc->insertBefore(xmlNode,m_doc->firstChild());
|
||||
m_doc->appendChild(m_rootElement);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user