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