Fixed format menu in report dialog

svn: r701
This commit is contained in:
Don Allingham 2002-01-15 23:15:35 +00:00
parent 1cdb90c001
commit 9a0c34dfb5
3 changed files with 18 additions and 5 deletions

View File

@ -179,6 +179,7 @@ class ReportDialog:
self.setup_title()
self.setup_header()
self.setup_target_frame()
self.setup_format_frame()
self.setup_style_frame()
self.setup_output_notebook()
self.setup_paper_frame()
@ -189,9 +190,10 @@ class ReportDialog:
# Allow for post processing of the format frame, since the
# show_all task calls events that may reset values
self.setup_format_frame()
def setup_post_process(self):
pass
#------------------------------------------------------------------------
#
# Customization hooks for subclasses

View File

@ -6380,6 +6380,12 @@ Unknown
<name>button147</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<signal>
<name>clicked</name>
<handler>destroy_passed_object</handler>
<object>addChild</object>
<last_modification_time>Tue, 15 Jan 2002 23:03:24 GMT</last_modification_time>
</signal>
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
</widget>
</widget>
@ -6398,7 +6404,7 @@ Unknown
<widget>
<class>GtkLabel</class>
<name>newTitle</name>
<width>450</width>
<width>500</width>
<label>Add New Child</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>

View File

@ -950,13 +950,18 @@ class WebReportDialog(ReportDialog):
"""Do Nothing. This document will be created in the
make_report routine."""
pass
def setup_format_frame(self):
"""Do nothing, since we don't want a format frame (HTML only)"""
pass
#------------------------------------------------------------------------
#
# Functions related to setting up the dialog window
#
#------------------------------------------------------------------------
def setup_format_frame(self):
def setup_post_process(self):
"""The format frame is not used in this dialog. Hide it, and
set the output notebook to always display the html template
page."""