* src/Report.py: Split ReportDialog into BareReportDialog and

its subclass of ReportDialog. BareReportDialog has nothing to do with
the paper, format, filename, etc.
* src/plugins/BookReport.py: Make ReportOptionsDialog a sublcass of
Report.BareReportDialog.


svn: r1656
This commit is contained in:
Alex Roitman 2003-06-04 05:12:08 +00:00
parent 14786ebe3a
commit 73a1e8033f
2 changed files with 558 additions and 506 deletions

File diff suppressed because it is too large Load Diff

View File

@ -210,11 +210,11 @@ class BookReportSelector:
#
#
#------------------------------------------------------------------------
class ReportOptionsDialog(Report.TextReportDialog):
class ReportOptionsDialog(Report.BareReportDialog):
def __init__(self,database,person,rep_title):
self.rep_title = rep_title
Report.TextReportDialog.__init__(self,database,person)
Report.BareReportDialog.__init__(self,database,person)
def get_title(self):
"""The window title for this dialog"""
@ -224,16 +224,6 @@ class ReportOptionsDialog(Report.TextReportDialog):
"""The header line at the top of the dialog contents"""
return _("%s for GRAMPS Book") % self.rep_title
def setup_paper_frame(self): pass
def setup_html_frame(self): pass
def setup_style_frame(self): pass
def html_file_enable(self,obj): pass
def setup_target_frame(self): pass
def setup_format_frame(self):
center_label = gtk.Label("<b>%s</b>" % _("Center Person"))
center_label.set_use_markup(gtk.TRUE)
@ -370,8 +360,10 @@ register_report(
report,
_("Book Report"),
category=_("Text Reports"),
status=(_("Experimental")),
status=(_("Unstable")),
description=_("Creates a book containg several reports."),
xpm=get_xpm_image()
xpm=get_xpm_image(),
author_name="Alex Roitman",
author_email="shura@alex.neuro.umn.edu"
)