mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-09 14:04:43 +03:00
Prepared pages processing has been refactored
This commit is contained in:
29
limereport/lrpreparedpages.h
Normal file
29
limereport/lrpreparedpages.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef LRPREPAREDPAGES_H
|
||||
#define LRPREPAREDPAGES_H
|
||||
|
||||
#include "lrpagedesignintf.h"
|
||||
#include "lrpreparedpagesintf.h"
|
||||
|
||||
namespace LimeReport {
|
||||
|
||||
class PreparedPages: public IPreparedPages{
|
||||
public:
|
||||
PreparedPages(ReportPages* pages):m_pages(pages){}
|
||||
~PreparedPages(){}
|
||||
// IPreviewPages interface
|
||||
private:
|
||||
bool loadFromFile(const QString &fileName);
|
||||
bool loadFromString(const QString data);
|
||||
bool loadFromByteArray(QByteArray *data);
|
||||
bool saveToFile(const QString &fileName);
|
||||
QString saveToString();
|
||||
QByteArray saveToByteArray();
|
||||
void clear();
|
||||
private:
|
||||
bool readPages(ItemsReaderIntf::Ptr reader);
|
||||
ReportPages* m_pages;
|
||||
};
|
||||
|
||||
} // namespace LimeReport
|
||||
|
||||
#endif // LRPREPAREDPAGES_H
|
Reference in New Issue
Block a user