00001 /* AbiWord 00002 * Copyright (C) 2005 Martin Sevior. 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00017 * 02111-1307, USA. 00018 */ 00019 00020 #ifndef AP_DIALOG_LATEX_H 00021 #define AP_DIALOG_LATEX_H 00022 00023 #include "xap_Frame.h" 00024 #include "xap_Dialog.h" 00025 #include "xav_View.h" 00026 #include "ut_string_class.h" 00027 #include "fv_View.h" 00028 00029 00030 class XAP_Frame; 00031 00032 class ABI_EXPORT AP_Dialog_Latex : public XAP_Dialog_Modeless 00033 { 00034 public: 00035 AP_Dialog_Latex(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); 00036 virtual ~AP_Dialog_Latex(void); 00037 00038 typedef enum { a_OK, a_CANCEL } tAnswer; 00039 00040 AP_Dialog_Latex::tAnswer getAnswer(void) const; 00041 bool convertLatexToMathML(void); 00042 virtual bool getLatexFromGUI(void) = 0; 00043 void setLatex(UT_UTF8String & sLatex) 00044 { m_sLatex = sLatex;} 00045 void fillLatex(UT_UTF8String & sLatex); 00046 virtual void setLatexInGUI(void) = 0; 00047 void getLatex(UT_UTF8String & sLatex) 00048 { sLatex = m_sLatex;} 00049 void setMathML(UT_UTF8String & sMathML) 00050 { m_sMathML = sMathML;} 00051 void insertIntoDoc(void); 00052 void ConstructWindowName(void); 00053 void setActiveFrame(XAP_Frame *pFrame); 00054 protected: 00055 00056 AP_Dialog_Latex::tAnswer m_answer; 00057 UT_UTF8String m_sWindowName; 00058 private: 00059 UT_UTF8String m_sLatex; 00060 UT_UTF8String m_sMathML; 00061 }; 00062 00063 #endif /* AP_DIALOG_LATEX_H */ 00064 00065
1.7.1