Functions | Variables

AbiLasemMathView.cpp File Reference

#include "AbiLasemMathView.h"
#include "pd_Document.h"
#include "pp_Property.h"
#include "pp_AttrProp.h"
#include "ut_mbtowc.h"
#include "gr_Painter.h"
#include "gr_CairoGraphics.h"
#include "xad_Document.h"
#include "xap_Module.h"
#include "ap_App.h"
#include "ie_imp.h"
#include "ie_impGraphic.h"
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "xap_App.h"
#include "xap_Frame.h"
#include "fv_View.h"
#include "ap_Menu_Id.h"
#include "ev_Menu_Actions.h"
#include "ev_Menu.h"
#include "ev_Menu_Layouts.h"
#include "ev_Menu_Labels.h"
#include "ev_EditMethod.h"
#include "xap_Menu_Layouts.h"
#include "ie_exp.h"
#include "ie_types.h"
#include "xap_Dialog_Id.h"
#include "ap_Dialog_Id.h"
#include "xap_Dlg_FileOpenSaveAs.h"
#include "xap_DialogFactory.h"
#include "xap_Dlg_MessageBox.h"
#include "ap_Strings.h"
#include "ap_Dialog_Latex.h"
#include "ie_math_convert.h"
#include "ut_sleep.h"
#include <goffice/goffice.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
#include "ut_files.h"

Functions

char * itex2MML_parse (const char *buffer, unsigned long length)
void itex2MML_free_string (char *str)
static char * lsm_itex_to_mathml (const char *itex, gsize size)
static void lsm_itex_free_mathml_buffer (char *mathml)
static bool AbiMathView_FileInsert (AV_View *v, EV_EditMethodCallData *d)
static bool AbiMathView_LatexInsert (AV_View *v, EV_EditMethodCallData *d)
static void AbiMathView_addToMenus ()
static void AbiMathView_removeFromMenus ()
XAP_Dialog_MessageBox::tAnswer s_CouldNotLoadFileMessage (XAP_Frame *pFrame, const char *pNewFile, UT_Error errorCode)
static bool s_AskForMathMLPathname (XAP_Frame *pFrame, std::string &ppPathname)
cairo_status_t abi_CairoWrite (UT_ByteBuf *buf, unsigned char *data, unsigned int length)
ABI_FAR_CALL int abi_plugin_register (XAP_ModuleInfo *mi)
ABI_FAR_CALL int abi_plugin_unregister (XAP_ModuleInfo *mi)
ABI_FAR_CALL int abi_plugin_supports_version (UT_uint32, UT_uint32, UT_uint32)

Variables

static GR_LasemMathManagerpMathManager = NULL
static const char * AbiMathView_MenuLabelEquation = NULL
static const char * AbiMathView_MenuTooltipEquation = NULL
static const char * AbiMathView_MenuLabelFileInsert = NULL
static const char * AbiMathView_MenuTooltipFileInsert = NULL
static const char * AbiMathView_MenuLabelLatexInsert = NULL
static const char * AbiMathView_MenuTooltipLatexInsert = NULL
static const char * AbiMathView_MenuEndEquation = "EndEquation"
static XAP_Menu_Id newEquationID
static XAP_Menu_Id FromFileID
static XAP_Menu_Id FromLatexID
static XAP_Menu_Id endEquationID

Function Documentation

cairo_status_t abi_CairoWrite ( UT_ByteBuf buf,
unsigned char *  data,
unsigned int  length 
)

References UT_ByteBuf::append().

ABI_FAR_CALL int abi_plugin_register ( XAP_ModuleInfo mi  ) 
ABI_FAR_CALL int abi_plugin_supports_version ( UT_uint32  ,
UT_uint32  ,
UT_uint32   
)
ABI_FAR_CALL int abi_plugin_unregister ( XAP_ModuleInfo mi  ) 
static void AbiMathView_addToMenus (  )  [static]
bool AbiMathView_FileInsert ( AV_View v,
EV_EditMethodCallData d 
) [static]
bool AbiMathView_LatexInsert ( AV_View v,
EV_EditMethodCallData d 
) [static]
static void AbiMathView_removeFromMenus (  )  [static]
void itex2MML_free_string ( char *  str  ) 
char* itex2MML_parse ( const char *  buffer,
unsigned long  length 
)

Referenced by lsm_itex_to_mathml().

static void lsm_itex_free_mathml_buffer ( char *  mathml  )  [static]
static char* lsm_itex_to_mathml ( const char *  itex,
gsize  size 
) [static]
static bool s_AskForMathMLPathname ( XAP_Frame pFrame,
std::string &  ppPathname 
) [static]
XAP_Dialog_MessageBox::tAnswer s_CouldNotLoadFileMessage ( XAP_Frame pFrame,
const char *  pNewFile,
UT_Error  errorCode 
)

Variable Documentation

const char* AbiMathView_MenuEndEquation = "EndEquation" [static]

Referenced by AbiMathView_addToMenus().

const char* AbiMathView_MenuLabelEquation = NULL [static]

Referenced by AbiMathView_addToMenus().

const char* AbiMathView_MenuLabelFileInsert = NULL [static]

Referenced by AbiMathView_addToMenus().

const char* AbiMathView_MenuLabelLatexInsert = NULL [static]

Referenced by AbiMathView_addToMenus().

const char* AbiMathView_MenuTooltipEquation = NULL [static]

Referenced by AbiMathView_addToMenus().

const char* AbiMathView_MenuTooltipFileInsert = NULL [static]

Referenced by AbiMathView_addToMenus().

const char* AbiMathView_MenuTooltipLatexInsert = NULL [static]

Referenced by AbiMathView_addToMenus().