mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-20 06:30:03 +03:00
TOC has been added
This commit is contained in:
@@ -50,7 +50,7 @@ PageItemDesignIntf::PageItemDesignIntf(QObject *owner, QGraphicsItem *parent) :
|
||||
m_topMargin(0), m_bottomMargin(0), m_leftMargin(0), m_rightMargin(0),
|
||||
m_pageOrientaion(Portrait), m_pageSize(A4), m_sizeChainging(false),
|
||||
m_fullPage(false), m_oldPrintMode(false), m_resetPageNumber(false),
|
||||
m_isExtendedInDesignMode(false), m_extendedHeight(1000)
|
||||
m_isExtendedInDesignMode(false), m_extendedHeight(1000), m_isTOC(false)
|
||||
{
|
||||
setFixedPos(true);
|
||||
setPossibleResizeDirectionFlags(Fixed);
|
||||
@@ -63,7 +63,7 @@ PageItemDesignIntf::PageItemDesignIntf(const PageSize pageSize, const QRectF &re
|
||||
m_topMargin(0), m_bottomMargin(0), m_leftMargin(0), m_rightMargin(0),
|
||||
m_pageOrientaion(Portrait), m_pageSize(pageSize), m_sizeChainging(false),
|
||||
m_fullPage(false), m_oldPrintMode(false), m_resetPageNumber(false),
|
||||
m_isExtendedInDesignMode(false), m_extendedHeight(1000)
|
||||
m_isExtendedInDesignMode(false), m_extendedHeight(1000), m_isTOC(false)
|
||||
{
|
||||
setFixedPos(true);
|
||||
setPossibleResizeDirectionFlags(Fixed);
|
||||
@@ -331,6 +331,36 @@ void PageItemDesignIntf::initColumnsPos(QVector<qreal> &posByColumns, qreal pos,
|
||||
}
|
||||
}
|
||||
|
||||
QString PageItemDesignIntf::initScript() const
|
||||
{
|
||||
return m_initScript;
|
||||
}
|
||||
|
||||
void PageItemDesignIntf::setInitScript(const QString& value)
|
||||
{
|
||||
if (m_initScript.compare(value) != 0){
|
||||
QString old_value = m_initScript;
|
||||
m_initScript = value;
|
||||
if (!isLoading())
|
||||
notify("initScript", old_value, value);
|
||||
}
|
||||
}
|
||||
|
||||
bool PageItemDesignIntf::getIsTOC() const
|
||||
{
|
||||
return m_isTOC;
|
||||
}
|
||||
|
||||
void PageItemDesignIntf::setIsTOC(bool isTOC)
|
||||
{
|
||||
if (m_isTOC != isTOC){
|
||||
m_isTOC = isTOC;
|
||||
if (!isLoading()){
|
||||
notify("pageIsTOC", !isTOC, isTOC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int PageItemDesignIntf::extendedHeight() const
|
||||
{
|
||||
return m_extendedHeight;
|
||||
|
||||
Reference in New Issue
Block a user