Commit d465bbfd authored by Boudewijn Rempt's avatar Boudewijn Rempt

Add placeholders for metadata for the symbol collection

parent 3a28b5e7
......@@ -142,3 +142,42 @@ QString KoSvgSymbolCollectionResource::defaultFileExtension() const
return QString(".svg");
}
QString KoSvgSymbolCollectionResource::title() const
{
return "";
}
QString KoSvgSymbolCollectionResource::description() const
{
return "";
}
QString KoSvgSymbolCollectionResource::creator() const
{
return "";
}
QString KoSvgSymbolCollectionResource::rights() const
{
return "";
}
QString KoSvgSymbolCollectionResource::language() const
{
return "";
}
QStringList KoSvgSymbolCollectionResource::subjects() const
{
return QStringList();
}
QString KoSvgSymbolCollectionResource::license() const
{
return "";
}
QStringList KoSvgSymbolCollectionResource::permits() const
{
return QStringList();
}
......@@ -32,15 +32,15 @@ class KoShape;
struct KoSvgSymbol {
KoSvgSymbol() {}
KoSvgSymbol(const QString &_name)
: name(_name) {}
KoSvgSymbol(const QString &_title)
: title(_title) {}
QString name;
QString id;
QString title;
KoShape *shape;
bool operator==(const KoSvgSymbol& rhs) const {
return name == rhs.name;
return title == rhs.title;
}
};
......@@ -71,7 +71,14 @@ public:
QString defaultFileExtension() const override;
QString title() const;
QString description() const;
QString creator() const;
QString rights() const;
QString language() const;
QStringList subjects() const;
QString license() const;
QStringList permits() const;
private:
......
......@@ -111,6 +111,11 @@ QList<KoShape*> SvgParser::shapes() const
return m_shapes;
}
QVector<KoSvgSymbol *> SvgParser::symbols() const
{
return m_symbols;
}
// Helper functions
// ---------------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment