Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
TextEditPlus Step 2/MultiplePageView.h
#import <Cocoa/Cocoa.h> |
@interface MultiplePageView : NSView { |
NSPrintInfo *printInfo; |
NSColor *lineColor; |
NSColor *marginColor; |
unsigned numPages; |
} |
- (void)setPrintInfo:(NSPrintInfo *)anObject; |
- (NSPrintInfo *)printInfo; |
- (float)pageSeparatorHeight; |
- (NSSize)documentSizeInPage; /* Returns the area where the document can draw */ |
- (NSRect)documentRectForPageNumber:(unsigned)pageNumber; /* First page is page 0 */ |
- (NSRect)pageRectForPageNumber:(unsigned)pageNumber; /* First page is page 0 */ |
- (void)setNumberOfPages:(unsigned)num; |
- (unsigned)numberOfPages; |
- (void)setLineColor:(NSColor *)color; |
- (NSColor *)lineColor; |
- (void)setMarginColor:(NSColor *)color; |
- (NSColor *)marginColor; |
@end |
Copyright © 2006 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2006-07-28