0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-02 03:53:19 +03:00

Exporters infrastructure has been added

This commit is contained in:
Arin Alexander
2018-06-23 00:04:28 +03:00
parent 44e37178d0
commit fef507dde0
21 changed files with 275 additions and 40 deletions

View File

@@ -227,6 +227,16 @@ qreal BaseDesignIntf::getItemPosY()
return y() / mmFactor();
}
qreal BaseDesignIntf::getAbsolutePosX()
{
return calcAbsolutePosX(0,this);
}
qreal BaseDesignIntf::getAbsolutePosY()
{
return calcAbsolutePosY(0,this);
}
QString BaseDesignIntf::setItemPosX(qreal xValue)
{
setItemPos(xValue * mmFactor(),y());
@@ -1485,6 +1495,24 @@ void BaseDesignIntf::addChildItems(QList<BaseDesignIntf*>* list){
}
}
qreal BaseDesignIntf::calcAbsolutePosY(qreal currentOffset, BaseDesignIntf *item)
{
BaseDesignIntf* parent = dynamic_cast<BaseDesignIntf*>(item->parent());
if (parent)
return calcAbsolutePosY(currentOffset + item->getItemPosY(), parent);
else
return currentOffset + item->getItemPosY();
}
qreal BaseDesignIntf::calcAbsolutePosX(qreal currentOffset, BaseDesignIntf *item)
{
BaseDesignIntf* parent = dynamic_cast<BaseDesignIntf*>(item->parent());
if (parent)
return calcAbsolutePosX(currentOffset + item->getItemPosX(), parent);
else
return currentOffset + item->getItemPosX();
}
QList<BaseDesignIntf*> BaseDesignIntf::allChildBaseItems()
{
QList<BaseDesignIntf *> resList;