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