Remove the "tables" parameter for text and book document generators. All generators support tables, and if one didn't, it doesn't look like the code would work.

svn: r10745
This commit is contained in:
Brian Matherly
2008-05-20 03:19:58 +00:00
parent 1d306345bd
commit 92d5ba8dfd
12 changed files with 36 additions and 56 deletions

View File

@@ -40,17 +40,6 @@ class TextReportDialog(DocReportDialog):
DocReportDialog.__init__(self, dbstate, uistate, options,
name, translated_name)
#------------------------------------------------------------------------
#
# Customization hooks for subclasses
#
#------------------------------------------------------------------------
def doc_uses_tables(self):
"""Does this report require the ability to generate tables in
the file format. Override this for documents that do need
table support."""
return 0
#------------------------------------------------------------------------
#
# Functions related to selecting/changing the current file format.
@@ -61,5 +50,4 @@ class TextReportDialog(DocReportDialog):
this text report. This menu will be generated based upon
whether the document requires table support, etc."""
self.format_menu = TextFormatComboBox()
self.format_menu.set(self.doc_uses_tables(),
self.doc_type_changed, None, active)
self.format_menu.set(self.doc_type_changed, None, active)