Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

utils.h

Go to the documentation of this file.
00001 /*This file is part of GNU MlView
00002  *
00003  *GNU MlView is free software; you can redistribute it and/or modify it under the terms of 
00004  *the GNU General Public License as published by the Free Software Foundation; either version 2, 
00005  *or (at your option) any later version.
00006  *
00007  *GNU MlView is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
00008  *without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00009  *See the GNU General Public License for more details.
00010  *
00011  *You should have received a copy of the GNU General Public License along with MlView; 
00012  *see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00013  *
00014  *
00015  *Copyright 2001 dodji seketeli
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

Generated on Sat Jul 6 09:57:38 2002 for Gnome-MlView by doxygen1.2.16