mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
34 lines
614 B
C++
34 lines
614 B
C++
#ifndef ODFTOHTMLCONVERTER_H
|
|
#define ODFTOHTMLCONVERTER_H
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
class QWebPage;
|
|
class Odf;
|
|
class QTimer;
|
|
|
|
class OdfToHtmlConverter : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
OdfToHtmlConverter(QObject* parent = 0);
|
|
|
|
void convertToHtml(const QString& inputfile, const QString& outputfile);
|
|
signals:
|
|
void conversionFinished();
|
|
private slots:
|
|
void loadOdf();
|
|
void slotInitWindowObjects();
|
|
void periodicCheck();
|
|
private:
|
|
QWebPage* page;
|
|
Odf* odf;
|
|
QTimer* timer;
|
|
QString inputfile;
|
|
QString outputfile;
|
|
|
|
void serialize();
|
|
};
|
|
|
|
#endif // ODFTOHTMLCONVERTER_H
|