File indexing completed on 2024-04-14 14:16:42

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2006-2007 Torsten Rahn <tackat@kde.org>
0004 // SPDX-FileCopyrightText: 2007 Inge Wallin <ingwa@kde.org>
0005 //
0006 
0007 
0008 #ifndef SVGXMLHANDLER_H
0009 #define SVGXMLHANDLER_H
0010 
0011 
0012 #include <QString>
0013 #include <QDataStream>
0014 #include <QXmlDefaultHandler>
0015 
0016 
0017 class SVGXmlHandler : public QXmlDefaultHandler
0018 {
0019  public:
0020     SVGXmlHandler( QDataStream * out, const QString & path, int header );
0021     // virtual bool startDocument();
0022     // virtual bool endDocument();
0023     bool  startElement(const QString&, const QString&, const QString&,
0024                                const QXmlAttributes&) override;
0025     // virtual bool endElement();
0026 
0027  private:
0028     QDataStream * m_stream;
0029     int      m_header;
0030     QString  m_path;
0031 };
0032 
0033 
0034 #endif // SVGXMLHANDLER_H