* src/plugins/DetAncestralReport.py (write_person,write_children):
Remove boldface, since it should be handled by the style; (make_default_style): handle boldface heading by the style. * src/plugins/DetDescendantReport.py (write_person, write_children): Remove boldface, since it should be handled by the style; (make_default_style): handle boldface heading by the style. svn: r5206
This commit is contained in:
parent
d2acaa22e0
commit
6e5c529ba1
@ -3,6 +3,13 @@
|
||||
* gramps.sh.in: Revert escaping the arguments, as this lumps all
|
||||
the args into a single word. If filenames contain spaces then they
|
||||
should be escaped by the user.
|
||||
* src/plugins/DetAncestralReport.py (write_person,write_children):
|
||||
Remove boldface, since it should be handled by the style;
|
||||
(make_default_style): handle boldface heading by the style.
|
||||
* src/plugins/DetDescendantReport.py (write_person,
|
||||
write_children): Remove boldface, since it should be handled by
|
||||
the style; (make_default_style): handle boldface heading by the
|
||||
style.
|
||||
|
||||
2005-09-19 Don Allingham <don@gramps-project.org>
|
||||
* src/ReportUtils.py: better string handling
|
||||
|
@ -259,9 +259,7 @@ class DetAncestorReport(Report.Report):
|
||||
|
||||
if person.get_note() != "" and self.includeNotes:
|
||||
self.doc.start_paragraph("DAR-NoteHeader")
|
||||
self.doc.start_bold()
|
||||
self.doc.write_text(_("Notes for %s") % name)
|
||||
self.doc.end_bold()
|
||||
self.doc.end_paragraph()
|
||||
self.doc.write_note(person.get_note(),person.get_note_format(),"DAR-Entry")
|
||||
|
||||
@ -394,10 +392,8 @@ class DetAncestorReport(Report.Report):
|
||||
father_name = _("unknown")
|
||||
|
||||
self.doc.start_paragraph("DAR-ChildTitle")
|
||||
self.doc.start_bold()
|
||||
self.doc.write_text(_("Children of %s and %s are:") %
|
||||
(mother_name,father_name))
|
||||
self.doc.end_bold()
|
||||
self.doc.end_paragraph()
|
||||
|
||||
for child_handle in family.get_child_handle_list():
|
||||
@ -653,7 +649,7 @@ class DetAncestorOptions(ReportOptions.ReportOptions):
|
||||
default_style.add_style("DAR-Generation",para)
|
||||
|
||||
font = BaseDoc.FontStyle()
|
||||
font.set(face=BaseDoc.FONT_SANS_SERIF,size=10,italic=0, bold=0)
|
||||
font.set(face=BaseDoc.FONT_SANS_SERIF,size=10,italic=0, bold=1)
|
||||
para = BaseDoc.ParagraphStyle()
|
||||
para.set_font(font)
|
||||
#para.set_header_level(3)
|
||||
@ -670,7 +666,10 @@ class DetAncestorOptions(ReportOptions.ReportOptions):
|
||||
para.set_description(_('The style used for the children list.'))
|
||||
default_style.add_style("DAR-ChildList",para)
|
||||
|
||||
font = BaseDoc.FontStyle()
|
||||
font.set(face=BaseDoc.FONT_SANS_SERIF,size=10,italic=0, bold=1)
|
||||
para = BaseDoc.ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set(first_indent=0.0,lmargin=0.0,pad=0.25)
|
||||
default_style.add_style("DAR-NoteHeader",para)
|
||||
|
||||
|
@ -282,9 +282,7 @@ class DetDescendantReport(Report.Report):
|
||||
|
||||
if person.get_note() and self.includeNotes:
|
||||
self.doc.start_paragraph("DDR-NoteHeader")
|
||||
self.doc.start_bold()
|
||||
self.doc.write_text(_("Notes for %s") % name)
|
||||
self.doc.end_bold()
|
||||
self.doc.end_paragraph()
|
||||
self.doc.write_note(person.get_note(),person.get_note_format(),"DDR-Entry")
|
||||
|
||||
@ -418,10 +416,8 @@ class DetDescendantReport(Report.Report):
|
||||
father_name = _("unknown")
|
||||
|
||||
self.doc.start_paragraph("DDR-ChildTitle")
|
||||
self.doc.start_bold()
|
||||
self.doc.write_text(_("Children of %s and %s are:") %
|
||||
(mother_name,father_name))
|
||||
self.doc.end_bold()
|
||||
self.doc.end_paragraph()
|
||||
|
||||
for child_handle in family.get_child_handle_list():
|
||||
@ -678,7 +674,7 @@ class DetDescendantOptions(ReportOptions.ReportOptions):
|
||||
default_style.add_style("DDR-Generation",para)
|
||||
|
||||
font = BaseDoc.FontStyle()
|
||||
font.set(face=BaseDoc.FONT_SANS_SERIF,size=10,italic=0, bold=0)
|
||||
font.set(face=BaseDoc.FONT_SANS_SERIF,size=10,italic=0, bold=1)
|
||||
para = BaseDoc.ParagraphStyle()
|
||||
para.set_font(font)
|
||||
#para.set_header_level(3)
|
||||
@ -695,7 +691,10 @@ class DetDescendantOptions(ReportOptions.ReportOptions):
|
||||
para.set_description(_('The style used for the children list.'))
|
||||
default_style.add_style("DDR-ChildList",para)
|
||||
|
||||
font = BaseDoc.FontStyle()
|
||||
font.set(face=BaseDoc.FONT_SANS_SERIF,size=10,italic=0, bold=1)
|
||||
para = BaseDoc.ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set(first_indent=0.0,lmargin=1.0,pad=0.25)
|
||||
para.set_description(_('The style used for the notes section header.'))
|
||||
default_style.add_style("DDR-NoteHeader",para)
|
||||
|
Loading…
Reference in New Issue
Block a user