mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-09 05:57:14 +03:00
Some fixes
This commit is contained in:
@@ -66,6 +66,7 @@ public:
|
||||
virtual bool variableIsSystem(const QString& name) = 0;
|
||||
virtual IDataSource* dataSource(const QString& name) = 0;
|
||||
virtual IDataSourceHolder* dataSourceHolder(const QString& name) = 0;
|
||||
virtual void setDesignTime(bool) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
@@ -3,19 +3,23 @@
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QSettings>
|
||||
#include "lrglobal.h"
|
||||
|
||||
namespace LimeReport {
|
||||
|
||||
class ReportDesignWindowInterface: public QMainWindow{
|
||||
class LIMEREPORT_EXPORT ReportDesignWindowInterface: public QMainWindow{
|
||||
public:
|
||||
ReportDesignWindowInterface(QWidget* parent = 0): QMainWindow(parent){}
|
||||
virtual bool checkNeedToSave() = 0;
|
||||
virtual bool isNeedToSave() = 0;
|
||||
virtual void showModal() = 0;
|
||||
virtual void showNonModal() = 0;
|
||||
virtual void setSettings(QSettings* value) = 0;
|
||||
virtual QSettings* settings() = 0;
|
||||
virtual void restoreSetting() = 0;
|
||||
virtual void saveSettings() = 0;
|
||||
virtual void setShowProgressDialog(bool value) = 0;
|
||||
virtual void newReport(bool needCheck = true) = 0;
|
||||
};
|
||||
|
||||
} // namespace LimeReport
|
||||
|
@@ -148,7 +148,7 @@ class LIMEREPORT_EXPORT ReportEngine : public QObject{
|
||||
friend class PreviewReportWidget;
|
||||
friend class TranslationEditor;
|
||||
public:
|
||||
static void setSettings(QSettings *value){m_settings=value;}
|
||||
void setSettings(QSettings *value){m_settings=value;}
|
||||
public:
|
||||
explicit ReportEngine(QObject *parent = 0);
|
||||
~ReportEngine();
|
||||
@@ -156,6 +156,7 @@ public:
|
||||
bool printReport(QMap<QString, QPrinter*> printers, bool printToAllPrinters = false);
|
||||
bool printPages(ReportPages pages, QPrinter *printer);
|
||||
void printToFile(const QString& fileName);
|
||||
ReportPages renderToPages();
|
||||
QGraphicsScene* createPreviewScene(QObject *parent = 0);
|
||||
bool printToPDF(const QString& fileName);
|
||||
bool exportReport(QString exporterName, const QString &fileName = "", const QMap<QString, QVariant>& params = QMap<QString, QVariant>());
|
||||
@@ -243,7 +244,7 @@ protected:
|
||||
ReportEngine(ReportEnginePrivate &dd, QObject * parent=0);
|
||||
private:
|
||||
Q_DECLARE_PRIVATE(ReportEngine)
|
||||
static QSettings* m_settings;
|
||||
QSettings* m_settings = nullptr;
|
||||
bool m_showDesignerModal;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user