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

mgResizeableMathBox Class Reference

#include <MathBox.h>

Inheritance diagram for mgResizeableMathBox:

mgResizeableBox List of all members.

Detailed Description

A resizeable window containing a mgMathBox.

The resizeable window appears (by default) as a yellow border around the wrapped mgMathBox, with 8 squares which can be dragged by the user to resize the window. The empty border can be used to move the window (typically inside a mgMathWnd which acts as a mgResizeableMathBox container).

You can change the colour of the window using wxWindow::SetBackgroundColor() but remember that the background colour determines also the square's colour; infact the squares are drawn with the wxXOR logical function.

You can change the thickness of the border around the mgMathBox using the SetMinBorder function.

Definition at line 842 of file MathBox.h.

Public Member Functions

 mgResizeableMathBox (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 Main constructor.
 mgResizeableMathBox ()
 Default constructor.
 mgResizeableMathBox (const mgResizeableMathBox &tocopy)
 Copy constructor.
virtual ~mgResizeableMathBox ()
 Destructor.
void DeepCopy (const mgResizeableMathBox &)
 Copies all the info contained in the given resizeable math box.
wxString GetDebug ()
 Returns a string with debug info about this window.
virtual wxXml2Node GetMathML (bool bGetPresentation)
 Returns an XML tree containing the MathML code representing the math data stored in the math box.
virtual bool ImportMathML (wxXml2Node pDoc, wxString *pErr)
 Imports MathML inside this resizeable box.
wxWindow * GetChild ()

Protected Attributes

mgMathBoxm_pMathBox
 The contained math box.


Constructor & Destructor Documentation

mgResizeableMathBox::mgResizeableMathBox wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize
 

Main constructor.

Builds and initialize this window.

Parameters:
parent The parent window

Definition at line 1728 of file MathBox.cpp.

mgResizeableMathBox::mgResizeableMathBox  )  [inline]
 

Default constructor.

This is required by wxWidgets DECLARE_DYNAMIC_CLASS macro, but you should always use the main constructor form.

Definition at line 860 of file MathBox.h.

mgResizeableMathBox::mgResizeableMathBox const mgResizeableMathBox tocopy  ) 
 

Copy constructor.

Deep copies the given mgMathBox into this object.

Parameters:
tocopy The box to copy

Definition at line 1742 of file MathBox.cpp.

References DeepCopy(), and m_pMathBox.


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

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

[ Top ]