rocs/RocsCore
KmlFileFormatPlugin.cpp
Go to the documentation of this file.
72 setError(FileIsReadOnly, i18n("Cannot open file %1: %2", file().fileName(), fileHandle.errorString()));
void writeNamespace(const QString &namespaceUri, const QString &prefix)
QString errorString() const
void chop(int n)
static DataStructureBackendManager & self()
Returns self reference to backend manager.
Definition: DataStructureBackendManager.cpp:233
~KmlFileFormatPlugin()
Definition: KmlFileFormatPlugin.cpp:54
void setError(Error error, QString message=QString())
Definition: GraphFilePluginInterface.cpp:83
DataStructurePtr addDataStructure(const QString &name=QString())
Add data structure to graph document with name name.
Definition: Document.cpp:333
DataStructurePtr activeDataStructure() const
Definition: Document.cpp:431
class KmlFileFormatPlugin: Export and Import Plugin for KML files
Definition: KmlFileFormatPlugin.h:30
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
virtual const QStringList extensions() const
File extensions that are common for this file type.
Definition: KmlFileFormatPlugin.cpp:59
static const KAboutData aboutdata("rocs_kmlfileformat", 0, ki18nc("@title Displayed plugin name","KML File Backend"),"0.1", ki18n("Read and write Keyhole Markup Language (KML) files."), KAboutData::License_GPL_V2)
Definition: Document.h:41
void setBackend(const QString &pluginIdentifier)
Change the active backend.
Definition: DataStructureBackendManager.cpp:240
void setAutoFormatting(bool enable)
virtual void readFile()
Open given file and imports it into internal format.
Definition: KmlFileFormatPlugin.cpp:142
void writeEndDocument()
const QChar at(int position) const
virtual void setErrorHandler(QXmlErrorHandler *handler)
Definition: KmlHandler.h:29
virtual bool parse(const QXmlInputSource &input)
void setGraphDocument(Document *document)
Definition: GraphFilePluginInterface.cpp:108
void writeStartDocument()
virtual void writeFile(Document &graph)
Writes given graph document to formerly specified file.
Definition: KmlFileFormatPlugin.cpp:66
void writeCharacters(const QString &text)
const KUrl & file() const
Definition: GraphFilePluginInterface.cpp:120
This class provides an interface for graph file format plugins.
Definition: GraphFilePluginInterface.h:42
void writeEndElement()
void writeStartElement(const QString &qualifiedName)
virtual void setContentHandler(QXmlContentHandler *handler)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.