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