Files
WebODF/programs/nativeQtClient/odfview.h
T

30 lines
563 B
C++
Raw Normal View History

2010-06-17 18:30:32 +02:00
#ifndef ODFVIEW_H
#define ODFVIEW_H
2010-06-18 23:04:31 +02:00
#include <QtWebKit/QWebView>
2011-07-26 13:22:33 +02:00
#include <QtNetwork/QNetworkAccessManager>
class NativeIO;
2010-06-17 18:30:32 +02:00
2012-02-15 10:05:37 +01:00
class OdfView : public QWebView {
2010-06-17 18:30:32 +02:00
Q_OBJECT
public:
2012-02-15 10:05:37 +01:00
OdfView(QWidget* parent = 0);
2010-06-18 23:04:31 +02:00
~OdfView();
2010-06-17 18:30:32 +02:00
QString currentFile() { return curFile; }
public slots:
bool loadFile(const QString &fileName);
2010-06-18 23:04:31 +02:00
private slots:
void slotLoadFinished(bool ok);
void slotInitWindowObjects();
2010-06-18 23:04:31 +02:00
2010-06-17 18:30:32 +02:00
private:
2010-06-18 23:04:31 +02:00
bool loaded;
2010-06-17 18:30:32 +02:00
QString curFile;
2011-07-26 13:22:33 +02:00
QNetworkAccessManager* networkaccessmanager;
NativeIO* nativeio;
2010-06-17 18:30:32 +02:00
};
#endif // ODFVIEW_H