* src/Report.py: shortened report dialog by making the Paper
Options a tab of the rest of the options * src/plugins/AncestorReport.py: fix paragraph spacing * src/plugins/Check.py: handle None for family * src/plugins/DescendReport.py: fix paragraph spacing * src/plugins/IndivComplete.py: fix paragraph spacing svn: r5409
This commit is contained in:
@@ -214,7 +214,8 @@ class DescendantOptions(ReportOptions.ReportOptions):
|
||||
p = BaseDoc.ParagraphStyle()
|
||||
p.set_header_level(1)
|
||||
p.set_bottom_border(1)
|
||||
p.set_padding(ReportUtils.pt2cm(6))
|
||||
p.set_top_margin(ReportUtils.pt2cm(3))
|
||||
p.set_bottom_margin(ReportUtils.pt2cm(3))
|
||||
p.set_font(f)
|
||||
p.set_alignment(BaseDoc.PARA_ALIGN_CENTER)
|
||||
p.set_description(_("The style used for the title of the page."))
|
||||
@@ -225,7 +226,8 @@ class DescendantOptions(ReportOptions.ReportOptions):
|
||||
for i in range(1,32):
|
||||
p = BaseDoc.ParagraphStyle()
|
||||
p.set_font(f)
|
||||
p.set_padding(ReportUtils.pt2cm(f.get_size()*0.25))
|
||||
p.set_top_margin(ReportUtils.pt2cm(f.get_size()*0.125))
|
||||
p.set_bottom_margin(ReportUtils.pt2cm(f.get_size()*0.125))
|
||||
p.set_first_indent(-0.5)
|
||||
p.set_left_margin(min(10.0,float(i-0.5)))
|
||||
p.set_description(_("The style used for the level %d display.") % i)
|
||||
@@ -233,7 +235,8 @@ class DescendantOptions(ReportOptions.ReportOptions):
|
||||
|
||||
p = BaseDoc.ParagraphStyle()
|
||||
p.set_font(f)
|
||||
p.set_padding(ReportUtils.pt2cm(f.get_size()*0.25))
|
||||
p.set_top_margin(ReportUtils.pt2cm(f.get_size()*0.125))
|
||||
p.set_bottom_margin(ReportUtils.pt2cm(f.get_size()*0.125))
|
||||
p.set_left_margin(min(10.0,float(i-0.5)))
|
||||
p.set_description(_("The style used for the spouse level %d display.") % i)
|
||||
default_style.add_style("DR-Spouse%d" % i,p)
|
||||
|
Reference in New Issue
Block a user