Share and Money Management  0.16
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gui.dialogs.DlgHtml Class Reference

Generic dialog to show HTML and some buttons to print and save. More...

Inheritance diagram for gui.dialogs.DlgHtml:

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...
 
- Public Member Functions inherited from gui.UIHtml.UIHtml
def __init__ (self, *args, **kwds)
 

Public Attributes

 page_content
 
 default_filename
 
 printing
 
- Public Attributes inherited from gui.UIHtml.UIHtml
 hw_report
 
 bn_Print
 
 bn_PrintPreview
 
 bn_Close
 
 bn_Save
 

Static Public Attributes

 wildcard = _(u'HTML-Dokument (*.html)|*.html')
 Wildcards for selecting HTML files. More...
 

Detailed Description

Generic dialog to show HTML and some buttons to print and save.

Constructor & Destructor Documentation

◆ __init__()

def gui.dialogs.DlgHtml.__init__ (   self,
  parent 
)

Initialise dialog.

Parameters
selfThe object pointer
parentThe parent object

Member Function Documentation

◆ OnClose()

def gui.dialogs.DlgHtml.OnClose (   self,
  event 
)

Close only the modal dialog.

Reimplemented from gui.UIHtml.UIHtml.

◆ OnPrint()

def gui.dialogs.DlgHtml.OnPrint (   self,
  event 
)

◆ OnPrintPreview()

def gui.dialogs.DlgHtml.OnPrintPreview (   self,
  event 
)

◆ OnSave()

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(), and gui.dialogs.DlgHtml.wildcard.

Here is the call graph for this function:

◆ save2file()

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().

Here is the caller graph for this function:

◆ setHtml()

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.

Member Data Documentation

◆ default_filename

gui.dialogs.DlgHtml.default_filename

Default name for storing content in a file

Referenced by gui.dialogs.DlgHtml.OnSave().

◆ page_content

gui.dialogs.DlgHtml.page_content

◆ printing

gui.dialogs.DlgHtml.printing

Reference to the easy printing instance

Referenced by gui.dialogs.DlgHtml.OnPrint(), and gui.dialogs.DlgHtml.OnPrintPreview().

◆ wildcard

gui.dialogs.DlgHtml.wildcard = _(u'HTML-Dokument (*.html)|*.html')
static

The documentation for this class was generated from the following file: