Changeset View
Changeset View
Standalone View
Standalone View
filters/karbon/svg/SvgImport.h
Show All 29 Lines | |||||
30 | class KarbonDocument; | 30 | class KarbonDocument; | ||
31 | 31 | | |||
32 | class SvgImport : public KoFilter | 32 | class SvgImport : public KoFilter | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | SvgImport(QObject* parent, const QVariantList&); | 37 | SvgImport(QObject* parent, const QVariantList&); | ||
38 | virtual ~SvgImport(); | 38 | ~SvgImport() override; | ||
39 | 39 | | |||
40 | virtual KoFilter::ConversionStatus convert(const QByteArray& from, const QByteArray& to); | 40 | KoFilter::ConversionStatus convert(const QByteArray& from, const QByteArray& to) override; | ||
41 | 41 | | |||
42 | protected: | 42 | protected: | ||
43 | 43 | | |||
44 | /// The main entry point for the conversion | 44 | /// The main entry point for the conversion | ||
45 | void convert(const KoXmlElement &rootElement); | 45 | void convert(const KoXmlElement &rootElement); | ||
46 | 46 | | |||
47 | /// Builds the document from the given shapes list | 47 | /// Builds the document from the given shapes list | ||
48 | void buildDocument(const QList<KoShape*> &toplevelShapes, const QList<KoShape*> &shapes); | 48 | void buildDocument(const QList<KoShape*> &toplevelShapes, const QList<KoShape*> &shapes); | ||
49 | 49 | | |||
50 | private: | 50 | private: | ||
51 | KarbonDocument * m_document; | 51 | KarbonDocument * m_document; | ||
52 | }; | 52 | }; | ||
53 | 53 | | |||
54 | #endif | 54 | #endif |