ftp.nice.ch/Attic/openStep/implementation/gnustep/sources/alpha-snapshots/gnustep-gui-960621.tgz#/gnustep-gui-960621/Source/NSPrinter.m

This is NSPrinter.m in view mode; [Download] [Up]

/* 
   NSPrinter.m

   Description...

   Copyright (C) 1996 Free Software Foundation, Inc.

   Author:  Scott Christley <scottc@net-community.com>
   Date: 1996
   
   This file is part of the GNUstep GUI Library.

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.
   
   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   If you are interested in a warranty or support for this source code,
   contact Scott Christley <scottc@net-community.com> for more information.
   
   You should have received a copy of the GNU Library General Public
   License along with this library; if not, write to the Free
   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ 

#include <gnustep/gui/NSPrinter.h>

// Printing Information Dictionary Keys 
NSString *NSPrintAllPages;
NSString *NSPrintBottomMargin;
NSString *NSPrintCopies;
NSString *NSPrintFaxCoverSheetName;
NSString *NSPrintFaxHighResolution;
NSString *NSPrintFaxModem;
NSString *NSPrintFaxReceiverNames;
NSString *NSPrintFaxReceiverNumbers;
NSString *NSPrintFaxReturnReceipt;
NSString *NSPrintFaxSendTime;
NSString *NSPrintFaxTrimPageEnds;
NSString *NSPrintFaxUseCoverSheet;
NSString *NSPrintFirstPage;
NSString *NSPrintHorizonalPagination;
NSString *NSPrintHorizontallyCentered;
NSString *NSPrintJobDisposition;
NSString *NSPrintJobFeatures;
NSString *NSPrintLastPage;
NSString *NSPrintLeftMargin;
NSString *NSPrintManualFeed;
NSString *NSPrintOrientation;
NSString *NSPrintPackageException;
NSString *NSPrintPagesPerSheet;
NSString *NSPrintPaperFeed;
NSString *NSPrintPaperName;
NSString *NSPrintPaperSize;
NSString *NSPrintPrinter;
NSString *NSPrintReversePageOrder;
NSString *NSPrintRightMargin;
NSString *NSPrintSavePath;
NSString *NSPrintScalingFactor;
NSString *NSPrintTopMargin;
NSString *NSPrintVerticalPagination;
NSString *NSPrintVerticallyCentered;

// Print Job Disposition Values 
NSString  *NSPrintCancelJob;
NSString  *NSPrintFaxJob;
NSString  *NSPrintPreviewJob;
NSString  *NSPrintSaveJob;
NSString  *NSPrintSpoolJob;

@implementation NSPrinter

//
// Class methods
//
+ (void)initialize
{
  if (self == [NSPrinter class])
    {
      // Initial version
      [self setVersion:1];
    }
}

//
// Finding an NSPrinter 
//
+ (NSPrinter *)printerWithName:(NSString *)name
{
  return nil;
}

+ (NSPrinter *)printerWithType:(NSString *)type
{
  return nil;
}

+ (NSArray *)printerTypes
{
  return nil;
}

//
// Instance methods
//
//
// Printer Attributes 
//
- (NSString *)host
{
  return nil;
}

- (NSString *)name
{
  return nil;
}

- (NSString *)note
{
  return nil;
}

- (NSString *)type
{
  return nil;
}

//
// Retrieving Specific Information 
//
- (BOOL)acceptsBinary
{
  return NO;
}

- (NSRect)imageRectForPaper:(NSString *)paperName
{
  return NSZeroRect;
}

- (NSSize)pageSizeForPaper:(NSString *)paperName
{
  return NSZeroSize;
}

- (BOOL)isColor
{
  return NO;
}

- (BOOL)isFontAvailable:(NSString *)fontName
{
  return NO;
}

- (int)languageLevel
{
  return 0;
}

- (BOOL)isOutputStackInReverseOrder
{
  return NO;
}

//
// Querying the NSPrinter Tables 
//
- (BOOL)booleanForKey:(NSString *)key
	      inTable:(NSString *)table
{
  return NO;
}

- (NSDictionary *)deviceDescription
{
  return nil;
}

- (float)floatForKey:(NSString *)key
	     inTable:(NSString *)table
{
  return 0.0;
}

- (int)intForKey:(NSString *)key
	 inTable:(NSString *)table
{
  return 0;
}

- (NSRect)rectForKey:(NSString *)key
	     inTable:(NSString *)table
{
  return NSZeroRect;
}

- (NSSize)sizeForKey:(NSString *)key
	     inTable:(NSString *)table
{
  return NSZeroSize;
}

- (NSString *)stringForKey:(NSString *)key
		   inTable:(NSString *)table
{
  return nil;
}

- (NSArray *)stringListForKey:(NSString *)key
		      inTable:(NSString *)table
{
  return nil;
}

- (NSPrinterTableStatus)statusForTable:(NSString *)table
{
  return 0;
}

- (BOOL)isKey:(NSString *)key
      inTable:(NSString *)table
{
  return NO;
}

//
// NSCoding protocol
//
- (void)encodeWithCoder:aCoder
{
  [super encodeWithCoder:aCoder];
}

- initWithCoder:aDecoder
{
  [super initWithCoder:aDecoder];

  return self;
}

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.