Update
svn: r3835
This commit is contained in:
parent
a4662dc4b7
commit
66bc5b5807
@ -753,25 +753,65 @@ class ReportOptions:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def get_document(self):
|
def get_document(self):
|
||||||
|
"""
|
||||||
|
Return document instance.
|
||||||
|
|
||||||
|
This method MUST NOT be overridden by subclasses.
|
||||||
|
"""
|
||||||
return self.handler.doc
|
return self.handler.doc
|
||||||
|
|
||||||
def set_document(self,val):
|
def set_document(self,val):
|
||||||
|
"""
|
||||||
|
Set document to a given instance.
|
||||||
|
|
||||||
|
This method MUST NOT be overridden by subclasses.
|
||||||
|
"""
|
||||||
self.handler.doc = val
|
self.handler.doc = val
|
||||||
|
|
||||||
def get_output(self):
|
def get_output(self):
|
||||||
|
"""
|
||||||
|
Return document output destination.
|
||||||
|
|
||||||
|
This method MUST NOT be overridden by subclasses.
|
||||||
|
"""
|
||||||
return self.handler.output
|
return self.handler.output
|
||||||
|
|
||||||
def set_output(self,val):
|
def set_output(self,val):
|
||||||
|
"""
|
||||||
|
Set output destination to a given string.
|
||||||
|
|
||||||
|
This method MUST NOT be overridden by subclasses.
|
||||||
|
"""
|
||||||
self.handler.output = val
|
self.handler.output = val
|
||||||
|
|
||||||
def get_newpage(self):
|
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
|
return self.handler.newpage
|
||||||
|
|
||||||
def set_newpage(self,val):
|
def set_newpage(self,val):
|
||||||
|
"""
|
||||||
|
Set newpage to a given value.
|
||||||
|
|
||||||
|
This method MUST NOT be overridden by subclasses.
|
||||||
|
"""
|
||||||
self.handler.newpage = val
|
self.handler.newpage = val
|
||||||
|
|
||||||
def get_report_generations(self):
|
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()
|
return self.handler.get_report_generations()
|
||||||
|
|
||||||
def get_filter_number(self):
|
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()
|
return self.handler.get_filter_number()
|
||||||
|
@ -1013,7 +1013,7 @@ class BookReportDialog(Report.ReportDialog):
|
|||||||
newpage = 0
|
newpage = 0
|
||||||
for item in self.book.get_item_list():
|
for item in self.book.get_item_list():
|
||||||
item.option_class.set_document(self.doc)
|
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()
|
report_class = item.get_write_item()
|
||||||
obj = Report.write_book_item(self.database,self.person,
|
obj = Report.write_book_item(self.database,self.person,
|
||||||
report_class,item.option_class)
|
report_class,item.option_class)
|
||||||
|
@ -547,7 +547,7 @@ class FtmAncestorReport(Report.Report):
|
|||||||
return
|
return
|
||||||
self.doc.start_paragraph('FTA-SubEntry')
|
self.doc.start_paragraph('FTA-SubEntry')
|
||||||
self.doc.write_text(_('Notes for %(person)s:') % {
|
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()
|
self.doc.end_paragraph()
|
||||||
format = person.get_note_format()
|
format = person.get_note_format()
|
||||||
self.doc.write_note(note,format,'FTA-Details')
|
self.doc.write_note(note,format,'FTA-Details')
|
||||||
@ -560,7 +560,7 @@ class FtmAncestorReport(Report.Report):
|
|||||||
if first:
|
if first:
|
||||||
self.doc.start_paragraph('FTA-SubEntry')
|
self.doc.start_paragraph('FTA-SubEntry')
|
||||||
self.doc.write_text(_('More about %(person_name)s:') % {
|
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()
|
self.doc.end_paragraph()
|
||||||
first = 0
|
first = 0
|
||||||
self.doc.start_paragraph('FTA-Details')
|
self.doc.start_paragraph('FTA-Details')
|
||||||
@ -586,7 +586,7 @@ class FtmAncestorReport(Report.Report):
|
|||||||
self.doc.start_paragraph('FTA-SubEntry')
|
self.doc.start_paragraph('FTA-SubEntry')
|
||||||
name = person.get_primary_name().get_regular_name()
|
name = person.get_primary_name().get_regular_name()
|
||||||
self.doc.write_text(_('More about %(person_name)s:') % {
|
self.doc.write_text(_('More about %(person_name)s:') % {
|
||||||
'person_name' : name })
|
'person_name' : name })
|
||||||
self.doc.end_paragraph()
|
self.doc.end_paragraph()
|
||||||
first = 0
|
first = 0
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ class IndivSummary(Report.Report):
|
|||||||
self.d.add_cell_style("IVS-NormalCell",cell)
|
self.d.add_cell_style("IVS-NormalCell",cell)
|
||||||
|
|
||||||
cell = BaseDoc.TableCellStyle()
|
cell = BaseDoc.TableCellStyle()
|
||||||
cell.set_longlist(1)
|
cell.set_longlist(1)
|
||||||
self.d.add_cell_style("IVS-ListCell",cell)
|
self.d.add_cell_style("IVS-ListCell",cell)
|
||||||
|
|
||||||
def end(self):
|
def end(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user