Share and Money Management 0.18devel
|
Generic dialog to show HTML and some buttons to print and save. More...
Public Member Functions | |
def | __init__ (self, parent) |
Initialise dialog. More... | |
def | save2file (self, filename) |
Store page_content in a file. More... | |
def | setHtml (self, html) |
Set the html source and display it. More... | |
def | OnClose (self, event) |
Close only the modal dialog. More... | |
def | OnPrintPreview (self, event) |
def | OnPrint (self, event) |
def | OnSave (self, event) |
Save the content of the HTML widget. More... | |
def | __init__ (self, *args, **kwds) |
def | OnPrint (self, event) |
def | OnPrintPreview (self, event) |
def | OnClose (self, event) |
def | OnSave (self, event) |
Public Attributes | |
page_content | |
Store the page source. More... | |
default_filename | |
Default name for storing content in a file. More... | |
printing | |
Reference to the easy printing instance. More... | |
Public Attributes inherited from gui.UIHtml.UIHtml | |
hw_report | |
bn_Print | |
bn_PrintPreview | |
bn_Close | |
bn_Save | |
Static Public Attributes | |
wildcard = _("HTML-Dokument (*.html)|*.html") | |
Wildcards for selecting HTML files. More... | |
Generic dialog to show HTML and some buttons to print and save.
def gui.dialogs.DlgHtml.__init__ | ( | self, | |
parent | |||
) |
Initialise dialog.
self | The object pointer |
parent | The parent object |
Reimplemented from gui.UIHtml.UIHtml.
def gui.dialogs.DlgHtml.OnClose | ( | self, | |
event | |||
) |
Close only the modal dialog.
Reimplemented from gui.UIHtml.UIHtml.
def gui.dialogs.DlgHtml.OnPrint | ( | self, | |
event | |||
) |
Reimplemented from gui.UIHtml.UIHtml.
References gui.dialogs.DlgHtml.page_content, and gui.dialogs.DlgHtml.printing.
def gui.dialogs.DlgHtml.OnPrintPreview | ( | self, | |
event | |||
) |
Reimplemented from gui.UIHtml.UIHtml.
References gui.dialogs.DlgHtml.page_content, and gui.dialogs.DlgHtml.printing.
def gui.dialogs.DlgHtml.OnSave | ( | self, | |
event | |||
) |
Save the content of the HTML widget.
Reimplemented from gui.UIHtml.UIHtml.
References gui.dialogs.DlgHtml.default_filename, gui.dialogs.DlgHtml.save2file(), gui.dialogs.DlgHtml.wildcard, and gui.dialogs.DlgPreferences.wildcard.
def gui.dialogs.DlgHtml.save2file | ( | self, | |
filename | |||
) |
Store page_content in a file.
References gui.dialogs.DlgHtml.page_content.
Referenced by gui.dialogs.DlgHtml.OnSave().
def gui.dialogs.DlgHtml.setHtml | ( | self, | |
html | |||
) |
Set the html source and display it.
Use this function to store a copy of the page source for later processing e.g. saving.
References gui.UIHtml.UIHtml.hw_report, and gui.dialogs.DlgHtml.page_content.
gui.dialogs.DlgHtml.default_filename |
Default name for storing content in a file.
Referenced by gui.dialogs.DlgHtml.OnSave().
gui.dialogs.DlgHtml.page_content |
Store the page source.
Referenced by gui.dialogs.DlgHtml.OnPrint(), gui.dialogs.DlgHtml.OnPrintPreview(), gui.dialogs.DlgHtml.save2file(), and gui.dialogs.DlgHtml.setHtml().
gui.dialogs.DlgHtml.printing |
Reference to the easy printing instance.
Referenced by gui.dialogs.DlgHtml.OnPrint(), and gui.dialogs.DlgHtml.OnPrintPreview().
|
static |
Wildcards for selecting HTML files.
Referenced by gui.dialogs.DlgPreferences.OnCreateDatabase(), gui.dialogs.DlgHtml.OnSave(), and gui.dialogs.DlgPreferences.OnSelectDatabase().