Print preview widget

2008-04-16 Thread Cody Russell
I was thinking that it would be nice if there was an integrated print preview widget in GTK+, that would be available cross-platform and wanted to check with people here before I commit much time to this. Right now we're spawning another process to do this, and I think an integrated widget

Re: Print preview widget

2008-04-16 Thread Mathias Hasselmann
Am Mittwoch, den 16.04.2008, 12:46 -0500 schrieb Cody Russell: > I was thinking that it would be nice if there was an integrated print > preview widget in GTK+, that would be available cross-platform and > wanted to check with people here before I commit much time to this. > Rig

Re: Print preview widget

2008-04-16 Thread Cody Russell
On Wed, 2008-04-16 at 19:54 +0200, Mathias Hasselmann wrote: > Am Mittwoch, den 16.04.2008, 12:46 -0500 schrieb Cody Russell: > > I was thinking that it would be nice if there was an integrated > print > > preview widget in GTK+, that would be available cross-platform and > &

Re: Print preview widget

2008-04-16 Thread Behdad Esfahbod
On Wed, 2008-04-16 at 19:54 +0200, Mathias Hasselmann wrote: > Am Mittwoch, den 16.04.2008, 12:46 -0500 schrieb Cody Russell: > > I was thinking that it would be nice if there was an integrated print > > preview widget in GTK+, that would be available cross-platform and > >

Re: Print preview widget

2008-04-16 Thread Luis Ariel Lecca
I cant see an easy wayto do this...It depends of your print configuration, if you use a print service or not and what kind of pinter do you have... I would like that the Print preview widget dont use any print configuration. I did my own Print preview parsing a raw file (.prn) to the screen

Re: Print preview widget

2008-04-16 Thread Ghee Teo
Cody Russell wrote: > I was thinking that it would be nice if there was an integrated print > preview widget in GTK+, that would be available cross-platform and > wanted to check with people here before I commit much time to this. > Right now we're spawning another process to do

Re: Print preview widget

2008-04-16 Thread Yu Feng
Hmm, What about embedding different PDF viewers into the widget, on different platform? Or else will it be a lot of redundant work? On Wed, 2008-04-16 at 12:46 -0500, Cody Russell wrote: > I was thinking that it would be nice if there was an integrated print > preview widget in GTK+, that

Re: Print preview widget

2008-04-16 Thread Brian J. Tarricone
Ghee Teo wrote: > Cody Russell wrote: >> I was thinking that it would be nice if there was an integrated print >> preview widget in GTK+, that would be available cross-platform and >> wanted to check with people here before I commit much time to this. >> Right now we

Re: Print preview widget

2008-04-16 Thread Cody Russell
The way I'm thinking of this, using the integrated print preview widget would be up to the application.. if the developer wants to continue using an external process (e.g., evince or Preview.app) or maybe wants to use their own print preview widget, they should be able to. On Wed, 2008-04-

Re: Print preview widget

2008-04-17 Thread Gustavo J. A. M. Carneiro
On Wed, 2008-04-16 at 14:02 -0400, Behdad Esfahbod wrote: > On Wed, 2008-04-16 at 19:54 +0200, Mathias Hasselmann wrote: > > Am Mittwoch, den 16.04.2008, 12:46 -0500 schrieb Cody Russell: > > > I was thinking that it would be nice if there was an integrated print > > > p

Re: Print preview widget

2008-04-17 Thread Behdad Esfahbod
On Thu, 2008-04-17 at 18:07 +0100, Gustavo J. A. M. Carneiro wrote: > > > > +1 too. Though opening the actual generated PDF in evince is always > > going to be a more reliable preview than rendering to a widget. There > > always will be bugs here and there, you know... > > _If_ gtk+ printing ha

Re: Print preview widget

2008-04-17 Thread Carl Worth
On Thu, 17 Apr 2008 13:15:42 -0400, Behdad Esfahbod wrote: > On Thu, 2008-04-17 at 18:07 +0100, Gustavo J. A. M. Carneiro wrote: > > > +1 too. Though opening the actual generated PDF in evince is always > > > going to be a more reliable preview than rendering to a widget. There > > > always will

Re: Print preview widget

2008-04-17 Thread Behdad Esfahbod
On Thu, 2008-04-17 at 11:14 -0700, Carl Worth wrote: > > I can write a program where both of these are correct: > > Display to screen: App->Cairo->Screen > Print to PDF: App->Cairo->PDF > > But the following is totally broken: > > Print preview: App->Cairo->PDF-

Re: Print preview widget

2008-04-17 Thread Mathias Hasselmann
Am Donnerstag, den 17.04.2008, 14:20 -0400 schrieb Behdad Esfahbod: > On Thu, 2008-04-17 at 11:14 -0700, Carl Worth wrote: > > > > I can write a program where both of these are correct: > > > > Display to screen: App->Cairo->Screen > > Print to PDF: App->Cairo->PDF > > > >

Re: Print preview widget

2008-04-17 Thread Jody Goldberg
On Wed, Apr 16, 2008 at 12:46:22PM -0500, Cody Russell wrote: > I was thinking that it would be nice if there was an integrated print > preview widget in GTK+, that would be available cross-platform and > wanted to check with people here before I commit much time to this. > Rig

Re: Print preview widget

2008-04-17 Thread Behdad Esfahbod
On Thu, 2008-04-17 at 17:10 -0400, Jody Goldberg wrote: > > The main upside to the current approach is that it avoids the > unacceptably vast memory footprint from libgnomeprintui's preview. > It would record a stream of drawing cmds _in memory_ and replay them > for the preview. If we "print" st

Re: Print preview widget

2008-04-17 Thread Sven Neumann
Hi, On Wed, 2008-04-16 at 11:23 -0700, Brian J. Tarricone wrote: > Hooking this up on MacOS X would be easy -- all apps I've used there > that have a print preview just generate a pdf (or ps?) and open it with > Preview.app. Which is exactly what the current GTK+ Print preview code on Mac OS X

Re: Print preview widget

2008-04-17 Thread Yevgen Muntyan
Cody Russell wrote: > I was thinking that it would be nice if there was an integrated print > preview widget in GTK+, that would be available cross-platform and > wanted to check with people here before I commit much time to this. > Right now we're spawning another process to do

Re: Print preview widget

2008-04-18 Thread Gustavo J. A. M. Carneiro
On Thu, 2008-04-17 at 17:10 -0400, Jody Goldberg wrote: > On Wed, Apr 16, 2008 at 12:46:22PM -0500, Cody Russell wrote: > > I was thinking that it would be nice if there was an integrated print > > preview widget in GTK+, that would be available cross-platform and > > wanted

Re: Print preview widget

2008-05-09 Thread Calum Benson
On 17 Apr 2008, at 23:03, Sven Neumann wrote: > Hi, > > On Wed, 2008-04-16 at 11:23 -0700, Brian J. Tarricone wrote: > >> Hooking this up on MacOS X would be easy -- all apps I've used there >> that have a print preview just generate a pdf (or ps?) and open it >> with >> Preview.app. > > Which