1
/********************************************************************\
2
* cellblock.h -- group of cells that act as cursor within a table *
4
* This program is free software; you can redistribute it and/or *
5
* modify it under the terms of the GNU General Public License as *
6
* published by the Free Software Foundation; either version 2 of *
7
* the License, or (at your option) any later version. *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
14
* You should have received a copy of the GNU General Public License*
15
* along with this program; if not, contact: *
17
* Free Software Foundation Voice: +1-617-542-5942 *
18
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19
* Boston, MA 02110-1301, USA gnu@gnu.org *
21
\********************************************************************/
28
* The CellBlock struct is a rectangular grid of cells that
29
* define an arrangement of cells. It is typically used to
30
* define a virtual cursor within a larger table of cells.
33
* Copyright (c) 1988 Linas Vepstas
34
* Copyright (c) 2000-2001 Dave Peticolas <dave@krondo.com>
37
#ifndef XACC_CELL_BLOCK_H
38
#define XACC_CELL_BLOCK_H
40
#include "basiccell.h"
54
GPtrArray *cells; /* Holds the CellBlockCell table */
58
CellBlock * gnc_cellblock_new (int rows, int cols, const char *cursor_name);
60
void gnc_cellblock_destroy (CellBlock *cellblock);
62
void gnc_cellblock_set_cell (CellBlock *cellblock,
66
BasicCell * gnc_cellblock_get_cell (CellBlock *cellblock,
69
/* Return number of changed cells. */
70
int gnc_cellblock_changed (CellBlock *cursor,
71
gboolean include_conditional);
73
void gnc_cellblock_clear_changes (CellBlock *cursor);