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>
|
|
|
|
|
|
|
|
|
|
class OdfContainer;
|
2010-06-17 18:30:32 +02:00
|
|
|
|
|
|
|
|
class OdfView : public QWebView
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
OdfView();
|
2010-06-18 23:04:31 +02:00
|
|
|
~OdfView();
|
2010-06-17 18:30:32 +02:00
|
|
|
bool loadFile(const QString &fileName);
|
|
|
|
|
QString currentFile() { return curFile; }
|
|
|
|
|
|
2010-06-18 23:04:31 +02:00
|
|
|
private slots:
|
|
|
|
|
void slotLoadFinished(bool ok);
|
|
|
|
|
|
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;
|
2010-06-18 23:04:31 +02:00
|
|
|
class OdfNetworkAccessManager;
|
|
|
|
|
OdfNetworkAccessManager* networkaccessmanager;
|
|
|
|
|
OdfContainer* odfcontainer;
|
2010-06-17 18:30:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // ODFVIEW_H
|