#include <ap_Dialog_Latex.h>
Public Types | |
enum | tAnswer { a_OK, a_CANCEL } |
Public Member Functions | |
AP_Dialog_Latex (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
virtual | ~AP_Dialog_Latex (void) |
AP_Dialog_Latex::tAnswer | getAnswer (void) const |
bool | convertLatexToMathML (void) |
virtual bool | getLatexFromGUI (void)=0 |
void | setLatex (UT_UTF8String &sLatex) |
void | fillLatex (UT_UTF8String &sLatex) |
virtual void | setLatexInGUI (void)=0 |
void | getLatex (UT_UTF8String &sLatex) |
void | setMathML (UT_UTF8String &sMathML) |
void | insertIntoDoc (void) |
void | ConstructWindowName (void) |
void | setActiveFrame (XAP_Frame *pFrame) |
void | setDisplayMode (AbiDisplayMode mode) |
Protected Attributes | |
AP_Dialog_Latex::tAnswer | m_answer |
UT_UTF8String | m_sWindowName |
bool | m_compact |
Private Attributes | |
UT_UTF8String | m_sLatex |
UT_UTF8String | m_sMathML |
AP_Dialog_Latex::AP_Dialog_Latex | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
AP_Dialog_Latex::~AP_Dialog_Latex | ( | void | ) | [virtual] |
void AP_Dialog_Latex::ConstructWindowName | ( | void | ) |
References XAP_Dialog_Modeless::BuildWindowName(), FREEP, gchar, XAP_App::getStringSet(), XAP_StringSet::getValue(), XAP_Dialog::m_pApp, m_sWindowName, and UT_XML_cloneNoAmpersands().
Referenced by AP_Win32Dialog_Latex::_onInitDialog(), AP_Win32Dialog_Latex::activate(), AP_UnixDialog_Latex::activate(), AP_UnixDialog_Latex::constructDialog(), AP_Win32Dialog_Latex::notifyActiveFrame(), and AP_UnixDialog_Latex::notifyActiveFrame().
bool AP_Dialog_Latex::convertLatexToMathML | ( | void | ) |
Use the convert method of the embedmanager to convert from Latex to MathML
References UT_UTF8String::appendBuf(), UT_UTF8String::clear(), GR_EmbedManager::convert(), XAP_Dialog_Modeless::getActiveFrame(), XAP_Frame::getCurrentView(), FL_DocLayout::getEmbedManager(), FV_View::getLayout(), GR_EmbedManager::isDefault(), m_compact, m_sLatex, m_sMathML, UT_UTF8String::size(), and UT_UTF8String::utf8_str().
Referenced by AP_Win32Dialog_Latex::event_Insert(), AP_UnixDialog_Latex::event_Insert(), and AP_CocoaDialog_Latex::event_Insert.
void AP_Dialog_Latex::fillLatex | ( | UT_UTF8String & | sLatex | ) |
References setLatex(), and setLatexInGUI().
Referenced by dlgEditLatexEquation().
AP_Dialog_Latex::tAnswer AP_Dialog_Latex::getAnswer | ( | void | ) | const |
References m_answer.
void AP_Dialog_Latex::getLatex | ( | UT_UTF8String & | sLatex | ) | [inline] |
virtual bool AP_Dialog_Latex::getLatexFromGUI | ( | void | ) | [pure virtual] |
Implemented in AP_CocoaDialog_Latex, AP_UnixDialog_Latex, and AP_Win32Dialog_Latex.
void AP_Dialog_Latex::insertIntoDoc | ( | void | ) |
void AP_Dialog_Latex::setActiveFrame | ( | XAP_Frame * | pFrame | ) | [virtual] |
Reimplemented from XAP_Dialog_Modeless.
References XAP_Dialog_Modeless::getActiveFrame(), and XAP_Dialog_Modeless::notifyActiveFrame().
void AP_Dialog_Latex::setDisplayMode | ( | AbiDisplayMode | mode | ) | [inline] |
Referenced by dlgEditLatexEquation().
void AP_Dialog_Latex::setLatex | ( | UT_UTF8String & | sLatex | ) | [inline] |
virtual void AP_Dialog_Latex::setLatexInGUI | ( | void | ) | [pure virtual] |
Implemented in AP_CocoaDialog_Latex, AP_UnixDialog_Latex, and AP_Win32Dialog_Latex.
Referenced by fillLatex().
void AP_Dialog_Latex::setMathML | ( | UT_UTF8String & | sMathML | ) | [inline] |
AP_Dialog_Latex::tAnswer AP_Dialog_Latex::m_answer [protected] |
bool AP_Dialog_Latex::m_compact [protected] |
UT_UTF8String AP_Dialog_Latex::m_sLatex [private] |
Referenced by convertLatexToMathML(), and insertIntoDoc().
UT_UTF8String AP_Dialog_Latex::m_sMathML [private] |
Referenced by convertLatexToMathML(), and insertIntoDoc().
UT_UTF8String AP_Dialog_Latex::m_sWindowName [protected] |