0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 08:28:06 +03:00

getPageFreeSpace(page) has been added to script function manager

This commit is contained in:
Arin Alexander
2021-04-12 20:22:34 +03:00
parent 3376ea7c08
commit 03963f3685
4 changed files with 59 additions and 33 deletions

View File

@@ -199,9 +199,9 @@ public:
void setInitScript(const QString& initScript);
bool runInitScript();
BandDesignIntf* getCurrentBand() const;
BandDesignIntf* currentBand() const;
void setCurrentBand(BandDesignIntf* currentBand);
PageItemDesignIntf* getCurrentPage() const;
PageItemDesignIntf* currentPage() const;
void setCurrentPage(PageItemDesignIntf* currentPage);
TableOfContents* tableOfContents() const;
void setTableOfContents(TableOfContents* tableOfContents);
@@ -389,6 +389,7 @@ public:
Q_INVOKABLE QScriptValue createWrapper(QScriptValue item);
#endif
Q_INVOKABLE QFont font(QVariantMap params);
Q_INVOKABLE int getPageFreeSpace(QObject *page);
ScriptEngineManager *scriptEngineManager() const;
void setScriptEngineManager(ScriptEngineManager *scriptEngineManager);
static QColor createQColor(const QString& color){ return QColor(color);}
@@ -473,6 +474,7 @@ public:
int findPageIndexByBookmark(const QString& uniqKey);
void addTableOfContentsItem(const QString& uniqKey, const QString& content, int indent);
void clearTableOfContents();
int getPageFreeSpace(PageItemDesignIntf *page);
ScriptValueType moveQObjectToScript(QObject* object, const QString objectName);
protected:
void updateModel();