00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __MLVIEW_UTILS_H__
00019 #define __MLVIEW_UTILS_H__
00020
00021 #include <libxml/tree.h>
00022 #include <libxml/parser.h>
00023 #include <libxml/xmlerror.h>
00024 #include <gnome.h>
00025
00026 #ifdef __cpluplus
00027 extern "C"{
00028 #endif //__cpluplus
00029 typedef enum {
00030 MLVIEW_UTILS_ERR_FILE_NAME_NULL=-1,
00031 MLVIEW_UTILS_ERR_BAD_FILE=-2,
00032 MLVIEW_UTILS_ERR_EMPTY_FILE=-3,
00033 MLVIEW_UTILS_ERR
00034 } MLVIEW_ERRORS ;
00035
00036 int
00037 load_xml_document(gchar * a_xmlfile, xmlParserCtxtPtr a_parser_context) ;
00038
00039 void
00040 get_xml_parser_error_as_string1(xmlParserCtxtPtr a_xml_parser_context, gchar * error_string) ;
00041
00042 void
00043 get_xml_parser_error_as_string2(xmlParserErrors a_xml_error, gchar * error_string) ;
00044
00045 gboolean
00046 utils_is_white_string(const gchar *a_str) ;
00047
00048 void
00049 utils_parse_full_name(xmlNode *a_node, gchar *a_full_name,
00050 xmlNs ** a_ns, gchar **a_local_name) ;
00051
00052 xmlNs *
00053 xmlUnlinkNs (xmlNode * node, xmlNs * ns) ;
00054
00055 xmlNs *
00056 xmlUnlinkNsDef (xmlNode * node, xmlNs * ns) ;
00057
00058 int
00059 xmlValidGetValidElementsChildren (xmlNode *a_node,
00060 const xmlChar **a_list,
00061 int a_max) ;
00062
00063 gint
00064 gtk_clist_row_absolute_top_ypixel (GtkCList *a_clist,
00065 gint a_row) ;
00066
00067 gint
00068 gtk_ctree_node_absolute_top_ypixel (GtkCTree * a_tree,
00069 GtkCTreeNode *a_node) ;
00070
00071 void init_i18n (void) ;
00072
00073 #ifdef __cpluplus
00074 }
00075 #endif //__cpluplus
00076 #endif