Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

mlview-xml-document-view.c File Reference

#include "mlview-xml-document-view.h"

Go to the source code of this file.

Data Structures

struct  _MlViewXMLDocumentViewPrivate

Defines

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

Enumerations

enum  { NAME_CHANGED, NUMBER_OF_SIGNALS }

Functions

enum MLVIEW_XML_DOCUMENT_VIEW_STATUS mlview_xml_document_view_construct (MlViewXMLDocumentView *a_doc_view, MlViewXMLDocument *a_mlview_xml_doc)
MlViewXMLDocumentViewmlview_xml_document_view_new (MlViewXMLDocument *a_mlview_doc)
void mlview_xml_document_view_set_document (MlViewXMLDocumentView *a_xml_doc_view, MlViewXMLDocument *a_mlview_xml_doc)
 Associates an mlview xml document to the current instance of MlViewXMLDocumentView.

MlViewXMLDocumentmlview_xml_document_view_get_document (MlViewXMLDocumentView *a_xml_doc_view)
gint mlview_xml_document_view_get_type (void)
 The type builder of this class.

void mlview_xml_document_view_set_name (MlViewXMLDocumentView *a_doc_view, gchar *a_name)
 Sets the document name to the new one.

void mlview_xml_document_view_set_name_interactive (MlViewXMLDocumentView *a_view)
gchar * mlview_xml_document_view_get_name (MlViewXMLDocumentView *a_doc_view)
void mlview_xml_document_view_set_document_signal_handlers (SignalCallbackDescriptor *a_signals)
 This functions is a startup init function.

MlViewFileDescriptormlview_xml_document_view_get_file_descriptor (MlViewXMLDocumentView *a_doc_view)
void mlview_xml_document_view_destroy (GtkObject *a_mlview_xml_doc_view)


Define Documentation

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

Definition at line 74 of file mlview-xml-document-view.c.

Referenced by mlview_xml_document_view_construct(), mlview_xml_document_view_destroy(), mlview_xml_document_view_get_document(), mlview_xml_document_view_get_file_descriptor(), mlview_xml_document_view_get_name(), mlview_xml_document_view_set_document(), mlview_xml_document_view_set_name(), and mlview_xml_document_view_set_name_interactive().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
NAME_CHANGED 
NUMBER_OF_SIGNALS 

Definition at line 34 of file mlview-xml-document-view.c.


Function Documentation

enum MLVIEW_XML_DOCUMENT_VIEW_STATUS mlview_xml_document_view_construct MlViewXMLDocumentView   a_doc_view,
MlViewXMLDocument   a_mlview_xml_doc
 

Definition at line 283 of file mlview-xml-document-view.c.

References MLVIEW_IS_XML_DOCUMENT, MLVIEW_IS_XML_DOCUMENT_VIEW, MLVIEW_XML_DOCUMENT_VIEW_BAD_PARAMETER, and PRIVATE.

Referenced by mlview_xml_doc_tree_view_construct(), and mlview_xml_document_view_new().

void mlview_xml_document_view_destroy GtkObject *    a_mlview_xml_doc_view
 

Definition at line 516 of file mlview-xml-document-view.c.

References MLVIEW_IS_XML_DOCUMENT_VIEW, MLVIEW_XML_DOCUMENT_VIEW, mlview_xml_document_view_get_document(), and PRIVATE.

MlViewXMLDocument* mlview_xml_document_view_get_document MlViewXMLDocumentView   a_xml_doc_view
 

Parameters:
a_xml_doc_view  the current instance of MlViewXMLDocumentView.

Definition at line 344 of file mlview-xml-document-view.c.

References MLVIEW_IS_XML_DOCUMENT_VIEW, and PRIVATE.

Referenced by mlview_editor_add_xml_document_view(), mlview_editor_associate_dtd_interactive(), mlview_editor_close_xml_document_interactive(), mlview_editor_create_new_view_on_current_document_interactive(), mlview_editor_get_current_xml_doc_file_path(), mlview_editor_remove_xml_document_view(), mlview_editor_save_and_close_xml_document(), mlview_editor_save_xml_document(), mlview_editor_save_xml_document_as(), mlview_editor_validate(), and mlview_xml_document_view_destroy().

