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