GnuCash c935c2f+
Loading...
Searching...
No Matches
register-common.h
Go to the documentation of this file.
1/********************************************************************\
2 * register-common.h -- Common declarations for the register *
3 * Copyright (c) 2000 Dave Peticolas *
4 * *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation; either version 2 of *
8 * the License, or (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License*
16 * along with this program; if not, contact: *
17 * *
18 * Free Software Foundation Voice: +1-617-542-5942 *
19 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20 * Boston, MA 02110-1301, USA gnu@gnu.org *
21 * *
22\********************************************************************/
57#ifndef REGISTER_COMMON_H
58#define REGISTER_COMMON_H
59
60#include <glib.h>
61
62#include "basiccell.h"
63
64#define BASIC_CELL_TYPE_NAME "basic-cell"
65#define COMBO_CELL_TYPE_NAME "combo-cell"
66#define DATE_CELL_TYPE_NAME "date-cell"
67#define NUM_CELL_TYPE_NAME "num-cell"
68#define PRICE_CELL_TYPE_NAME "price-cell"
69#define RECN_CELL_TYPE_NAME "recn-cell"
70#define DOCLINK_CELL_TYPE_NAME "doclink-cell"
71#define QUICKFILL_CELL_TYPE_NAME "quickfill-cell"
72#define FORMULA_CELL_TYPE_NAME "formula-cell"
73#define CHECKBOX_CELL_TYPE_NAME "checkbox-cell"
74#define COMPLETION_CELL_TYPE_NAME "completion-cell"
75
76void gnc_register_init (void);
77void gnc_register_shutdown (void);
78
79void gnc_register_add_cell_type (const char *cell_type_name,
80 CellCreateFunc cell_creator);
81BasicCell * gnc_register_make_cell (const char *cell_type_name);
82
83
87typedef struct _VirtualCellLocation VirtualCellLocation;
89{
90 int virt_row;
91 int virt_col;
92};
93
94
95gboolean virt_cell_loc_equal (VirtualCellLocation vcl1,
96 VirtualCellLocation vcl2);
97
98
110typedef struct _VirtualLocation VirtualLocation;
112{
113 VirtualCellLocation vcell_loc;
114 int phys_row_offset;
115 int phys_col_offset;
116};
117
118
119gboolean virt_loc_equal (VirtualLocation vl1, VirtualLocation vl2);
120
121#endif
The VirtualCellLocation structure contains the virtual location of a virtual cell.
The VirtualLocation structure contains the virtual location of a physical cell.