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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user