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 IMPORTDLG_H 00033 #define IMPORTDLG_H 00034 00035 // optimization for GCC compiler 00036 #ifdef __GNUG__ 00037 #pragma interface "ImportDlg.h" 00038 #endif 00039 00040 // required because import dlg is able to integrate both 00041 // with mgMathWnd and with mgMathBox 00042 #include "mg/MathBoxWndUser.h" 00043 00044 00045 // buttons 00046 #define IDC_IMPORTDLG_IMPORT_BTN mgIMPDLG_BASEID+1 00047 00048 // radio buttons 00049 #define IDC_IMPORTDLG_INLINEDEXPR mgIMPDLG_BASEID+2 00050 #define IDC_IMPORTDLG_MATHML mgIMPDLG_BASEID+3 00051 00052 // text controls 00053 #define IDC_IMPORTDLG_INLINEDEXPR_FIELD mgIMPDLG_BASEID+4 00054 00055 00056 00060 class mgImportDlg : public wxDialog, public mgMathBoxWndUser 00061 { 00062 protected: // member variables 00063 00065 wxTextCtrl *m_pExpr; 00066 00069 wxFileDialog *m_pFD; 00070 00071 00072 protected: // functions 00073 00075 void BuildAll(); 00076 00079 void BuildCtrls(); 00080 00081 // event handlers 00082 void OnImport(wxCommandEvent &ev); 00083 void OnInlinedExprChange(wxCommandEvent &ev); 00084 00085 public: 00086 00088 mgImportDlg(wxWindow *parent, 00089 mgMathWnd *wnd, 00090 mgMathBox *box, 00091 wxWindowID id = -1, 00092 const wxString &title = wxT("Import options"), 00093 const wxPoint& pos = wxDefaultPosition, 00094 const wxSize& size = wxDefaultSize, 00095 long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER); 00096 00097 virtual ~mgImportDlg(); 00098 00099 00101 bool isImportingMathML(); 00102 00104 bool isImportingInlinedExpr() { 00105 return !isImportingMathML(); 00106 } 00107 00108 00109 private: 00110 DECLARE_EVENT_TABLE() 00111 }; 00112 00113 00114 #endif // IMPORTDLG_H
[ Top ] |