Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

mlview-namespace-editor.c File Reference

#include "mlview-namespace-editor.h"
#include "mlview-app-context.h"
#include "utils.h"

Go to the source code of this file.

Data Structures

struct  _MlViewNamespaceDesc
struct  _MlViewNamespaceEditorPrivate

Defines

#define PRIVATE(editor)   (editor->private)

Typedefs

typedef _MlViewNamespaceDesc MlViewNamespaceDesc

Enumerations

enum  {
  NAMESPACE_ADDED, NAMESPACE_PREFIX_CHANGED, NAMESPACE_URI_CHANGED, NAMESPACE_CHANGED,
  NAMESPACE_DELETED, NUMBER_OF_SIGNALS
}
enum  { NS_PREFIX_COLUMN, NS_URI_COLUMN }

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 PRIVATE editor       (editor->private)
 

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


Typedef Documentation

typedef struct _MlViewNamespaceDesc MlViewNamespaceDesc
 

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


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
NAMESPACE_ADDED 
NAMESPACE_PREFIX_CHANGED 
NAMESPACE_URI_CHANGED 
NAMESPACE_CHANGED 
NAMESPACE_DELETED 
NUMBER_OF_SIGNALS 

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

anonymous enum
 

Enumeration values:
NS_PREFIX_COLUMN 
NS_URI_COLUMN 

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


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