def setup_report_options_frame(self): self.paper_frame = PaperFrame( self.options.handler.get_paper_metric(), self.options.handler.get_paper_name(), self.options.handler.get_orientation(), self.options.handler.get_margins(), self.options.handler.get_custom_paper_size()) self.setup_html_frame() ReportDialog.setup_report_options_frame(self)
def __init__(self, dbstate, uistate, opt, name, translated_name): """Initialize a dialog to request that the user select options for a graphviz report. See the ReportDialog class for more information.""" self.category = CATEGORY_GRAPHVIZ self.__gvoptions = graphdoc.GVOptions() self.dbname = dbstate.db.get_dbname() ReportDialog.__init__(self, dbstate, uistate, opt, name, translated_name)
def __init__(self, dbstate, uistate, option_class, name, trans_name): """Initialize a dialog to request that the user select options for a basic *stand-alone* report.""" self.style_name = "default" self.firstpage_added = False self.CSS = PLUGMAN.process_plugin_data('WEBSTUFF') self.dbname = dbstate.db.get_dbname() ReportDialog.__init__(self, dbstate, uistate, option_class, name, trans_name)
def setup_report_options_frame(self): self.paper_label = gtk.Label('<b>%s</b>' % _("Paper Options")) self.paper_label.set_use_markup(True) handler = self.options.handler self.paper_frame = PaperFrame( handler.get_paper_metric(), handler.get_paper_name(), handler.get_orientation(), handler.get_margins(), handler.get_custom_paper_size(), ) self.notebook.insert_page(self.paper_frame, self.paper_label, 0) self.paper_frame.show_all() ReportDialog.setup_report_options_frame(self)
def __init__(self, dbstate, uistate, option_class, name, trans_name): """Initialize a dialog""" self.category = CATEGORY_WEB ReportDialog.__init__(self, dbstate, uistate, option_class, name, trans_name) self.options.handler.set_format_name('html')
def init_interface(self): ReportDialog.init_interface(self) self.doc_type_changed(self.format_menu, preserve_tab=False)
def init_interface(self): ReportDialog.init_interface(self) self.doc_type_changed(self.format_menu) self.notebook.set_current_page(1) # don't start on "Paper Options"