MlViewFileDescriptor* mlview_xml_document_view_get_file_descriptor MlViewXMLDocumentView   a_doc_view
 

Parameters:
a_doc_view  the current instance of MlViewXMLDocumentView.

Definition at line 500 of file mlview-xml-document-view.c.

References MLVIEW_IS_XML_DOCUMENT_VIEW, mlview_xml_document_get_file_descriptor(), and PRIVATE.

Referenced by mlview_editor_add_xml_document_view(), mlview_editor_remove_xml_document_view(), and mlview_editor_save_xml_document_as().

gchar* mlview_xml_document_view_get_name MlViewXMLDocumentView   a_doc_view
 

Parameters:
a_doc_view  the current instance of MlViewXMLDocumentView.
Returns:
a pointer to the name of the current xml document. Note the caller should neither

Definition at line 468 of file mlview-xml-document-view.c.

References MLVIEW_IS_XML_DOCUMENT_VIEW, and PRIVATE.

Referenced by mlview_xml_document_view_set_name_interactive().

gint mlview_xml_document_view_get_type void   
 

The type builder of this class.

This method is part of the Gtk typing system framework.

Definition at line 360 of file mlview-xml-document-view.c.

MlViewXMLDocumentView* mlview_xml_document_view_new MlViewXMLDocument   a_mlview_doc
 

Definition at line 303 of file mlview-xml-document-view.c.

References MLVIEW_TYPE_XML_DOCUMENT_VIEW, mlview_xml_document_view_construct(), and MLVIEW_XML_DOCUMENT_VIEW_OK.

void mlview_xml_document_view_set_document MlViewXMLDocumentView   a_xml_doc_view,
MlViewXMLDocument   a_mlview_xml_doc
 

Associates an mlview xml document to the current instance of MlViewXMLDocumentView.

Parameters:
a_mlview_xml_doc  the new mlview xml document to associate to the current instanceof MlViewXMLDocumentView.
a_xml_doc_view  the current instance of MlViewXMLDocumentView.

Definition at line 326 of file mlview-xml-document-view.c.

References MLVIEW_IS_XML_DOCUMENT_VIEW, and PRIVATE.

void mlview_xml_document_view_set_document_signal_handlers SignalCallbackDescriptor   a_signals
 

This functions is a startup init function.

The does something only when it is called for the first time. It sets the signal handlers of the current view vis a vis the underlying document. Subsequent calls just do nothing.

Parameters:
a_signals  the signal handlers

Definition at line 487 of file mlview-xml-document-view.c.

Referenced by mlview_xml_doc_tree_view_construct().

void mlview_xml_document_view_set_name MlViewXMLDocumentView   a_doc_view,
gchar *    a_name
 

Sets the document name to the new one.

The new name is copied so that the caller can free a_name if she wish. This function makes a_doc_view emit the "name-changed" signal.

Parameters:
a_doc_view  the document view.
a_name  the new document name.

Definition at line 389 of file mlview-xml-document-view.c.

References MLVIEW_IS_XML_DOCUMENT_VIEW, NAME_CHANGED, and PRIVATE.

Referenced by mlview_editor_add_xml_document_view(), mlview_editor_save_xml_document_as(), mlview_editor_set_current_view_name(), and mlview_xml_document_view_set_name_interactive().

void mlview_xml_document_view_set_name_interactive MlViewXMLDocumentView   a_view
 

Parameters:
a_view  the current xml document view.

Definition at line 415 of file mlview-xml-document-view.c.

References MLVIEW_IS_XML_DOCUMENT_VIEW, mlview_xml_document_get_app_context(), mlview_xml_document_view_get_name(), mlview_xml_document_view_set_name(), and PRIVATE.

Referenced by mlview_editor_set_current_view_name_interactive().


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