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