bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix: Printing


From: Adam Fedor
Subject: Re: Fix: Printing
Date: Tue, 25 Sep 2001 21:55:01 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.4) Gecko/20010915

Georg Fleischmann wrote:

Hi,

here are three patches which fix a bunch of bugs for printing.
With the fixes [NSView -dataWithEPSInsideRect:] is now working for my 
application.

The changes in NSPrintOperation create a context and deliver the results for writing EPSData. For all print operations, the context will be removed from the context list after the printing has been finished.

The change in XGStreamContext just closes the stream. This can't be done in dealloc, because the written file is needed before the autorelease pool has been released. I have added a subclass of -destroyContext to close the stream.

The change in NSView removes the transformations to the window for printing, because the printed view has to be the base. I'm not sure if this one is really done in a wise way (Opinions?). For now, I have added this to -dataWithEPSInsideRect only, but it has to be done for all printing operations.



I added this patch although I completely rewrote the NSView changes. There's more that needs to be done when printing that just reseting the coordinates so I tried to account for that. It seemed to work for me but perhaps you can test it again.




--
Adam Fedor, Digital Optics            | Fudd's law of opposition: Push
fedor@doc.com  http://www.doc.com     | something hard enough, and it
fedor@gnu.org  http://www.gnustep.org | will fall over.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]