Release 1.0  Copyright ã1993 by NeXT Computer, Inc.  All Rights Reserved.

TablePrintPanel

Inherits From:	PrintPanel : Panel : Window : Responder : Object

Declared In:	TablePrinter.h

Class Description

TablePrintPanel is a subclass of PrintPanel which allows the setting of pages per row, so that it can adjust the total pages sent to the printer to reflect compound pages.  For instance, if you ask to print from 2 to 2 on a table that is three pages wide, It will set PrintInfo to print 4 through 6.  It is essential that TablePrintPanel be the first PrintPanel referenced anywhere in an application which uses it.  This is because an Application only has one PrintPanel object.  If the regular PrintPanel object gets referenced (and subsequently loaded) first by another place in the application, then attempts by the application to message TablePrintPanel specific methods will fail.  If TablePrintPanel is loaded first, all other references to PrintPanel will work without a hitch, as if there were no change.  A simple message like:

	[TablePrintPanel new];

in the  ± appDidInit: method will solve this problem.

Instance Variables

int pagesPerRow;

pagesPerRow	Number of pages in a compound page.

Method Types

Setting pages per row	± setPagesPerRow:
	± pagesPerRow

Instance Methods

setPagesPerRow:
± setPagesPerRow:(int)pages

Sets the number of pages required print one row of a table.  This value is cleared after each TablePrintPanel invocation to restore it to default PrintPanel operation.  Returns self.

pagesPerRow
± pagesPerRow

Returns the currently set number of pages required to print one row.