Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

mgExportDlg Class Reference

#include <ExportDlg.h>

Inheritance diagram for mgExportDlg:

mgMathBoxWndUser List of all members.

Detailed Description

Shows the user a dialog which allows him to choose MathML export options.

The dialog contains two main elements, the BASIC & the ADVANCED options panels, plus the three wxT("action buttons"): "Export", wxT("Export and open in default browser"), "Cancel".

If the user of MathGUI wants to modify this dialog, it should derive a new class from mgExportDlg and override the functions he wants; specially BuildCtrls() which create the two main option panels.

Definition at line 325 of file ExportDlg.h.

Public Member Functions

 mgExportDlg (wxWindow *parent, mgMathWnd *mathwnd, mgMathBox *mathbox, const wxString &href, wxWindowID id=-1, const wxString &title=wxT("Export options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 Constructs this dialog.
virtual mgExportBasicOptGetBasicOpt ()
 Returns a pointer to the BASIC option panel of this dialog.
virtual mgExportAdvOptGetAdvOpt ()
 Returns a pointer to the ADVANCED option panel of this dialog.
virtual bool isShowingAdvOpt ()
 Returns TRUE if the ADVANCED option panel is currently visible.
virtual void ShowAdv ()
 Shows the ADVANCED options panel if it is currently hidden; hides it if it currently visible.

Protected Member Functions

void OnExport (wxCommandEvent &event)
void OnExportAndOpen (wxCommandEvent &event)
virtual void BuildAll ()
 Creates all the controls of the dialog.
virtual wxSizer * BuildButtons ()
 Creates the sizer with the three main buttons of the dialog.
virtual void BuildCtrls ()
 Creates the two mgExportBasePanel-derived panels contained in this dialog and then init them calling their mgExportBasePanel::BuildAll() functions.

Protected Attributes

wxString m_strXSLPath
 The HREF used to link XSL required files when exporting data as pure XML file.
bool m_bBuildComplete
 Used by some functions to check if all controls (and their pointers) can be used.
bool m_bShowAdv
 If TRUE the panel of advanced options is currently visible.
Control pointers
Pointers to the controls used in the dialog: they are used to retrieve the informations about export options when the user clicks one of the theree main buttons...

wxFont m_fBoldFont
wxSizer * m_pMainPanel
wxSizer * m_pButtonsPanel
mgExportBasicOptm_pBasicOptPanel
mgExportAdvOptm_pAdvOptPanel


Constructor & Destructor Documentation

mgExportDlg::mgExportDlg wxWindow *  parent,
mgMathWnd mathwnd,
mgMathBox mathbox,
const wxString &  href,
wxWindowID  id = -1,
const wxString &  title = wxT("Export options"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
 

Constructs this dialog.

See mgMathBoxWndUser for the meaning of the mathwnd and mathbox parameters.

Definition at line 605 of file ExportDlg.cpp.

References BuildAll(), mgExportAdvOpt::EnablePreview(), GetAdvOpt(), GetBasicOpt(), m_bBuildComplete, m_bShowAdv, mgExportBasicOpt::m_pChoice, mgExportBasicOpt::OnBrowse(), mgExportBasicOpt::OnBrowserModeChanged(), mgExportAdvOpt::OnPreviewChanged(), and ShowAdv().


Member Function Documentation

void mgExportDlg::ShowAdv  )  [virtual]
 

Shows the ADVANCED options panel if it is currently hidden; hides it if it currently visible.

This function resizes the dialog and center it in the screen.

Definition at line 843 of file ExportDlg.cpp.

References m_bShowAdv.

Referenced by mgExportDlg().


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

Documentation generated with Doxygen on Sun Feb 6 17:19:27 2005
Visit MathStudio home page for more info

[ Top ]