Remove "parse_report_options_frame()" and "parse_other_frames()" from the report interface. They are not used.

svn: r8330
This commit is contained in:
Brian Matherly 2007-03-28 03:17:13 +00:00
parent adbf4b1dac
commit 58b1e800ca
4 changed files with 7 additions and 26 deletions

View File

@ -1,3 +1,10 @@
2007-03-27 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_ReportDialog.py
* src/ReportBase/_BareReportDialog.py
* src/plugins/BookReport.py
Remove "parse_report_options_frame()" and "parse_other_frames()" from the
report interface. They are not used.
2007-03-27 Brian Matherly <brian@gramps-project.org> 2007-03-27 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_ReportOptions.py * src/ReportBase/_ReportOptions.py
* src/plugins/DescendChart.py * src/plugins/DescendChart.py

View File

@ -103,7 +103,6 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
def init_interface(self): def init_interface(self):
self.extra_menu = None self.extra_menu = None
self.extra_textbox = None
self.widgets = [] self.widgets = []
self.frame_names = [] self.frame_names = []
self.frames = {} self.frames = {}
@ -457,24 +456,6 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
(style_name,self.selected_style) = self.style_menu.get_value() (style_name,self.selected_style) = self.style_menu.get_value()
self.options.handler.set_default_stylesheet_name(style_name) self.options.handler.set_default_stylesheet_name(style_name)
def parse_report_options_frame(self):
"""Parse the report options frame of the dialog. Save the
user selected choices for later use. Note that this routine
retrieves a value from all fields in the frame, regardless of
whether or not they are displayed on the screen. The subclass
will know which ones it has enabled. This is for simplicity
of programming."""
if self.extra_menu:
self.report_menu = self.extra_menu.get_menu().get_active().get_data("d")
else:
self.report_menu = None
def parse_other_frames(self):
"""Do nothing. This sole purpose of this function is to give
subclass a place to hang a routine to parser any other frames
that are unique to that specific report."""
pass
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #
# Callback functions from the dialog # Callback functions from the dialog
@ -495,8 +476,6 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
# Preparation # Preparation
self.parse_style_frame() self.parse_style_frame()
self.parse_report_options_frame()
self.parse_other_frames()
self.parse_user_options() self.parse_user_options()
# Save options # Save options

View File

@ -594,8 +594,6 @@ class ReportDialog(BareReportDialog):
self.parse_style_frame() self.parse_style_frame()
self.parse_paper_frame() self.parse_paper_frame()
self.parse_html_frame() self.parse_html_frame()
self.parse_report_options_frame()
self.parse_other_frames()
self.parse_user_options() self.parse_user_options()
# Create the output document. # Create the output document.

View File

@ -966,7 +966,6 @@ class BookItemDialog(BareReportDialog):
# Preparation # Preparation
self.parse_style_frame() self.parse_style_frame()
self.parse_report_options_frame()
self.parse_user_options() self.parse_user_options()
if self.new_person: if self.new_person:
@ -1027,8 +1026,6 @@ class BookReportDialog(ReportDialog):
def setup_report_options_frame(self): pass def setup_report_options_frame(self): pass
def setup_other_frames(self): pass def setup_other_frames(self): pass
def parse_style_frame(self): pass def parse_style_frame(self): pass
def parse_report_options_frame(self): pass
def parse_other_frames(self): pass
def doc_uses_tables(self): def doc_uses_tables(self):
return 1 return 1