7c1d3d1c654695bd1b2aaa90e8fd9acba7fb39d5
[pspp-builds.git] / src / output / ChangeLog
1 Sat Jul  1 22:41:26 2006  Ben Pfaff  <blp@gnu.org>
2
3         Fix bug #16644: Output Driver crashes in DISPLAY VARIABLES.
4         
5         * table.c (tab_create): Don't allocate t->hrh, t->wrv yet, because
6         the table size might change before we're ready to use them.
7         (tabi_table) Allocate them here instead.
8
9 Fri Jun  9 14:42:35 2006  Ben Pfaff  <blp@gnu.org>
10
11         Reform string library.
12         
13         * output.c (init_default_drivers): Update call to
14         configure_driver() to new interface.
15         (get_option_token) Use a modifiable substring in interface instead
16         of a separate position parameter.  Use ss_get_*() functions.
17         (configure_driver) Take and work with substrings.
18         (configure_driver_line) Update call to configure_driver() to new
19         interface.
20         (outp_get_paper_size) Use substrings.
21
22         * output.h (struct outp_class): Change open_driver interface to
23         use substring.  Update all implementations.
24
25         * table.c (text_format): Change to return substring.
26         (tab_title) Use xvasprintf().
27
28         * table.h (struct tab_table): Change title member to char *.
29
30 Thu May 25 18:02:53 WST 2006 John Darrington <john@darrington.wattle.id.au>
31
32         * table.c: Removed redundant extern declaration.
33
34 Sun May 14 14:03:56 2006  Ben Pfaff  <blp@gnu.org>
35
36         * output.c (outp_eject_page): Always make sure that a page is open
37         upon return.
38
39 Sun May 14 13:54:58 2006  Ben Pfaff  <blp@gnu.org>
40
41         * postscript.c: (ps_chart_finalise) Fix format of %%EndDocument
42         comment, which screwed up gv's idea of where one page ended and
43         the next one began.  Thanks to John Darrington for pointing out
44         the bug.
45
46 Sun Apr 16 11:48:25 2006  Ben Pfaff  <blp@gnu.org>
47
48         Start reforming error message support.  In this phase, we get rid
49         of "installation errors" and change all uses of msg() in the
50         output drivers to uses of error() or error_at_line().
51
52         * Removed all inclusion of <libpspp/message.h> in this directory.
53
54         * output.c: Changed all uses of msg() to error() or
55         error_at_line().
56         (outp_read_devices) Maintain line number in int variable instead
57         of "struct file_locator".
58         (tokener) Renamed get_option_token(), rewritten, changed interface.
59         (outp_parse_options) Change `options' argument to type const
60         struct string *.  Rewritten.
61         (configure_driver) Passes a struct string * to ->open_driver()
62         instead of char *.
63         (outp_get_paper_size) Maintain line number in int variable instead
64         of "struct file_locator".  Removed stupid cache.
65
66         * output.h: (struct outp_class) Change `open_driver' function to
67         take const struct string * instead of const char *.  Updated all
68         implementations.
69
70 Mon Apr  3 11:14:38 2006  Ben Pfaff  <blp@gnu.org>
71
72         Rewrite a lot of the output drivers and infrastructure.
73         Started transitioning from msg() to error().
74         Vertical rules in tables now default to putting a small gap
75         between columns, instead of no gap or rule at all.
76         See NEWS for user-visible changes.
77
78         * automake.mk: (output_sources) Add afm.c, afm.h.  Remove font.h,
79         groff-font.c.
80         
81         * afm.c, afm.h: New files.
82
83         * font.h: Removed.
84
85         * groff-font.c: Removed.
86         
87         * ascii.c: Rewrote and simplified.
88
89         * html.c: Ditto.
90
91         * postscript.c: Ditto.
92
93         * output.c: (struct outp_driver_class_list) Move here from
94         output.h.  Remove ref_count member and all references to it.
95         (outp_init) Remove epsf_class references.
96         (init_default_drivers) Use new configure_driver_line() interface.
97         (parse_options) Renamed outp_parse_options(), changed interface.
98         (configure_driver) Changed args from `const char *'s to `const
99         struct string *'s.  Rewrote.  Don't call ->open_global().  Now
100         just calls ->open_driver() instead of ->preopen_driver(),
101         ->option(), ->postopen_driver().
102         (configure_driver_line) Adapt to new configure_driver() interface.
103         (destroy_driver) Don't call ->close_global().
104         (option_cmp) Removed.
105         (outp_match_keyword) Rewrite for simplicity.
106         (outp_open_page) New function.  Changed all equivalent
107         functionality to use this function instead.
108         (outp_close_page) Ditto.
109         (outp_eject_page) Use above functions.
110         (outp_string_width) Add font argument and change all callers to
111         pass one.
112
113         * output.h: (struct rect) Removed.
114         (OUTP_L_*) Name this enumeration "enum outp_line_style".
115         (OUTP_L_SPECIAL) Removed.
116         (struct color) Removed.
117         (OUTP_F_*) Removed.
118         (struct outp_styles) Removed.
119         (OUTP_T_*) Removed.
120         (enum outp_justification) New, containing OUTP_RIGHT, OUTP_LEFT,
121         OUTP_CENTER.
122         (enum outp_font) New, containing OUTP_FIXED, OUTP_PROPORTIONAL,
123         and OUTP_EMPHASIS.
124         (struct outp_text) Replaced `options' member by `font' and
125         `justification'.  Renamed `s' to `string'.  Removed `w', `l'.
126         Updated all usages.
127         (struct outp_class) Removed `magic', `open_global',
128         `close_global', `font_sizes', `preopen_driver', `option',
129         `postopen_driver', `line_horz', `line_vert', `line_intersection',
130         `box', `polyline_begin', `polyline_point', `polyline_end',
131         `text_set_font_by_name', `text_set_font_by_position',
132         `text_set_font_family', `text_get_font_name',
133         `text_get_font_family', `text_set_Size', and `text_get_size'
134         members.  Added `open_driver', `close_driver', `line' members.
135         Changed interface of `open_page', `close_page', `text_metrics',
136         `text_draw' members.  Updated all usages.
137         (struct outp_driver) Rearranged members.  Removed `driver_open',
138         `res', `horiz', `vert', `horiz_line_spacing', `vert_line_spacing'
139         members.
140         (struct outp_option_info) Removed.
141         (struct outp_driver_class_list) Removed.
142         (outp_match_keyword) Changed interface.
143
144         * table.c: (tab_create) Now ignores reallocable argument: tables
145         can always be reallocated.  Use pool_create_container().
146         Initialize vertical rules to UCHAR_MAX.
147         (options_to_font) New function.
148         (tab_destroy) Remove futile assignment.
149         (tab_realloc) Initialize vertical rules to UCHAR_MAX.
150         (text_format) Use xvasprintf() instead of local_alloc().
151         (tab_title) Always format the argument, and drop the option
152         argument.  Change all callers to agree.
153         (tab_natural_width) Adapt to new ->text_metrics() interface.
154         (tab_natural_height) Ditto.
155         (tab_joint_text) Clear rules within the joined cell.  Now
156         necessary because of the default to put spacing between cells.
157         (tab_output_text) Use xvasprintf() instead of local_alloc().
158         Remove special cases for fixed-width font.
159         (rule_to_spacing_type) New function.
160         (tabi_driver) Calculate rule widths manually now that we don't
161         have ->trh or ->trv.  Implement new default for vertical rules.
162         (render_rows) New function.
163         (tabi_render) Rewrite in terms of render_rows() for clarity.
164         (translate_justification) New function.
165         (rule_to_draw_type) New function.
166         (get_hrule) New function.
167         (get_vrule) New function.
168         (render_horz_rule) New function.
169         (render_vert_rule) New function.
170         (render_rule_intersection) New function.
171         (strip_width) New function.
172         (strip_height) New function.
173         (render_cell) New function.
174         (render_strip) Rewrite in terms of new functions.
175
176         * table.h: (TAB_EMPH) New flag.
177         (TAB_FIX) New flag.
178         (TAL_3) Removed.
179         (TAL_GAP) Added.
180         (TAL_SPACING) Removed.
181         (struct tab_table) Members `trh', `hrv', `hr_tot', `vr_tot'
182         removed.
183         [DEBUGGING] (reallocable) Removed.
184         (TAT_FIX) Removed.  All references replaced by TAB_FIX.
185         (TAT_TITLE) Now implies TAB_EMPH.
186                 
187 Thu Mar 30 16:26:56 2006  Ben Pfaff  <blp@gnu.org>
188
189         * output.c: (colon_tokenize) Removed.
190         (configure_driver_line) Rewrote to use ds_separate().  Fixed leak.
191
192 Tue Mar 28 13:50:53 WST 2006 John Darrington <john@darrington.wattle.id.au>
193
194         * html.c, postscript.c, output.c:  Changed to fit the new signature 
195         of fn_interp_vars
196         
197 Sun Mar  5 13:19:32 2006  Ben Pfaff  <blp@gnu.org>
198
199         * postscript.c: (postopen) Fix segfault when the active file has
200         no title.
201
202 Sat Mar  4 13:48:16 2006  Ben Pfaff  <blp@gnu.org>
203
204         We didn't provide a way to define these macros, so obviously
205         there's little demand for them.
206
207         * html.c: Don't test for NO_HTML.
208
209         * postscript.c: Don't test for NO_POSTSCRIPT.
210
211         * output.c: Don't test for either of those.
212
213 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
214         
215         * Moved files from src directory