mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
Zip implementation is no longer in C++ but in JavaScript. Runtime customization is now shared between the two Qt executables.
31 lines
559 B
C++
31 lines
559 B
C++
#ifndef ODFVIEW_H
|
|
#define ODFVIEW_H
|
|
|
|
#include <QtWebKit/QWebView>
|
|
#include <QtNetwork/QNetworkAccessManager>
|
|
class NativeIO;
|
|
|
|
class OdfView : public QWebView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
OdfView(QWidget* parent);
|
|
~OdfView();
|
|
QString currentFile() { return curFile; }
|
|
|
|
public slots:
|
|
bool loadFile(const QString &fileName);
|
|
|
|
private slots:
|
|
void slotLoadFinished(bool ok);
|
|
void slotInitWindowObjects();
|
|
|
|
private:
|
|
bool loaded;
|
|
QString curFile;
|
|
QNetworkAccessManager* networkaccessmanager;
|
|
NativeIO* nativeio;
|
|
};
|
|
|
|
#endif // ODFVIEW_H
|