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

mgExportAdvOpt Class Reference

#include <ExportDlg.h>

Inheritance diagram for mgExportAdvOpt:

mgExportBasePanel List of all members.

Detailed Description

This is the panel which allows the user to modify some ADVANCED options regarding MathML export process.

This panel contains an useful preview box which shows (in read only mode) what will be exported. The options which can be set through this panel are:

As for mgExportBasicOpt, this panel can be used as base class for a different advanced options panel... see mgExportBasicOpt description.

Definition at line 237 of file ExportDlg.h.

Public Member Functions

 mgExportAdvOpt (wxWindow *parent, mgExportBasicOpt *basic=NULL, mgMathBox *box=NULL, const wxString &xslpath=wxEmptyString, wxWindowID id=-1)
 Constructs the panel; call BuildAll() to complete creation.
virtual void EnablePreview (bool enable=TRUE)
 Enables/disables the preview of MathML tags.
int GetIndentation ()
 Reads the indentation value from m_pIndentation, converts it to a number and returns it.
virtual void BuildAll ()
 Creates everything regarding this panel.

Protected Member Functions

virtual void BuildCtrls ()
 Initializes the controls whose pointers are stored in the member variables to be easily used when required.
Event handlers. @{
void OnUseNS (wxCommandEvent &event)
void OnPreviewChanged (wxCommandEvent &event)
void OnTypeChanged (wxCommandEvent &event)
void OnMathPlayer (wxCommandEvent &event)

Protected Attributes

mgExportBasicOptm_pBasic
 The BASIC options panel which is linked to this class.
mgMathBoxm_pBox
 The mgMathBox which is used to retrieve export preview.
wxString m_strXSLPath
 The path to the XSL data which is used for .
bool m_bPreviewEnabled
 If TRUE, the "Tag preview" box is enabled.
Control pointers
Pointers to the controls used in the dialog.

wxCheckBox * m_pUseNS
wxCheckBox * m_pUpper
wxCheckBox * m_pMathPlayer
wxTextCtrl * m_pNS
wxTextCtrl * m_pIndentation
wxTextCtrl * m_pPreview
wxRadioButton * m_pXHTML
wxRadioButton * m_pXML

Friends

class mgExportDlg
class mgExportBasicOpt


Constructor & Destructor Documentation

mgExportAdvOpt::mgExportAdvOpt wxWindow *  parent,
mgExportBasicOpt basic = NULL,
mgMathBox box = NULL,
const wxString &  xslpath = wxEmptyString,
wxWindowID  id = -1
[inline]
 

Constructs the panel; call BuildAll() to complete creation.

Parameters:
parent The parent window (it should be mgExportDlg).
basic The basic options panel which is used to retrieve the informations used to build the export preview.
box The mgMathBox which is used to retrieve export preview; see mgMathBox::GetExportPreview.
xslpath The path to the XSL files used when exporting a pure XML file.

Definition at line 287 of file ExportDlg.h.


Member Function Documentation

void mgExportAdvOpt::BuildAll  )  [virtual]
 

Creates everything regarding this panel.

This function calls BuildCtrls() and then creates the entire layout for this panel.

Implements mgExportBasePanel.

Definition at line 358 of file ExportDlg.cpp.

References BuildCtrls().

Referenced by mgExportDlg::BuildCtrls().

void mgExportAdvOpt::BuildCtrls  )  [protected, virtual]
 

Initializes the controls whose pointers are stored in the member variables to be easily used when required.

In this way, we do not have to use wxWindow::FindWindowById each time we must access them. Please note that IDs are still required for event handling.

Implements mgExportBasePanel.

Definition at line 337 of file ExportDlg.cpp.

Referenced by BuildAll().


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 ]