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