Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

mlview-namespace-editor.h File Reference

#include <gnome.h>
#include <libxml/tree.h>
#include "mlview-app-context.h"

Go to the source code of this file.

Data Structures

struct  _MlViewNamespaceEditor
struct  _MlViewNamespaceEditorClass

Defines

#define MLVIEW_TYPE_NAMESPACE_EDITOR   (mlview_namespace_editor_get_type())
#define MLVIEW_NAMESPACE_EDITOR(object)   (GTK_CHECK_CAST(object, MLVIEW_TYPE_NAMESPACE_EDITOR, MlViewNamespaceEditor))
#define MLVIEW_NAMESPACE_EDITOR_CLASS(klass)   (GTK_CHECK_CLASS_CAST(klass, MLVIEW_TYPE_NAMESPACE_EDITOR, MlViewNamespaceEditorClass))
#define MLVIEW_IS_NAMESPACE_EDITOR(object)   (GTK_CHECK_TYPE(object, MLVIEW_TYPE_NAMESPACE_EDITOR))
#define MLVIEW_IS_NAMESPACE_EDITOR_CLASS(klass)   (GTK_CHECK_CLASS_CAST(klass, MLVIEW_TYPE_NAMESPACE_EDITOR))

Typedefs

typedef _MlViewNamespaceEditor MlViewNamespaceEditor
typedef _MlViewNamespaceEditorClass MlViewNamespaceEditorClass
typedef _MlViewNamespaceEditorPrivate MlViewNamespaceEditorPrivate

Functions

guint mlview_namespace_editor_get_type ()
GtkWidget * mlview_namespace_editor_new (MlViewAppContext *a_app_context)
 Creates a new instance of MlViewNamespaceEditor.

void mlview_namespace_editor_edit_node_visible_namespaces (MlViewNamespaceEditor *a_editor, xmlNode *a_xml_node)
 Given an xml node, edits the namespaces definied on that node, and also, those defined in the parent nodes.

void mlview_namespace_editor_clear (MlViewNamespaceEditor *a_editor)
 Clears the content of the current instance of MlViewNamespaceEditor.

xmlNs * mlview_namespace_editor_get_current_selected_ns (MlViewNamespaceEditor *a_editor)
 mlview_namespace_editor_get_current_selected_ns Gets the last namespace that has been graphicaly selected by the user.

xmlNode * mlview_namespace_editor_get_current_xml_node (MlViewNamespaceEditor *a_editor)
xmlNs * mlview_namespace_editor_add_namespace_def (MlViewNamespaceEditor *a_editor, gchar *a_ns_prefix, gchar *a_ns_uri, xmlNode *a_xml_node)
void mlview_namespace_editor_remove_namespace_def (MlViewNamespaceEditor *a_editor, xmlNs *a_ns, xmlNode *a_xml_node)


Define Documentation

#define MLVIEW_IS_NAMESPACE_EDITOR object       (GTK_CHECK_TYPE(object, MLVIEW_TYPE_NAMESPACE_EDITOR))
 

Definition at line 32 of file mlview-namespace-editor.h.

#define MLVIEW_IS_NAMESPACE_EDITOR_CLASS klass       (GTK_CHECK_CLASS_CAST(klass, MLVIEW_TYPE_NAMESPACE_EDITOR))
 

Definition at line 33 of file mlview-namespace-editor.h.

#define MLVIEW_NAMESPACE_EDITOR object       (GTK_CHECK_CAST(object, MLVIEW_TYPE_NAMESPACE_EDITOR, MlViewNamespaceEditor))
 

Definition at line 30 of file mlview-namespace-editor.h.

#define MLVIEW_NAMESPACE_EDITOR_CLASS klass       (GTK_CHECK_CLASS_CAST(klass, MLVIEW_TYPE_NAMESPACE_EDITOR, MlViewNamespaceEditorClass))
 

Definition at line 31 of file mlview-namespace-editor.h.

#define MLVIEW_TYPE_NAMESPACE_EDITOR   (mlview_namespace_editor_get_type())
 

Definition at line 29 of file mlview-namespace-editor.h.

Referenced by mlview_namespace_editor_new().


Typedef Documentation

typedef struct _MlViewNamespaceEditor MlViewNamespaceEditor
 

Definition at line 35 of file mlview-namespace-editor.h.

typedef struct _MlViewNamespaceEditorClass MlViewNamespaceEditorClass
 

Definition at line 36 of file mlview-namespace-editor.h.

typedef struct _MlViewNamespaceEditorPrivate MlViewNamespaceEditorPrivate
 

Definition at line 37 of file mlview-namespace-editor.h.


Function Documentation

xmlNs* mlview_namespace_editor_add_namespace_def MlViewNamespaceEditor   a_editor,
gchar *    a_ns_prefix,
gchar *    a_ns_uri,
xmlNode *    a_xml_node
 

Parameters:
a_new_ns_prefix  the prefix of the namespace to add to the current selected node.
a_new_ns_uri  the uri of the namespace to add to the current selected node.
a_editor  the current instance of MlViewNamespaceEditor.

Definition at line 610 of file mlview-namespace-editor.c.

void mlview_namespace_editor_clear MlViewNamespaceEditor   a_editor
 

Clears the content of the current instance of MlViewNamespaceEditor.

This method does not emit any signal.

Parameters:
a_editor  the current instance of MlViewNamespaceEditor.

Definition at line 535 of file mlview-namespace-editor.c.

References PRIVATE.

void mlview_namespace_editor_edit_node_visible_namespaces MlViewNamespaceEditor   a_editor,
xmlNode *    a_xml_node
 

Given an xml node, edits the namespaces definied on that node, and also, those defined in the parent nodes.

Keeps track of the xml node being currently edited.

Parameters:
a_xml_node 
a_editor 

Definition at line 500 of file mlview-namespace-editor.c.

References PRIVATE.

xmlNs* mlview_namespace_editor_get_current_selected_ns MlViewNamespaceEditor   a_editor
 

mlview_namespace_editor_get_current_selected_ns Gets the last namespace that has been graphicaly selected by the user.

Parameters:
a_editor  the current instance of MlViewNamespaceEditor.

Definition at line 568 of file mlview-namespace-editor.c.

References PRIVATE.

xmlNode* mlview_namespace_editor_get_current_xml_node MlViewNamespaceEditor   a_editor
 

Parameters:
a_editor 

Definition at line 592 of file mlview-namespace-editor.c.

References PRIVATE.

guint mlview_namespace_editor_get_type  
 

Parameters:
a_editor  the type builder of MlViewNamespaceEditor.

Definition at line 453 of file mlview-namespace-editor.c.

GtkWidget* mlview_namespace_editor_new MlViewAppContext   a_app_context
 

Creates a new instance of MlViewNamespaceEditor.

You can free this instance using gtk_widget_destroy.

Definition at line 477 of file mlview-namespace-editor.c.

References MLVIEW_TYPE_NAMESPACE_EDITOR, and PRIVATE.

void mlview_namespace_editor_remove_namespace_def MlViewNamespaceEditor   a_editor,
xmlNs *    a_ns,
xmlNode *    a_xml_node
 

Parameters:
a_ns  the ns to remove from it
a_editor  the current instance of MlViewNamespaceEditor

Definition at line 632 of file mlview-namespace-editor.c.

References _MlViewNamespaceDesc::ns_def, PRIVATE, and xmlUnlinkNsDef().


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