Fix non-text report styles in book reports.

svn: r8659
This commit is contained in:
Brian Matherly 2007-06-25 03:02:45 +00:00
parent 5e06472c14
commit 3bec863693
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-06-24 Brian Matherly <brian@gramps-project.org>
* src/plugins/BookReport.py (BookReportDialog::__init__):
Fix non text report styles
2007-06-24 Brian Matherly <brian@gramps-project.org> 2007-06-24 Brian Matherly <brian@gramps-project.org>
* src/plugins/BookReport.py (on_booklist_ok_clicked): Handle unicode names * src/plugins/BookReport.py (on_booklist_ok_clicked): Handle unicode names

View File

@ -1015,6 +1015,18 @@ class BookReportDialog(ReportDialog):
self.selected_style.add_paragraph_style( self.selected_style.add_paragraph_style(
this_style_name,style_sheet.get_paragraph_style(this_style_name)) this_style_name,style_sheet.get_paragraph_style(this_style_name))
for this_style_name in style_sheet.get_draw_style_names():
self.selected_style.add_draw_style(
this_style_name,style_sheet.get_draw_style(this_style_name))
for this_style_name in style_sheet.get_table_style_names():
self.selected_style.add_table_style(
this_style_name,style_sheet.get_table_style(this_style_name))
for this_style_name in style_sheet.get_cell_style_names():
self.selected_style.add_cell_style(
this_style_name,style_sheet.get_cell_style(this_style_name))
response = self.window.run() response = self.window.run()
if response == RESPONSE_OK: if response == RESPONSE_OK:
try: try: