1 /********************************************************************
2 This file is part of the abs 0.907 distribution.  abs is a spreadsheet
3 with graphical user interface.
4 
5 Copyright (C) 1998-2001  Andr� Bertin (Andre.Bertin@ping.be)
6 
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version if in the same spirit as version 2.
11 
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 Concact: abs@pi.be
22          http://home.pi.be/bertin/abs.shtml
23 
24 *********************************************************************/
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 #ifndef SELECTION_H
52 #define SELECTION_H
53 #include "stdio.h"
54 #include "object.h"
55 
56 
57 
58 #define SEL_END -1
59 
60 struct _Selection
61   {
62     obj *objects;
63     int objnum;
64     int ret;
65   };
66 
67 typedef struct _Selection Selection;
68 
69 extern Selection *ActiveSelection;
70 
71 Selection *newselection ();
72 int freeselection (Selection * sel);
73 int selection_addobj (Selection * sel, obj o);
74 int selection_reset (Selection * sel);
75 obj selection_getobjects (Selection * sel);
76 int selection_resetget (Selection * sel);
77 int selection_print (Selection * sel);
78 #endif
79