2019-05-29 16:32:58 +03:00
|
|
|
#ifndef LRPREPAREDPAGES_H
|
|
|
|
#define LRPREPAREDPAGES_H
|
|
|
|
|
|
|
|
#include "lrpagedesignintf.h"
|
|
|
|
#include "lrpreparedpagesintf.h"
|
|
|
|
|
|
|
|
namespace LimeReport {
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
class PreparedPages: public IPreparedPages {
|
2019-05-29 16:32:58 +03:00
|
|
|
public:
|
2024-09-04 17:31:16 +03:00
|
|
|
PreparedPages(ReportPages* pages): m_pages(pages) { }
|
|
|
|
~PreparedPages() { }
|
|
|
|
// IPreviewPages interface
|
2019-05-29 16:32:58 +03:00
|
|
|
private:
|
2024-09-04 17:31:16 +03:00
|
|
|
bool loadFromFile(const QString& fileName);
|
2019-05-29 16:32:58 +03:00
|
|
|
bool loadFromString(const QString data);
|
2024-09-04 17:31:16 +03:00
|
|
|
bool loadFromByteArray(QByteArray* data);
|
|
|
|
bool saveToFile(const QString& fileName);
|
2019-05-29 16:32:58 +03:00
|
|
|
QString saveToString();
|
|
|
|
QByteArray saveToByteArray();
|
|
|
|
void clear();
|
2024-09-04 17:31:16 +03:00
|
|
|
|
2019-05-29 16:32:58 +03:00
|
|
|
private:
|
|
|
|
bool readPages(ItemsReaderIntf::Ptr reader);
|
|
|
|
ReportPages* m_pages;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace LimeReport
|
|
|
|
|
|
|
|
#endif // LRPREPAREDPAGES_H
|