* src/plugins/FtmStyleDescendants.py (_make_default_style,

print_children): Add new style for numbering children.


svn: r3062
This commit is contained in:
Alex Roitman 2004-03-26 23:28:55 +00:00
parent 44c1b553db
commit bbc7cc696e
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-01-26 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/FtmStyleDescendants.py (_make_default_style,
print_children): Add new style for numbering children.
2004-03-24 Don Allingham <dallingham@users.sourceforge.net>
* src/gramps_main.py: remove unused functions, fix history
* src/FamilyView.py: improve reordering of children

View File

@ -658,13 +658,13 @@ class FtmDescendantReport(Report.Report):
self.doc.start_row()
self.doc.start_cell('FTD-Normal')
self.doc.start_paragraph('FTD-Details')
self.doc.start_paragraph('FTD-Child-Num')
self.doc.write_text("%d." % index)
self.doc.end_paragraph()
self.doc.end_cell()
self.doc.start_cell('FTD-Normal')
self.doc.start_paragraph('FTD-Details')
self.doc.start_paragraph('FTD-Child-Num')
self.doc.write_text("%s." % string.lower(Utils.roman(child_index)))
self.doc.end_paragraph()
self.doc.end_cell()
@ -1395,6 +1395,11 @@ def _make_default_style(default_style):
para.set_description(_('The basic style used for the text display.'))
default_style.add_style("FTD-Details",para)
para = BaseDoc.ParagraphStyle()
para.set(lmargin=0.0,pad=0.05)
para.set_description(_('The style used for numbering children.'))
default_style.add_style("FTD-Child-Num",para)
para = BaseDoc.ParagraphStyle()
para.set(lmargin=1.0,pad=0.25)
para.set_description(_('The basic style used for the text display.'))