14 #include <QXmlStreamWriter>
17 #include "XmlStackedHandler.h"
61 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
62 const QString &qName,
const QXmlAttributes &atts);
74 QString m_templateType;
File name manipulation and expansion.
The main project for ipce.
FileName m_xmlHandlerTemplateFolderName
The name of the folder for the template xml.
Template * m_xmlHandlerTemplate
A pointer to the Template object to be read or written.
XmlHandler(Template *currentTemplate, FileName templateFolder)
Constructor for the Template object's XmlHandler.
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Method to read the given XML formatted attribute for a Template object into the XmlHandler.
Template(QString fileName, QString templateType, QString importName, QObject *parent=0)
Create a Template from template file's name.
QString fileName() const
Get the file name that this Template represents.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Method to write this Template object's member data to an XML stream.
QString templateType() const
Get the type of template.
void deleteFromDisk()
Delete the template from disk.
~Template()
Destroys Template object.
void updateFileName(Project *project)
Change the file name for this template to be where it now is with the given project.
QString importName() const
Get the name of the TemplateList this file was imported under.
XML Handler that parses XMLs in a stack-oriented way.
Manage a stack of content handlers for reading XML files.
This is free and unencumbered software released into the public domain.