Hi Robert!
On 04 May 2001 18:12:57 +1000, Robert Graham Merkel wrote:
> Rodek, > > I'm one of the gnucash hackers. We corresponded > a few months ago on issues relating to gtkhtml table display. We seem > to have come across another issue and were wondering if you could help, > or at least forward it on to the right person? > gtkhtml seems to default to extrordinarily wide margins > when printing html documents - at least, it does for me and other A4-size > paperThis is weird, as gtkhtml uses A4 size. I am not sure what is the standard way of printing settings like paper size, resolution, ... Lauris?
So could you please check, that wide tables aren't some other issue? GtkHTML printing code is in htmlengine-print.c, where we use GnomePaper object.
> users. As gnucash tends to use tables > that can get rather wide, this is rather restrictive. > > Is there an existing interface/API that can be used to configure the > margins > (and papersize, for this matter)? If not, how difficult would that be > to add?I think it's not very usefull when each library will have its own way of setting these standard parameter, again Lauris could you please comment on this?
On the other hand, I am thinking about some more general interface, when calling application (like GnuCash) gives to GtkHTML GnomePrintContext and printing area (like x_offset, y_offset, width, height) and then will call for each page print.
So the interface could look like this:
void gtk_html_print_begin (GnomePrintContext *pc, gdouble x_off, gdouble y_offset, gdouble width, gdouble height); /* return value: FALSE - nothing printed, we are on the end of print, TRUE otherwise */ gboolean gtk_html_print_page (); void gtk_html_print_end ();OK, so what do you think?
Cheers
Radek
|