![]() | ![]() | ![]() | Conglomerate Programmer's Reference Manual | ![]() |
---|
cong-command —
#define DEBUG_COMMAND_LIFETIMES #define CONG_COMMAND_TYPE #define CONG_COMMAND (obj) #define CONG_COMMAND_CLASS (klass) #define IS_CONG_COMMAND (obj) GType cong_command_get_type (void); CongCommand* cong_command_construct (CongCommand *command, CongDocument *doc, const gchar *description, const gchar *consolidation_id); CongCommand* cong_command_private_new (CongDocument *doc, const gchar *description, const gchar *consolidation_id); CongDocument* cong_command_get_document (CongCommand *command); const gchar* cong_command_get_description (CongCommand *command); const gchar* cong_command_get_consolidation_id (CongCommand *command); void cong_command_undo (CongCommand *command); void cong_command_redo (CongCommand *command); void cong_command_merge (CongCommand *dst, CongCommand *src); gboolean cong_command_has_ever_been_undone (CongCommand *cmd); void cong_command_add_modification (CongCommand *cmd, CongModification *modification); void cong_command_add_node_make_orphan (CongCommand *cmd, CongNodePtr node); void cong_command_add_node_add_after (CongCommand *cmd, CongNodePtr node, CongNodePtr older_sibling); void cong_command_add_node_add_before (CongCommand *cmd, CongNodePtr node, CongNodePtr younger_sibling); void cong_command_add_node_set_parent (CongCommand *cmd, CongNodePtr node, CongNodePtr adoptive_parent); void cong_command_add_node_set_text (CongCommand *cmd, CongNodePtr node, const xmlChar *new_content); void cong_command_add_node_set_attribute (CongCommand *cmd, CongNodePtr node, const xmlChar *name, const xmlChar *value); void cong_command_add_node_remove_attribute (CongCommand *cmd, CongNodePtr node, const xmlChar *name); void cong_command_add_selection_change (CongCommand *cmd, const CongLocation *new_logical_start, const CongLocation *new_logical_end); void cong_command_add_cursor_change (CongCommand *cmd, const CongLocation *new_location); void cong_command_add_set_dtd_ptr (CongCommand *cmd, xmlDtdPtr dtd_ptr); void cong_command_add_set_clipboard (CongCommand *cmd, const gchar *clipboard_source); void cong_command_add_node_recursive_delete (CongCommand *cmd, CongNodePtr node); typedef gboolean (); void cong_command_for_each_location (CongCommand *cmd, CongUpdateLocationCallback callback, gpointer user_data); void cong_command_add_delete_range (CongCommand *cmd, CongRange *range); void cong_command_add_delete_selection (CongCommand *cmd); void cong_command_add_insert_text_at_cursor (CongCommand *cmd, const gchar *string); void cong_command_add_nullify_cursor (CongCommand *cmd); void cong_command_add_nullify_selection (CongCommand *cmd); CongNodePtr cong_command_add_xml_frag_data_nice_split2 (CongCommand *cmd, const CongLocation *loc); void cong_command_add_merge_adjacent_text_nodes (CongCommand *cmd); void cong_command_add_merge_adjacent_text_children_of_node (CongCommand *cmd, CongNodePtr node); gboolean cong_command_can_add_reparent_selection (CongCommand *cmd); CongNodePtr cong_command_add_reparent_selection (CongCommand *cmd, CongNodePtr node); CongNodePtr cong_command_add_node_split3 (CongCommand *cmd, CongNodePtr node, int c0, int c1); void cong_command_add_set_cursor_to_first_text_descendant (CongCommand *cmd, CongNodePtr node); void cong_command_add_set_external_dtd (CongCommand *cmd, const gchar *root_element, const gchar *public_id, const gchar *system_id);
#define CONG_COMMAND(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, CONG_COMMAND_TYPE, CongCommand)
obj : |
#define CONG_COMMAND_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, CONG_COMMAND_TYPE, CongCommandClass)
klass : |
#define IS_CONG_COMMAND(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, CONG_COMMAND_TYPE)
obj : |
CongCommand* cong_command_construct (CongCommand *command, CongDocument *doc, const gchar *description, const gchar *consolidation_id);
command : | |
doc : | |
description : | |
consolidation_id : | |
Returns : |
CongCommand* cong_command_private_new (CongDocument *doc, const gchar *description, const gchar *consolidation_id);
doc : | |
description : | |
consolidation_id : | |
Returns : |
CongDocument* cong_command_get_document (CongCommand *command);
command : | |
Returns : |
const gchar* cong_command_get_description (CongCommand *command);
command : | |
Returns : |
const gchar* cong_command_get_consolidation_id (CongCommand *command);
command : | |
Returns : |
gboolean cong_command_has_ever_been_undone (CongCommand *cmd);
cmd : | |
Returns : |
void cong_command_add_modification (CongCommand *cmd, CongModification *modification);
cmd : | |
modification : |
void cong_command_add_node_make_orphan (CongCommand *cmd, CongNodePtr node);
cmd : | |
node : |
void cong_command_add_node_add_after (CongCommand *cmd, CongNodePtr node, CongNodePtr older_sibling);
cmd : | |
node : | |
older_sibling : |
void cong_command_add_node_add_before (CongCommand *cmd, CongNodePtr node, CongNodePtr younger_sibling);
cmd : | |
node : | |
younger_sibling : |
void cong_command_add_node_set_parent (CongCommand *cmd, CongNodePtr node, CongNodePtr adoptive_parent);
cmd : | |
node : | |
adoptive_parent : |
void cong_command_add_node_set_text (CongCommand *cmd, CongNodePtr node, const xmlChar *new_content);
cmd : | |
node : | |
new_content : |
void cong_command_add_node_set_attribute (CongCommand *cmd, CongNodePtr node, const xmlChar *name, const xmlChar *value);
cmd : | |
node : | |
name : | |
value : |
void cong_command_add_node_remove_attribute (CongCommand *cmd, CongNodePtr node, const xmlChar *name);
cmd : | |
node : | |
name : |
void cong_command_add_selection_change (CongCommand *cmd, const CongLocation *new_logical_start, const CongLocation *new_logical_end);
cmd : | |
new_logical_start : | |
new_logical_end : |
void cong_command_add_cursor_change (CongCommand *cmd, const CongLocation *new_location);
cmd : | |
new_location : |
void cong_command_add_set_dtd_ptr (CongCommand *cmd, xmlDtdPtr dtd_ptr);
cmd : | |
dtd_ptr : |
void cong_command_add_set_clipboard (CongCommand *cmd, const gchar *clipboard_source);
cmd : | |
clipboard_source : |
void cong_command_add_node_recursive_delete (CongCommand *cmd, CongNodePtr node);
cmd : | |
node : |
void cong_command_for_each_location (CongCommand *cmd, CongUpdateLocationCallback callback, gpointer user_data);
cmd : | |
callback : | |
user_data : |
void cong_command_add_delete_range (CongCommand *cmd, CongRange *range);
cmd : | |
range : |
void cong_command_add_delete_selection (CongCommand *cmd);
cmd : |
void cong_command_add_insert_text_at_cursor (CongCommand *cmd, const gchar *string);
cmd : | |
string : |
void cong_command_add_nullify_selection (CongCommand *cmd);
cmd : |
CongNodePtr cong_command_add_xml_frag_data_nice_split2 (CongCommand *cmd, const CongLocation *loc);
cmd : | |
loc : | |
Returns : |
void cong_command_add_merge_adjacent_text_nodes (CongCommand *cmd);
cmd : |
void cong_command_add_merge_adjacent_text_children_of_node (CongCommand *cmd, CongNodePtr node);
cmd : | |
node : |
gboolean cong_command_can_add_reparent_selection (CongCommand *cmd);
cmd : | |
Returns : |
CongNodePtr cong_command_add_reparent_selection (CongCommand *cmd, CongNodePtr node);
cmd : | |
node : | |
Returns : |
CongNodePtr cong_command_add_node_split3 (CongCommand *cmd, CongNodePtr node, int c0, int c1);
cmd : | |
node : | |
c0 : | |
c1 : | |
Returns : |
void cong_command_add_set_cursor_to_first_text_descendant (CongCommand *cmd, CongNodePtr node);
cmd : | |
node : |
<< Undo/Redo System | cong-command-history >> |