39 #ifndef DOC_LINK_CELL_H 40 #define DOC_LINK_CELL_H 46 #define GLYPH_PAPERCLIP "\360\237\223\216" // Codepoint U+1F4CE 47 #define GLYPH_LINK "\360\237\224\227" // Codepoint U+1F517 49 typedef const char * (*DoclinkcellStringGetter) (
char flag);
50 typedef gboolean (*DoclinkcellConfirm) (
char old_flag, gpointer data);
62 DoclinkcellStringGetter get_string;
63 DoclinkcellConfirm confirm_cb;
64 gpointer confirm_data;
69 BasicCell * gnc_doclink_cell_new (
void);
71 void gnc_doclink_cell_set_flag (
Doclinkcell *cell,
char flag);
74 void gnc_doclink_cell_set_confirm_cb (
Doclinkcell *cell,
75 DoclinkcellConfirm confirm_cb,
78 void gnc_doclink_cell_set_string_getter (
Doclinkcell *cell,
79 DoclinkcellStringGetter getter);
89 void gnc_doclink_cell_set_flag_order (
Doclinkcell *cell,
const char *flags);
91 void gnc_doclink_cell_set_read_only (
Doclinkcell *cell, gboolean read_only);
93 void gnc_doclink_cell_set_use_glyphs (
Doclinkcell *cell);
95 gboolean gnc_doclink_get_use_glyphs (
Doclinkcell *cell);
97 const char * gnc_doclink_get_glyph_from_flag (
char link_flag);
char * valid_flags
The actual flag value.
The Doclinkcell object implements a cell handler that will cycle through a series of single-character...
char * flag_order
The list of valid flags.
char default_flag
Automatic flag selection order.
void gnc_doclink_cell_set_valid_flags(Doclinkcell *cell, const char *flags, char default_flag)
note that