Print: initial implementation of the table print

PrintLayout for now only handles the table print,
while the data output itself is work in progress.
For now there is a simple HTML/CSS table logic based
on QTextDocument. There is an iterative algorithm
which listens for a page increase and adds a heading
on top of the new page.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2013-07-10 19:32:15 +03:00
parent 9dc45af915
commit eb4312c9ba
2 changed files with 60 additions and 2 deletions

View file

@ -19,7 +19,7 @@ private:
QPrinter *printer;
struct options *printOptions;
QPainter painter;
QPainter *painter;
int screenDpiX, screenDpiY, printerDpi;
qreal scaleX, scaleY;
QRect pageRect;
@ -28,6 +28,8 @@ private:
void printSixDives();
void printTwoDives();
void printTable();
QString insertTableHeadingRow();
QString insertTableDataRow();
};
#endif