1 Tue Feb 20 07:03:48 2007 Ben Pfaff <blp@gnu.org>
3 * html.c: Don't need to include "getlogin_r.h" anymore, because
4 gnulib merged it into <unistd.h>.
6 Sun Feb 18 11:20:35 2007 Ben Pfaff <blp@gnu.org>
8 * postscript.c: Add missing _() around message.
10 Sun Feb 11 17:59:30 2007 Ben Pfaff <blp@gnu.org>
12 * html.c (html_initialise_chart): Mark `this' parameter UNUSED to
13 account for NO_CHARTS case.
15 Sat Feb 3 21:56:46 2007 Ben Pfaff <blp@gnu.org>
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.
20 Wed Feb 7 21:38:12 2007 Ben Pfaff <blp@gnu.org>
22 * afm.c: Add #include <limits.h>. Thanks to John McCabe-Dansted
23 <gmatht@gmail.com> for pointing out the need.
25 Sun Oct 8 07:09:34 WST 2006 John Darrington <john@darrington.wattle.id.au>
27 * table.c (tab_destroy): Freed title, since this is not allocated
30 * html.c (html_open_driver): Freed chart_file_name.
32 Wed Jul 12 21:03:37 2006 Ben Pfaff <blp@gnu.org>
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
39 * table.c (tab_offset): [DEBUGGING] Let row, col arguments be as
40 big as row or column count.
42 Wed Jul 12 20:58:19 2006 Ben Pfaff <blp@gnu.org>
44 * output.c (outp_drivers): [DEBUGGING] Delete unused declaration.
46 Sat Jul 1 17:20:03 2006 Ben Pfaff <blp@gnu.org>
48 Make the destination for charts configurable in the HTML driver.
49 Fixes bug #15723, "HTML driver creates .png files insecurely".
51 * htmlP.h: (struct html_driver_ext) Add chart_file_name, chart_cnt
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.
59 Sat Jul 1 22:41:26 2006 Ben Pfaff <blp@gnu.org>
61 Fix bug #16644: Output Driver crashes in DISPLAY VARIABLES.
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.
67 Fri Jun 9 14:42:35 2006 Ben Pfaff <blp@gnu.org>
69 Reform string library.
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
78 (outp_get_paper_size) Use substrings.
80 * output.h (struct outp_class): Change open_driver interface to
81 use substring. Update all implementations.
83 * table.c (text_format): Change to return substring.
84 (tab_title) Use xvasprintf().
86 * table.h (struct tab_table): Change title member to char *.
88 Thu May 25 18:02:53 WST 2006 John Darrington <john@darrington.wattle.id.au>
90 * table.c: Removed redundant extern declaration.
92 Sun May 14 14:03:56 2006 Ben Pfaff <blp@gnu.org>
94 * output.c (outp_eject_page): Always make sure that a page is open
97 Sun May 14 13:54:58 2006 Ben Pfaff <blp@gnu.org>
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
104 Sun Apr 16 11:48:25 2006 Ben Pfaff <blp@gnu.org>
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().
110 * Removed all inclusion of <libpspp/message.h> in this directory.
112 * output.c: Changed all uses of msg() to error() or
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()
121 (outp_get_paper_size) Maintain line number in int variable instead
122 of "struct file_locator". Removed stupid cache.
124 * output.h: (struct outp_class) Change `open_driver' function to
125 take const struct string * instead of const char *. Updated all
128 Mon Apr 3 11:14:38 2006 Ben Pfaff <blp@gnu.org>
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.
136 * automake.mk: (output_sources) Add afm.c, afm.h. Remove font.h,
139 * afm.c, afm.h: New files.
143 * groff-font.c: Removed.
145 * ascii.c: Rewrote and simplified.
149 * postscript.c: Ditto.
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
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.
176 (struct outp_styles) Removed.
178 (enum outp_justification) New, containing OUTP_RIGHT, OUTP_LEFT,
180 (enum outp_font) New, containing OUTP_FIXED, OUTP_PROPORTIONAL,
182 (struct outp_text) Replaced `options' member by `font' and
183 `justification'. Renamed `s' to `string'. Removed `w', `l'.
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'
198 (struct outp_option_info) Removed.
199 (struct outp_driver_class_list) Removed.
200 (outp_match_keyword) Changed interface.
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.
234 * table.h: (TAB_EMPH) New flag.
238 (TAL_SPACING) Removed.
239 (struct tab_table) Members `trh', `hrv', `hr_tot', `vr_tot'
241 [DEBUGGING] (reallocable) Removed.
242 (TAT_FIX) Removed. All references replaced by TAB_FIX.
243 (TAT_TITLE) Now implies TAB_EMPH.
245 Thu Mar 30 16:26:56 2006 Ben Pfaff <blp@gnu.org>
247 * output.c: (colon_tokenize) Removed.
248 (configure_driver_line) Rewrote to use ds_separate(). Fixed leak.
250 Tue Mar 28 13:50:53 WST 2006 John Darrington <john@darrington.wattle.id.au>
252 * html.c, postscript.c, output.c: Changed to fit the new signature
255 Sun Mar 5 13:19:32 2006 Ben Pfaff <blp@gnu.org>
257 * postscript.c: (postopen) Fix segfault when the active file has
260 Sat Mar 4 13:48:16 2006 Ben Pfaff <blp@gnu.org>
262 We didn't provide a way to define these macros, so obviously
263 there's little demand for them.
265 * html.c: Don't test for NO_HTML.
267 * postscript.c: Don't test for NO_POSTSCRIPT.
269 * output.c: Don't test for either of those.
271 Thu Mar 2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
273 * Moved files from src directory