0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-24 16:18:04 +03:00

Anchor has been added to ItemGeometry

This commit is contained in:
Arin Alexander
2019-04-02 22:56:12 +03:00
parent f1f1e443ac
commit de5cc0e0ca
4 changed files with 124 additions and 22 deletions

View File

@@ -56,6 +56,24 @@ class PrintRange;
class ReportDesignWindow;
class ReportExporterInterface;
class ItemGeometryHelper{
public:
ItemGeometryHelper(const ItemGeometry& geometry)
: m_geometry(geometry){}
qreal sceneX();
qreal sceneY();
qreal sceneWidth();
qreal sceneHeight();
QPointF scenePos();
QSizeF sceneSize();
QPointF mapToPage(const PageItemDesignIntf &page);
private:
qreal valueToPixels(qreal value);
private:
const ItemGeometry& m_geometry;
};
class ReportEnginePrivateInterface {
public:
virtual PageDesignIntf* appendPage(const QString& pageName="") = 0;