00001 00002 // MathGUI = a WYSIWYG equation editor + a powerful math engine // 00003 // Copyright (C) 2003 by Francesco Montorsi // 00004 // // 00005 // This library is free software; you can redistribute it and/or // 00006 // modify it under the terms of the GNU Lesser General Public // 00007 // License as published by the Free Software Foundation; either // 00008 // version 2.1 of the License, or (at your option) any later // 00009 // version. // 00010 // // 00011 // This library is distributed in the hope that it will be useful, // 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of // 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // 00014 // GNU Lesser General Public License for more details. // 00015 // // 00016 // You should have received a copy of the GNU Lesser General Public // 00017 // License along with this program; if not, write to the Free // 00018 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, // 00019 // MA 02111-1307, USA. // 00020 // // 00021 // For any comment, suggestion or feature request, please contact // 00022 // the administrator of the project at frm@users.sourceforge.net // 00023 // // 00030 00031 00032 #ifndef MATHBOXWNDUSER_H 00033 #define MATHBOXWNDUSER_H 00034 00035 // required 00036 #include "mg/MathWnd.h" 00037 #include "mg/MathBox.h" 00038 00039 00040 // optimization for GCC compiler 00041 #ifdef __GNUG__ 00042 #pragma interface "MathBoxWndUser.h" 00043 #endif 00044 00045 00051 class mgMathBoxWndUser 00052 { 00053 protected: 00054 00058 mgMathWnd *m_pMathWnd; 00059 00062 mgMathBox *m_pMathBox; 00063 00066 bool isUsingMathWnd(); 00067 00072 mgMathBox *GetBox(); 00073 00076 mgMathWnd *GetWnd() { return m_pMathWnd; } 00077 00078 00079 public: 00080 00086 mgMathBoxWndUser(mgMathWnd *pWnd, mgMathBox *pBox) { 00087 m_pMathWnd = pWnd; 00088 m_pMathBox = pBox; 00089 } 00090 00091 00092 // some utility functions 00093 00099 void SendKeyEvent(wxObject *p, wxKeyEvent &ev); 00100 void SendKeyEvent(wxObject *p, wxChar c); 00101 void SendSpecialKeyEvent(wxObject *p, wxKeyEvent &ev); 00102 void SendSpecialKeyEvent(wxObject *p, wxChar c); 00103 }; 00104 00105 #endif // MATHBOXWNDUSER_H 00106 00107
[ Top ] |