Adjust available paper height in DescendChart.py and AncestorChart.py when
report is forced onto one page, so that it won't draw on the bottom margin. svn: r9052
This commit is contained in:
parent
3a98a3166e
commit
99119d189a
@ -1,3 +1,9 @@
|
|||||||
|
2007-10-01 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||||
|
* src/plugins/DescendChart.py:
|
||||||
|
* src/plugins/AncestorChart.py:
|
||||||
|
Adjust available paper height when report is forced onto one page,
|
||||||
|
so that it won't draw on the bottom margin.
|
||||||
|
|
||||||
2007-10-01 Benny Malengier <benny.malengier@gramps-project.org>
|
2007-10-01 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
* src/GrampsDb/_DbUtils.py: do deep copy of bookmarks from old to new db
|
* src/GrampsDb/_DbUtils.py: do deep copy of bookmarks from old to new db
|
||||||
* src/GrampsDb/_GrampsXMLDB.py: in load_from: load correct bookmarks
|
* src/GrampsDb/_GrampsXMLDB.py: in load_from: load correct bookmarks
|
||||||
|
@ -286,9 +286,13 @@ class AncestorChart(Report):
|
|||||||
pstyle = style_sheet.get_paragraph_style("AC2-Title")
|
pstyle = style_sheet.get_paragraph_style("AC2-Title")
|
||||||
tfont = pstyle.get_font()
|
tfont = pstyle.get_font()
|
||||||
self.offset = pt2cm(1.25 * tfont.get_size())
|
self.offset = pt2cm(1.25 * tfont.get_size())
|
||||||
|
|
||||||
|
gstyle = style_sheet.get_draw_style("AC2-box")
|
||||||
|
shadow_height = gstyle.get_shadow_space()
|
||||||
else:
|
else:
|
||||||
self.offset = 0
|
self.offset = 0
|
||||||
self.uh = self.doc.get_usable_height() - self.offset
|
shadow_height = 0
|
||||||
|
self.uh = self.doc.get_usable_height() - self.offset - shadow_height
|
||||||
uw = self.doc.get_usable_width() - pt2cm(self.box_pad_pts)
|
uw = self.doc.get_usable_width() - pt2cm(self.box_pad_pts)
|
||||||
|
|
||||||
calc_width = pt2cm(self.box_width + self.box_pad_pts) + 0.2
|
calc_width = pt2cm(self.box_width + self.box_pad_pts) + 0.2
|
||||||
|
@ -263,9 +263,13 @@ class DescendChart(Report):
|
|||||||
pstyle = style_sheet.get_paragraph_style("DC2-Title")
|
pstyle = style_sheet.get_paragraph_style("DC2-Title")
|
||||||
tfont = pstyle.get_font()
|
tfont = pstyle.get_font()
|
||||||
self.offset = pt2cm(1.25 * tfont.get_size())
|
self.offset = pt2cm(1.25 * tfont.get_size())
|
||||||
|
|
||||||
|
gstyle = style_sheet.get_draw_style("DC2-box")
|
||||||
|
shadow_height = gstyle.get_shadow_space()
|
||||||
else:
|
else:
|
||||||
self.offset = 0
|
self.offset = 0
|
||||||
self.uh = self.doc.get_usable_height() - self.offset
|
shadow_height = 0
|
||||||
|
self.uh = self.doc.get_usable_height() - self.offset - shadow_height
|
||||||
uw = self.doc.get_usable_width() - pt2cm(self.box_pad_pts)
|
uw = self.doc.get_usable_width() - pt2cm(self.box_pad_pts)
|
||||||
|
|
||||||
calc_width = pt2cm(self.box_width + self.box_pad_pts) + self.box_gap
|
calc_width = pt2cm(self.box_width + self.box_pad_pts) + self.box_gap
|
||||||
|
Loading…
Reference in New Issue
Block a user