00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00042 #ifndef XACC_CELL_BLOCK_H
00043 #define XACC_CELL_BLOCK_H
00044
00045 #include "basiccell.h"
00046
00047 #include "gtable.h"
00048
00049 typedef struct
00050 {
00051 short num_rows;
00052 short num_cols;
00053
00054 short start_col;
00055 short stop_col;
00056
00057 char *cursor_name;
00058
00059 GPtrArray *cells;
00060 } CellBlock;
00061
00062
00063 CellBlock * gnc_cellblock_new (int rows, int cols, const char *cursor_name);
00064
00065 void gnc_cellblock_destroy (CellBlock *cellblock);
00066
00067 void gnc_cellblock_set_cell (CellBlock *cellblock,
00068 int row, int col,
00069 BasicCell *cell);
00070
00071 BasicCell * gnc_cellblock_get_cell (CellBlock *cellblock,
00072 int row, int col);
00073
00089 BasicCell * gnc_cellblock_get_cell_by_name(CellBlock *cellblock,
00090 const char *cell_name,
00091 int *row, int *col);
00092
00093
00094 int gnc_cellblock_changed (CellBlock *cursor,
00095 gboolean include_conditional);
00096
00097 void gnc_cellblock_clear_changes (CellBlock *cursor);
00098
00099 #endif
00100