Top | ![]() |
![]() |
![]() |
![]() |
#define CONG_VALIDATE_UTF8(str) ({g_assert(g_utf8_validate((str), -1, NULL));})
GtkWidget *
cong_editor_view_get_widget (CongEditorView *editor_view
);
GtkWidget * cong_dom_view_new (CongDocument *doc
,CongPrimaryWindow *primary_window
);
TODO: Write me
GtkWidget *
cong_debug_message_log_view_new (CongDocument *doc
);
TODO: Write me
GtkWidget *
cong_debug_signal_log_view_new (CongDocument *doc
);
TODO: Write me
GtkWidget * cong_node_properties_dialog_new (CongDocument *doc
,CongNodePtr node
,GtkWindow *parent_window
);
Create a dialog window which displays, and allows the user to edit, the properties of the supplied node. The format of the dialog depends on the node type.
The main interest will be for nodes of type CONG_NODE_TYPE_ELEMENT. If there is a plugin registered for this node then the plugin will be used, otherwise the attributes of the node will be displayed. In the later case, the attributes will be displayed in a "raw" form (as a set of name and value pairs) and, if a DTD associated with this file, using an interface that follows the DTD (e.g. will limit enumerated values to the allowable choices only).
For CONG_NODE_TYPE_TEXT nodes the properties of the parent node will be displayed. This is primarily so that users can access the attributes of span nodes, but it will work for any text node. Should there be a way to indicate that this has happened (i.e. some indication in the dialog that we are actually displaying the parent's properties)?
Other node types result in a dialog which only lists the name and the XPath location of the node.
At present the returned dialog window should be displayed using
gtk_widget_show()
rather than gtk_dialog_run()
.
GList * xml_all_present_span_elements (CongDispspec *ds
,CongNodePtr node
);
TODO: Write me
GList * xml_all_valid_span_elements (CongDispspec *ds
,CongNodePtr node
);
TODO: Write me
gboolean cong_cursor_calc_prev_char (CongCursor *curs
,CongDocument *doc
,CongLocation *output_loc
);
gboolean cong_cursor_calc_next_char (CongCursor *curs
,CongDocument *doc
,CongLocation *output_loc
);
void cong_cursor_del_prev_char (CongCursor *curs
,CongDocument *doc
);
TODO: Write me
void cong_cursor_del_next_char (CongCursor *curs
,CongDocument *doc
);
TODO: Write me
const CongLocation *
cong_cursor_get_location (const CongCursor *cursor
);
TODO: Write me
CongDispspec * query_for_forced_dispspec (gchar *what_failed
,xmlDocPtr doc
,GtkWindow *parent_window
,const gchar *filename_extension
);
TODO: Write me