예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
    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)
예제 #4
0
    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)
예제 #5
0
 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')
예제 #6
0
 def init_interface(self):
     ReportDialog.init_interface(self)
     self.doc_type_changed(self.format_menu, preserve_tab=False)
예제 #7
0
 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"