|
From: | Chad Hardin |
Subject: | GNUstep Printing Backend Patch and such |
Date: | Fri, 2 Jul 2004 11:05:02 -1000 |
Basically, what happens now is that every-time an allocWithZone: is done on a NSPageLayout, NSPrinter, NSPrintInfo, GSPrintOperation (not a type) , or NSPrintPanel, that class instead calls a new class, GSPrinting, which loads up a Bundle located in Bundles/GSPrinting, and uses that Bundle's principle class to get the real Class (GSLPRPrinter, for example), allocates that and return it instead.
My tests have shown that printing works the exact same as before, no better or worse, which was my goal. The only bundle that exists right now is GSLPR, which is basically all the code that used to exist in the NSPrint* and NSPageLayout classes. Next will come the GSCUPS bundle , which will be a real stress test and will probably result in a bit more tweaking of both the NSPrint* and GSLPR* classes.
Anyhow, here is the patch and the additional files I added for everything to work. It was suggested I share this with everyone before doing anything with cvs. :-) The Printing.tar.gz contains all the Printing backend budles, it contains the Printing directory and goes in the gui directory.
Chad
gui-printing.patch.gz
Description: GNU Zip compressed data
Printing.tar.gz
Description: GNU Zip compressed data
GSEPSPrintOperation.h
Description: Text document
GSPDFPrintOperation.h
Description: Text document
GSPrinting.h
Description: Text document
GSPrintOperation.h
Description: Text document
GSEPSPrintOperation.m
Description: Binary data
GSPDFPrintOperation.m
Description: Binary data
GSPrinting.m
Description: Binary data
GSPrintOperation.m
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |