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 
52 
53 
54 
55 
56 
57 
58 
59 #ifndef STYLE_H
60 #define STYLE_H
61 
62 #include "stdlib.h"
63 #include <stdio.h>
64 
65 #define STY_CELL 0
66 #define STY_GRAPH 1
67 #define STY_DRAW 2
68 #define STY_DEF_CELL 3
69 
70 
71 #define STY_FG 0
72 #define STY_BG 1
73 #define STY_BORDER 2
74 #define STY_JUSTIF 3
75 #define STY_DECIMAL 4
76 #define STY_FORMAT 5
77 #define STY_FONT 6
78 #define STY_FONTW 7
79 #define STY_FONTS 8
80 #define STY_BORDER_TOP 9
81 #define STY_BORDER_BOT 10
82 #define STY_BORDER_LEF 11
83 #define STY_BORDER_RIG 12
84 #define STY_MAXCELL 13
85 
86 
87 #define STY_MAXGRAPH 1
88 
89 
90 #define STY_MAXDRAW  1
91 
92 
93 typedef struct
94   {
95     int *value;
96     int dim;
97   }
98 Style;
99 
100 extern Style *newstyle ();
101 extern int freestyle ();
102 extern int setstyle ();
103 extern int getstyle ();
104 extern int
105   style_write (Style * style, FILE * fp);
106 extern int
107   style_read (Style * style, FILE * fp);
108 extern Style *
109   style_cpy (Style * style1, Style * style2);
110 
111 #endif
112