bool MReportEngine::setReportTemplate(QDomNode &d) { clearFormatting(); *rt = d.cloneNode(true).toDocument(); initTemplate(); return true; }
// Set the report's template from an i/o device. Return true if it was a valid // template. bool MReportEngine::setReportTemplate(QIODevice *dev) { clearFormatting(); if (!rt->setContent(dev)) { qWarning("Unable to parse report template"); return false; } initTemplate(); return true; }
// Set the report's template from an inline string. Return true if it was a // valid template. bool MReportEngine::setReportTemplate(const QString &tpl) { clearFormatting(); if (!rt->setContent(tpl)) { qWarning("Unable to parse report template"); return false; } initTemplate(); return true; }
VNote::VNote(QObject *parent) : QObject(parent) { initTemplate(); g_config->getNotebooks(m_notebooks, this); m_metaWordMgr.init(); g_mwMgr = &m_metaWordMgr; }
View::View(const char* name) { m_dict = initTemplate(name); }