Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

mlview-namespace-editor.h

Go to the documentation of this file.
00001 /*This file is part of MlView
00002  *
00003  *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  *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_NAMESPACE_EDITOR_H__
00019 #define __MLVIEW_NAMESPACE_EDITOR_H__
00020 
00021 #include <gnome.h>
00022 #include <libxml/tree.h>
00023 #include "mlview-app-context.h"
00024 
00025 #ifdef __cpluplus
00026 extern "C"{
00027 #endif /*__cpluplus*/
00028 
00029 #define MLVIEW_TYPE_NAMESPACE_EDITOR (mlview_namespace_editor_get_type())
00030 #define MLVIEW_NAMESPACE_EDITOR(object) (GTK_CHECK_CAST(object, MLVIEW_TYPE_NAMESPACE_EDITOR, MlViewNamespaceEditor))
00031 #define MLVIEW_NAMESPACE_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST(klass, MLVIEW_TYPE_NAMESPACE_EDITOR, MlViewNamespaceEditorClass))
00032 #define MLVIEW_IS_NAMESPACE_EDITOR(object) (GTK_CHECK_TYPE(object, MLVIEW_TYPE_NAMESPACE_EDITOR))
00033 #define MLVIEW_IS_NAMESPACE_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST(klass, MLVIEW_TYPE_NAMESPACE_EDITOR))     
00034 
00035         typedef struct _MlViewNamespaceEditor MlViewNamespaceEditor ;
00036         typedef struct _MlViewNamespaceEditorClass MlViewNamespaceEditorClass ;
00037         typedef struct _MlViewNamespaceEditorPrivate MlViewNamespaceEditorPrivate ;
00038 
00039         struct _MlViewNamespaceEditor{
00040                 GtkVBox container ;/*parent object*/
00041                 MlViewNamespaceEditorPrivate *private ;
00042         };
00043 
00044         struct _MlViewNamespaceEditorClass{
00045                 GtkVBoxClass parent_class ;
00046                 void (*namespace_added)(MlViewNamespaceEditor *a_editor, xmlNs *a_namespace, gpointer a_data) ;
00047                 void (*namespace_prefix_changed)(MlViewNamespaceEditor *a_editor, xmlNs * a_namespace, gpointer a_data) ;
00048                 void (*namespace_uri_changed)(MlViewNamespaceEditor *a_editor, xmlNs *a_namespace, gpointer a_data) ;
00049                 void (*namespace_changed)(MlViewNamespaceEditor *a_editor, xmlNs *a_namespace, gpointer a_data) ;
00050                 void (*namespace_deleted)(MlViewNamespaceEditor *a_editor, xmlNs *a_namespace, gpointer a_data) ;
00051         };
00052 
00053         guint mlview_namespace_editor_get_type() ;
00054 
00055         GtkWidget * mlview_namespace_editor_new(MlViewAppContext *a_app_context) ;
00056 
00057         void mlview_namespace_editor_edit_node_visible_namespaces(MlViewNamespaceEditor *a_editor, xmlNode *a_xml_node) ;
00058 
00059         void mlview_namespace_editor_clear(MlViewNamespaceEditor *a_editor) ;
00060 
00061         xmlNs * mlview_namespace_editor_get_current_selected_ns(MlViewNamespaceEditor *a_editor) ;
00062 
00063         xmlNode * mlview_namespace_editor_get_current_xml_node(MlViewNamespaceEditor *a_editor) ;
00064 
00065         xmlNs * mlview_namespace_editor_add_namespace_def(MlViewNamespaceEditor *a_editor, gchar * a_ns_prefix, gchar *a_ns_uri, xmlNode * a_xml_node) ;
00066 
00067         void  mlview_namespace_editor_remove_namespace_def(MlViewNamespaceEditor *a_editor, xmlNs *a_ns, xmlNode * a_xml_node) ;
00068 
00069 #ifdef __cpluplus
00070 }
00071 #endif /*__cpluplus*/
00072 
00073 #endif/*__MLVIEW_NAMESPACE_EDITOR_H__*/

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