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