* src/docgen/Makefile.am: Remove AbiWordDoc.py from the list.

* src/plugins/DetAncestralReport.py (write_person): Call write_note().
* src/plugins/DetDescendantReport.py (write_person): Call write_note().
* src/plugins/FtmStyleAncestors.py (print_notes): Call write_note().
* src/plugins/IndivComplete.py (write_note): Call doc.write_note().
* src/plugins/WebPage.py (write_gallery,write_notes): Call write_note().


svn: r2523
This commit is contained in:
Alex Roitman 2003-12-15 04:18:51 +00:00
parent e5fe097315
commit f829336c33
7 changed files with 21 additions and 24 deletions

View File

@ -2,6 +2,12 @@
* src/dialog.glade: Add format controls for notes. * src/dialog.glade: Add format controls for notes.
* src/marriage.glade: Add format controls for notes. * src/marriage.glade: Add format controls for notes.
* src/gramps.glade: Add format controls for notes. * src/gramps.glade: Add format controls for notes.
* src/docgen/Makefile.am: Remove AbiWordDoc.py from the list.
* src/plugins/DetAncestralReport.py (write_person): Call write_note().
* src/plugins/DetDescendantReport.py (write_person): Call write_note().
* src/plugins/FtmStyleAncestors.py (print_notes): Call write_note().
* src/plugins/IndivComplete.py (write_note): Call doc.write_note().
* src/plugins/WebPage.py (write_gallery,write_notes): Call write_note().
2003-12-13 Alex Roitman <shura@alex.neuro.umn.edu> 2003-12-13 Alex Roitman <shura@alex.neuro.umn.edu>
* src/docgen/KwordDoc.py (write_note): Implement function. * src/docgen/KwordDoc.py (write_note): Implement function.

View File

@ -4,7 +4,6 @@
pkgpython_PYTHON = \ pkgpython_PYTHON = \
AbiWord2Doc.py\ AbiWord2Doc.py\
AbiWordDoc.py\
HtmlDoc.py\ HtmlDoc.py\
KwordDoc.py\ KwordDoc.py\
LaTeXDoc.py\ LaTeXDoc.py\

View File

@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# $Id$
"Generate files/Detailed Ancestral Report" "Generate files/Detailed Ancestral Report"
import RelLib import RelLib
@ -245,9 +247,7 @@ class DetAncestorReport(Report.Report):
self.doc.write_text(_("Notes for %s" % name)) self.doc.write_text(_("Notes for %s" % name))
self.doc.end_bold() self.doc.end_bold()
self.doc.end_paragraph() self.doc.end_paragraph()
self.doc.start_paragraph("DAR-Entry") self.doc.write_note(person.getNote(),person.getNoteFormat(),"DAR-Entry")
self.doc.write_text(person.getNote())
self.doc.end_paragraph()
return 0 # Not duplicate person return 0 # Not duplicate person

View File

@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# $Id$
"Generate files/Detailed Descendant Report" "Generate files/Detailed Descendant Report"
import RelLib import RelLib
@ -252,9 +254,7 @@ class DetDescendantReport(Report.Report):
self.doc.write_text(_("Notes for %s" % name)) self.doc.write_text(_("Notes for %s" % name))
self.doc.end_bold() self.doc.end_bold()
self.doc.end_paragraph() self.doc.end_paragraph()
self.doc.start_paragraph("DDR-Entry") self.doc.write_note(person.getNote(),person.getNoteFormat(),"DDR-Entry")
self.doc.write_text(person.getNote())
self.doc.end_paragraph()
return 0 # Not duplicate person return 0 # Not duplicate person

View File

@ -480,10 +480,8 @@ class FtmAncestorReport(Report.Report):
self.doc.write_text(_('Notes for %(person)s:') % { self.doc.write_text(_('Notes for %(person)s:') % {
'person' : person.getPrimaryName().getRegularName()} ) 'person' : person.getPrimaryName().getRegularName()} )
self.doc.end_paragraph() self.doc.end_paragraph()
for line in note.split('\n'): format = person.getNoteFormat()
self.doc.start_paragraph('FTA-Details') self.doc.write_note(note,format,'FTA-Details')
self.doc.write_text(line.strip())
self.doc.end_paragraph()
def print_more_about(self,person): def print_more_about(self,person):

View File

@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# $Id$
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #
# standard python modules # standard python modules
@ -170,10 +172,8 @@ class IndivComplete(Report.Report):
self.d.start_row() self.d.start_row()
self.d.start_cell('IDS-NormalCell',2) self.d.start_cell('IDS-NormalCell',2)
for line in string.split(note,'\n'): format = person.getNoteFormat()
self.d.start_paragraph('IDS-Normal') self.doc.write_note(note,format,'IDS-Normal')
self.d.write_text(line)
self.d.end_paragraph()
self.d.end_cell() self.d.end_cell()
self.d.end_row() self.d.end_row()

View File

@ -443,13 +443,9 @@ class IndividualPage:
self.doc.write_text(description) self.doc.write_text(description)
self.doc.end_paragraph() self.doc.end_paragraph()
if obj.getNote() != "": if obj.getNote() != "":
self.doc.start_paragraph("PhotoNote") self.doc.write_note(obj.getNote(),obj.getNoteFormat(),"PhotoNote")
self.doc.write_text(obj.getNote())
self.doc.end_paragraph()
elif obj.getReference().getNote() != "": elif obj.getReference().getNote() != "":
self.doc.start_paragraph("PhotoNote") self.doc.write_note(obj.getReference().getNote(),obj.getReference().getNoteFormat(),"PhotoNote")
self.doc.write_text(obj.getReference().getNote())
self.doc.end_paragraph()
self.doc.end_cell() self.doc.end_cell()
self.doc.end_row() self.doc.end_row()
except IOError: except IOError:
@ -521,9 +517,7 @@ class IndividualPage:
self.doc.write_text(_("Notes")) self.doc.write_text(_("Notes"))
self.doc.end_paragraph() self.doc.end_paragraph()
self.doc.start_paragraph("NotesParagraph") self.doc.write_note(self.person.getNote(),self.person.getNoteFormat(),"NotesParagraph")
self.doc.write_text(self.person.getNote())
self.doc.end_paragraph()
def write_fam_fact(self,event): def write_fam_fact(self,event):