#include <ExportDlg.h>
Inheritance diagram for mgExportDlg:
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 mgExportBasicOpt * | GetBasicOpt () |
Returns a pointer to the BASIC option panel of this dialog. | |
virtual mgExportAdvOpt * | GetAdvOpt () |
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 |
mgExportBasicOpt * | m_pBasicOptPanel |
mgExportAdvOpt * | m_pAdvOptPanel |
|
Constructs this dialog.
See mgMathBoxWndUser for the meaning of the 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(). |
|
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(). |
[ Top ] |