row, column);
}
-/**
- * g_sheet_model_get_cell_border:
- * @sheet_model: A #GSheetModel
- * @row: The row
- * @column: The column
- *
- * Returns the cell border of the cell at @row, @column
- * Returns: the cell border, or NULL on error.
- **/
-const GtkSheetCellBorder *
-g_sheet_model_get_cell_border (const GSheetModel *model,
- glong row, glong column)
-{
- g_return_val_if_fail (G_IS_SHEET_MODEL (model), NULL);
- if ( ! G_SHEET_MODEL_GET_IFACE (model)->get_cell_border)
- return NULL;
-
- return G_SHEET_MODEL_GET_IFACE (model)->get_cell_border (model,
- row, column);
-}
-
-
/**
* g_sheet_model_get_column_count:
const GtkJustification * (* get_justification) (const GSheetModel *sheet_model,
glong row, glong column);
- const GtkSheetCellBorder * (* get_cell_border) (const GSheetModel *sheet_model,
- glong row, glong column);
-
-
-
/* column related metadata */
gchar * (*get_column_title) (const GSheetModel *, gint col);
{
GdkColor *fg, *bg;
const GtkJustification *j ;
- const GtkSheetCellBorder *border ;
GdkColormap *colormap;
g_return_val_if_fail (sheet != NULL, FALSE);
if (j)
attr->justification = *j;
- border = g_sheet_model_get_cell_border (sheet->model, row, col);
-
- if ( border ) attr->border = *border;
-
return TRUE;
}
iface->is_editable = NULL;
iface->get_foreground = NULL;
iface->get_background = NULL;
- iface->get_cell_border = NULL;
iface->get_column_count = psppire_data_store_get_var_count;
iface->get_row_count = psppire_data_store_get_case_count_wrapper;
iface->is_editable = psppire_var_store_is_editable;
iface->get_foreground = psppire_var_store_get_foreground;
iface->get_background = NULL;
- iface->get_cell_border = NULL;
iface->get_justification = NULL;
iface->get_column_title = get_column_title;