From 6e5c529ba1b1daeda4beeb8916316e7f8322ba26 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 21 Sep 2005 02:49:42 +0000 Subject: [PATCH] * 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 --- gramps2/ChangeLog | 7 +++++++ gramps2/src/plugins/DetAncestralReport.py | 9 ++++----- gramps2/src/plugins/DetDescendantReport.py | 9 ++++----- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 78387c958..4eba9c37d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -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 * src/ReportUtils.py: better string handling diff --git a/gramps2/src/plugins/DetAncestralReport.py b/gramps2/src/plugins/DetAncestralReport.py index dc8c756b0..6f9a6fd75 100644 --- a/gramps2/src/plugins/DetAncestralReport.py +++ b/gramps2/src/plugins/DetAncestralReport.py @@ -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) diff --git a/gramps2/src/plugins/DetDescendantReport.py b/gramps2/src/plugins/DetDescendantReport.py index ca7b06119..974902e73 100644 --- a/gramps2/src/plugins/DetDescendantReport.py +++ b/gramps2/src/plugins/DetDescendantReport.py @@ -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)