diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-08-13 23:23:07 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-08-15 15:04:45 +0300 |
commit | 6a9c4cb9d794056ccb75e6a0d35cde060473b71e (patch) | |
tree | 1bf1ce46d2c34dfd257fcf813a4bb564cbb5281a /printer.h | |
parent | 31df69c401ad8995d8201242a1db1b74de19a18a (diff) | |
download | subsurface-6a9c4cb9d794056ccb75e6a0d35cde060473b71e.tar.gz |
Printing: don't break dives into successive pages
While rendering a template with "0" dives per page value, try to fit
as many dives per page but don't break a dive into 2 pages.
Use a dynamically sized view port to fit the rendered area only,
and don't render the full page.
All the Template elements that shouldn't be broken should have
the CSS class "dontbreak".
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Diffstat (limited to 'printer.h')
-rw-r--r-- | printer.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -29,6 +29,7 @@ private: int done; int dpi; void render(int Pages); + void flowRender(); void putProfileImage(QRect box, QRect viewPort, QPainter *painter, struct dive *dive, QPointer<ProfileWidget2> profile); private slots: |