DekGenius.com
[ Team LiB ] Previous Section Next Section

NSPrintOperation Mac OS X 10.0

Instances of this class work with NSView and NSPrintInfo objects to coordinate the generation of EPS or PDF data suitable for output to a printer device. In Cocoa's printing system, NSPrintInfo objects provide information about output settings such as paper size and margin widths, while NSView objects are responsible for creating the actual output with the same standard drawing APIs used for onscreen drawing.

figs/cocn_1572.gif

@interface NSPrintOperation : NSObject
 // Accessor Methods
   - (void)setPageOrder:(NSPrintingPageOrder)order;
   - (NSPrintingPageOrder)pageOrder;
   - (void)setCanSpawnSeparateThread:(BOOL)canSpawnSeparateThread;
   - (BOOL)canSpawnSeparateThread;
   - (void)setJobStyleHint:(NSString *)hint;
   - (NSString *)jobStyleHint;
   - (void)setPrintInfo:(NSPrintInfo *)aPrintInfo;
   - (NSPrintInfo *)printInfo;
   - (void)setAccessoryView:(NSView *)aView;
   - (NSView *)accessoryView;
   - (void)setPrintPanel:(NSPrintPanel *)panel;
   - (NSPrintPanel *)printPanel;
   - (void)setShowPanels:(BOOL)flag;
   - (BOOL)showPanels;
 // Class Methods
   + (NSPrintOperation *)EPSOperationWithView:(NSView *)aView
        insideRect:(NSRect)rect toData:(NSMutableData *)data;
   + (NSPrintOperation *)EPSOperationWithView:(NSView *)aView
        insideRect:(NSRect)rect toData:(NSMutableData *)data printInfo:(NSPrintInfo *)aPrintInfo;
   + (NSPrintOperation *)EPSOperationWithView:(NSView *)aView insideRect:(NSRect)rect toPath:(NSString *)path
        printInfo:(NSPrintInfo *)aPrintInfo;
   + (NSPrintOperation *)PDFOperationWithView:(NSView *)aView
        insideRect:(NSRect)rect toData:(NSMutableData *)data;
   + (NSPrintOperation *)PDFOperationWithView:(NSView *)aView
        insideRect:(NSRect)rect toData:(NSMutableData *)data printInfo:(NSPrintInfo *)aPrintInfo;
   + (NSPrintOperation *)PDFOperationWithView:(NSView *)aView insideRect:(NSRect)rect toPath:(NSString *)path
        printInfo:(NSPrintInfo *)aPrintInfo;
   + (NSPrintOperation *)currentOperation;
   + (NSPrintOperation *)printOperationWithView:(NSView *)aView;
   + (NSPrintOperation *)printOperationWithView:(NSView *)aView printInfo:(NSPrintInfo *)aPrintInfo;
   + (void)setCurrentOperation:(NSPrintOperation *)operation;
 // Instance Methods
   - (void)cleanUpOperation;
   - (BOOL)deliverResult;
   - (NSGraphicsContext *)createContext;
   - (int)currentPage;
   - (NSGraphicsContext *)context;
   - (void)destroyContext;
   - (BOOL)isCopyingOperation;
   - (BOOL)runOperation;
   - (void)runOperationModalForWindow:(NSWindow *)docWindow delegate:(id)delegate
        didRunSelector:(SEL)didRunSelector contextInfo:(void *)contextInfo;
   - (NSView *)view;

    [ Team LiB ] Previous Section Next Section