svn: r3835
This commit is contained in:
Alex Roitman 2004-12-23 18:00:21 +00:00
parent a4662dc4b7
commit 66bc5b5807
4 changed files with 45 additions and 5 deletions

View File

@ -753,25 +753,65 @@ class ReportOptions:
pass
def get_document(self):
"""
Return document instance.
This method MUST NOT be overridden by subclasses.
"""
return self.handler.doc
def set_document(self,val):
"""
Set document to a given instance.
This method MUST NOT be overridden by subclasses.
"""
self.handler.doc = val
def get_output(self):
"""
Return document output destination.
This method MUST NOT be overridden by subclasses.
"""
return self.handler.output
def set_output(self,val):
"""
Set output destination to a given string.
This method MUST NOT be overridden by subclasses.
"""
self.handler.output = val
def get_newpage(self):
"""
Return value of whether or not insert new page before the report.
This method MUST NOT be overridden by subclasses.
"""
return self.handler.newpage
def set_newpage(self,val):
"""
Set newpage to a given value.
This method MUST NOT be overridden by subclasses.
"""
self.handler.newpage = val
def get_report_generations(self):
"""
Return (max_generations,page_breaks) tuple.
This method MUST NOT be overridden by subclasses.
"""
return self.handler.get_report_generations()
def get_filter_number(self):
"""
Return number of a filter to use.
This method MUST NOT be overridden by subclasses.
"""
return self.handler.get_filter_number()

View File

@ -1013,7 +1013,7 @@ class BookReportDialog(Report.ReportDialog):
newpage = 0
for item in self.book.get_item_list():
item.option_class.set_document(self.doc)
item.option_class.set_newpage(newpage)
item.option_class.set_newpage(newpage)
report_class = item.get_write_item()
obj = Report.write_book_item(self.database,self.person,
report_class,item.option_class)

View File

@ -547,7 +547,7 @@ class FtmAncestorReport(Report.Report):
return
self.doc.start_paragraph('FTA-SubEntry')
self.doc.write_text(_('Notes for %(person)s:') % {
'person' : person.get_primary_name().get_regular_name()} )
'person' : person.get_primary_name().get_regular_name()} )
self.doc.end_paragraph()
format = person.get_note_format()
self.doc.write_note(note,format,'FTA-Details')
@ -560,7 +560,7 @@ class FtmAncestorReport(Report.Report):
if first:
self.doc.start_paragraph('FTA-SubEntry')
self.doc.write_text(_('More about %(person_name)s:') % {
'person_name' : person.get_primary_name().get_regular_name() })
'person_name' : person.get_primary_name().get_regular_name() })
self.doc.end_paragraph()
first = 0
self.doc.start_paragraph('FTA-Details')
@ -586,7 +586,7 @@ class FtmAncestorReport(Report.Report):
self.doc.start_paragraph('FTA-SubEntry')
name = person.get_primary_name().get_regular_name()
self.doc.write_text(_('More about %(person_name)s:') % {
'person_name' : name })
'person_name' : name })
self.doc.end_paragraph()
first = 0

View File

@ -118,7 +118,7 @@ class IndivSummary(Report.Report):
self.d.add_cell_style("IVS-NormalCell",cell)
cell = BaseDoc.TableCellStyle()
cell.set_longlist(1)
cell.set_longlist(1)
self.d.add_cell_style("IVS-ListCell",cell)
def end(self):