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