Backend printing bundle system changes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19705 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
cehardin 2004-07-10 10:19:34 +00:00
parent b2b13c4b60
commit a6cde55d28
36 changed files with 3424 additions and 1256 deletions

View file

@ -2,10 +2,13 @@
<abstract>Standard panel for querying user about printing.</abstract>
Copyright (C) 2001 Free Software Foundation, Inc.
Copyright (C) 2001,2004 Free Software Foundation, Inc.
Written By: Adam Fedor <fedor@gnu.org>
Date: Oct 2001
Modified for Printing Backend Support
Author: Chad Hardin <cehardin@mac.com>
Date: June 2004
This file is part of the GNUstep GUI Library.
@ -42,6 +45,7 @@
#include "AppKit/NSSavePanel.h"
#include "AppKit/NSView.h"
#include "GSGuiPrivate.h"
#include "GNUstepGUI/GSPrinting.h"
static NSPrintPanel *shared_instance;
@ -71,6 +75,22 @@ static NSPrintPanel *shared_instance;
//
// Class Methods
//
/** Load the appropriate bundle for the PrintPanel
and alloc the class from that in our place
(eg: GSLPRPrintPanel, GSCUPSPrintPanel).
*/
+ (id) allocWithZone: (NSZone*) zone
{
Class principalClass;
principalClass = [[GSPrinting printingBundle] principalClass];
if( principalClass == nil )
return nil;
return [[principalClass printPanelClass] allocWithZone: zone];
}
/** Creates and returns a shared instance of the NSPrintPanel panel.
*/
+ (NSPrintPanel *)printPanel