• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_Dialog_Latex.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 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 #include "gr_EmbedManager.h"
00029 
00030 
00031 class XAP_Frame;
00032 
00033 class ABI_EXPORT AP_Dialog_Latex : public XAP_Dialog_Modeless
00034 {
00035 public:
00036     AP_Dialog_Latex(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00037     virtual ~AP_Dialog_Latex(void);
00038 
00039     typedef enum { a_OK, a_CANCEL } tAnswer;
00040 
00041     AP_Dialog_Latex::tAnswer        getAnswer(void) const;
00042     bool            convertLatexToMathML(void);
00043     virtual bool    getLatexFromGUI(void) = 0;
00044     void            setLatex(UT_UTF8String & sLatex)
00045       { m_sLatex = sLatex;}
00046     void            fillLatex(UT_UTF8String & sLatex);
00047     virtual void    setLatexInGUI(void) = 0;
00048     void            getLatex(UT_UTF8String & sLatex)
00049     { sLatex = m_sLatex;}
00050     void            setMathML(UT_UTF8String & sMathML)
00051       { m_sMathML = sMathML;}
00052     void            insertIntoDoc(void);
00053     void            ConstructWindowName(void);
00054     void            setActiveFrame(XAP_Frame *pFrame);
00055     void            setDisplayMode (AbiDisplayMode mode)
00056       { m_compact = mode == ABI_DISPLAY_INLINE; }
00057 protected:
00058 
00059     AP_Dialog_Latex::tAnswer  m_answer;
00060     UT_UTF8String             m_sWindowName;
00061     bool                      m_compact;
00062 private:
00063     UT_UTF8String m_sLatex;
00064     UT_UTF8String m_sMathML;
00065 };
00066 
00067 #endif /* AP_DIALOG_LATEX_H */
00068 
00069 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1