* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
#ifndef __G_SHEET_MODEL_H__
#define __G_SHEET_MODEL_H__
{
GTypeInterface g_iface;
+ gboolean free_strings;
+
/* Signals */
void (* range_changed) (GSheetModel *sheet_model,
gint row0, gint col0,
void (* rows_deleted) (GSheetModel *sheet_model,
gint row, gint n_rows);
+ void (* columns_inserted) (GSheetModel *sheet_model,
+ gint column, gint n_columns);
+
+ void (* columns_deleted) (GSheetModel *sheet_model,
+ gint column, gint n_columns);
+
+
/* Virtual Table */
- const gchar * (* get_string) (const GSheetModel *sheet_model,
+
+ gchar * (* get_string) (const GSheetModel *sheet_model,
gint row, gint column);
gboolean (* set_string) (GSheetModel *sheet_model,
const GtkSheetCellBorder * (* get_cell_border) (const GSheetModel *sheet_model,
gint row, gint column);
+
+ gint (*get_column_count) (const GSheetModel *model);
+
+ gint (*get_row_count) (const GSheetModel *model);
+
};
GType g_sheet_model_get_type (void) G_GNUC_CONST;
-inline const gchar * g_sheet_model_get_string (const GSheetModel *sheet_model,
+inline gchar * g_sheet_model_get_string (const GSheetModel *sheet_model,
gint row, gint column);
inline gboolean g_sheet_model_set_string (GSheetModel *sheet_model,
inline void g_sheet_model_rows_inserted (GSheetModel *sheet_model,
gint row, gint n_rows);
+inline void g_sheet_model_columns_inserted (GSheetModel *sheet_model,
+ gint column, gint n_columns);
+
+inline void g_sheet_model_columns_deleted (GSheetModel *sheet_model,
+ gint column, gint n_columns);
+
+
inline gboolean g_sheet_model_is_editable (const GSheetModel *model,
gint row, gint column);
inline const GtkSheetCellBorder * g_sheet_model_get_cell_border
(const GSheetModel *model, gint row, gint column);
+inline gboolean g_sheet_model_free_strings (const GSheetModel *sheet_model);
+inline gint g_sheet_model_get_column_count(const GSheetModel *sheet_model);
+inline gint g_sheet_model_get_row_count(const GSheetModel *sheet_model);
G_END_DECLS