![]() | ![]() | ![]() | ![]() |
#define E_TABLE_SPECIFICATION_TYPE typedef ETableSpecification; ETableSpecification* e_table_specification_new (void);gboolean e_table_specification_load_from_file (ETableSpecification *specification, constchar *filename);void e_table_specification_load_from_string (ETableSpecification *specification, constchar *xml);void e_table_specification_load_from_node (ETableSpecification *specification, constxmlNode *node);void e_table_specification_save_to_file (ETableSpecification *specification, constchar *filename);char * e_table_specification_save_to_string (ETableSpecification *specification);xmlNode * e_table_specification_save_to_node (ETableSpecification *specification,xmlDoc *doc);
This object is used to keep track of the ETableState, and it is mostly an internal function. These are used by the ETable widget and its configuration engine (ETableConfig). It is mostly an internal object.
typedef struct { GtkObject base; ETableColumnSpecification **columns; ETableState *state; guint no_headers : 1; guint click_to_add : 1; guint draw_grid : 1; ETableCursorMode cursor_mode; char *click_to_add_message_; } ETableSpecification;
ETableSpecification* e_table_specification_new (void);
Creates a new ETableSpecification object. This object is used to hold the information about the rendering information for ETable.
Returns : | a newly created ETableSpecification object. |
gboolean e_table_specification_load_from_file (ETableSpecification *specification, constchar *filename);
This routine modifies specification
to reflect the state described
by the file filename
.
specification : | An ETableSpecification that you want to modify |
filename : | a filename that contains an ETableSpecification |
Returns : | TRUE on success, FALSE on failure. |
void e_table_specification_load_from_string (ETableSpecification *specification, constchar *xml);
This routine modifies specification
to reflect the state described
by xml
. xml
is typically returned by e_table_specification_save_to_string
or it can be embedded in your source code.
specification : | An ETableSpecification that you want to modify |
xml : | a stringified representation of an ETableSpecification description. |
void e_table_specification_load_from_node (ETableSpecification *specification, constxmlNode *node);
This routine modifies specification
to reflect the state described
by node
.
specification : | An ETableSpecification that you want to modify |
node : | an xmlNode with an XML ETableSpecification description. |
void e_table_specification_save_to_file (ETableSpecification *specification, constchar *filename);
This routine stores the specification
into filename
.
specification : | An ETableSpecification that you want to save |
filename : | a file name to store the specification. |
char * e_table_specification_save_to_string (ETableSpecification *specification);
Saves the state of specification
to a string.
specification : | An ETableSpecification that you want to stringify |
Returns : | an |
xmlNode * e_table_specification_save_to_node (ETableSpecification *specification,xmlDoc *doc);
This routine saves the ETableSpecification state in the object specification
into the xmlDoc represented by doc
.
specification : | An ETableSpecification that you want to store. |
doc : | Node where the specification is saved |
Returns : | The node that has been attached to |
<<< ETableConfigField | ETableHeader >>> |