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

itex2MML.h

Go to the documentation of this file.
00001 /*             itex2MML 1.4.8
00002  *   itex2MML.h last modified 9/21/2011
00003  */
00004 
00005 #ifndef ITEX2MML_H
00006 #define ITEX2MML_H
00007 
00008 #define ITEX2MML_VERSION "1.4.8"
00009 
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013 
00014   /* Step 1. Parse a buffer with itex source; return value is mathml, or 0 on failure (e.g., parse error).
00015    */
00016   extern char * itex2MML_parse (const char * buffer, unsigned long length);
00017 
00018   /* Step 2. Free the string from Step 1.
00019    */
00020   extern void   itex2MML_free_string (char * str);
00021 
00022 
00023   /* Alternatively, to filter generic source and converting embedded equations, use:
00024    */
00025   extern int    itex2MML_filter (const char * buffer, unsigned long length);
00026 
00027   extern int    itex2MML_html_filter (const char * buffer, unsigned long length);
00028   extern int    itex2MML_strict_html_filter (const char * buffer, unsigned long length);
00029 
00030 
00031   /* To change output methods:
00032    *
00033    * Note: If length is 0, then buffer is treated like a string; otherwise only length bytes are written.
00034    */
00035   extern void (*itex2MML_write) (const char * buffer, unsigned long length); /* default writes to stdout */
00036   extern void (*itex2MML_write_mathml) (const char * mathml);                /* default calls itex2MML_write(mathml,0) */
00037   extern void (*itex2MML_error) (const char * msg);                          /* default writes to stderr */
00038 
00039 
00040   /* Other stuff:
00041    */
00042   extern void   itex2MML_setup (const char * buffer, unsigned long length);
00043 
00044   extern void   itex2MML_restart ();
00045 
00046   extern char * itex2MML_copy_string (const char * str);
00047   extern char * itex2MML_copy_string_extra (const char * str, unsigned extra);
00048   extern char * itex2MML_copy2 (const char * first, const char * second);
00049   extern char * itex2MML_copy3 (const char * first, const char * second, const char * third);
00050   extern char * itex2MML_copy_escaped (const char * str);
00051 
00052   extern char * itex2MML_empty_string;
00053 
00054   extern int    itex2MML_lineno;
00055 
00056   extern int    itex2MML_rowposn;
00057   extern int    itex2MML_displaymode;
00058 
00059 #ifdef __cplusplus
00060 }
00061 #endif
00062 
00063 #endif /* ! ITEX2MML_H */

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1