org.rococoa.cocoa.appkit
Class NSPrintOperation

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSPrintOperation
All Implemented Interfaces:
NSObject, ObjCObject

public abstract class NSPrintOperation
extends NSObject
implements ObjCObject

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSPrintOperation._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSPrintOperation()
           
 
Method Summary
static NSPrintOperation alloc()
           
 NSDeprecated as_NSPrintOperation_NSDeprecated()
           
abstract  boolean canSpawnSeparateThread()
          Original signature : -(BOOL)canSpawnSeparateThread
native declaration : NSPrintOperation.h:83
abstract  void cleanUpOperation()
          Original signature : -(void)cleanUpOperation
native declaration : NSPrintOperation.h:132
abstract  NSGraphicsContext context()
          The context for the output of this operation.
abstract  NSGraphicsContext createContext()
          Methods that are invoked by the print operation itself as it proceeds.
static NSPrintOperation currentOperation()
          The current print operation for this thread.
abstract  NSInteger currentPage()
          The current one-based page number of the operation as it's being previewed or printed.
abstract  boolean deliverResult()
          Original signature : -(BOOL)deliverResult
native declaration : NSPrintOperation.h:131
abstract  void destroyContext()
          Original signature : -(void)destroyContext
native declaration : NSPrintOperation.h:130
static NSPrintOperation._class_ getNSClass()
           
abstract  boolean isCopyingOperation()
          Return YES if the operation for copying to PDF or EPS, NO if it's for printing.
abstract  NSString jobTitle()
          Original signature : -(NSString*)jobTitle
native declaration : NSPrintOperation.h:60
static NSPrintOperation new_()
           
abstract  int pageOrder()
          Original signature : -(NSPrintingPageOrder)pageOrder
native declaration : NSPrintOperation.h:88
abstract  NSObject pageRange()
          The first through last one-based page numbers of the operation as it's being previewed or printed.
abstract  NSPrintInfo printInfo()
          The print info of the operation.
static NSPrintOperation printOperationWithView_printInfo(NSView view, NSPrintInfo printInfo)
          Factory methods that create a new NSPrintOperation for printing, copying to Portable Document Format, or copying to Encapsulated PostScript.
static NSPrintOperation printOperationWithView(NSView view)
          Slight conveniences, for use when the application's global NSPrintInfo is appropriate.
abstract  NSPrintPanel printPanel()
          Original signature : -(NSPrintPanel*)printPanel
native declaration : NSPrintOperation.h:78
abstract  boolean runOperation()
          Do the print operation, with application-modal panels.
abstract  void runOperationModalForWindow_delegate_didRunSelector_contextInfo(NSWindow docWindow, ObjCObject delegate, Selector didRunSelector, Pointer contextInfo)
          Do the print operation, with panels that are document-modal to a specific window.
abstract  void setCanSpawnSeparateThread(boolean canSpawnSeparateThread)
          Whether the print operation should spawn a separate thread in which to run itself.
static void setCurrentOperation(NSPrintOperation operation)
          Original signature : +(void)setCurrentOperation:(NSPrintOperation*)
native declaration : NSPrintOperation.h:49
abstract  void setJobTitle(NSString jobTitle)
          The title of the print job.
abstract  void setPageOrder(int pageOrder)
          The page order that will be used to generate the pages in this job.
abstract  void setPrintInfo(NSPrintInfo printInfo)
          Original signature : -(void)setPrintInfo:(NSPrintInfo*)
native declaration : NSPrintOperation.h:109
abstract  void setPrintPanel(NSPrintPanel panel)
          The print panel to be presented by the operation when it is run, if showsProgressPanel is YES and isCopyingOperation is NO.
abstract  void setShowsPrintPanel(boolean flag)
          Whether the print and progress panels are shown during the operation.
abstract  void setShowsProgressPanel(boolean flag)
          Original signature : -(void)setShowsProgressPanel:(BOOL)
native declaration : NSPrintOperation.h:70
abstract  boolean showsPrintPanel()
          Original signature : -(BOOL)showsPrintPanel
native declaration : NSPrintOperation.h:69
abstract  boolean showsProgressPanel()
          Original signature : -(BOOL)showsProgressPanel
native declaration : NSPrintOperation.h:71
abstract  NSView view()
          The view being printed.
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSPrintOperation

public NSPrintOperation()
Method Detail

as_NSPrintOperation_NSDeprecated

public NSDeprecated as_NSPrintOperation_NSDeprecated()

printOperationWithView_printInfo

public static NSPrintOperation printOperationWithView_printInfo(NSView view,
                                                                NSPrintInfo printInfo)
Factory methods that create a new NSPrintOperation for printing, copying to Portable Document Format, or copying to Encapsulated PostScript. The passed-in NSPrintInfo is copied, and the copy is retained by the new NSPrintOperation. (So, no need to copy the NSPrintInfo you pass to these.) You can get the copy with -printInfo.
Original signature : +(NSPrintOperation*)printOperationWithView:(NSView*) printInfo:(NSPrintInfo*)
native declaration : NSPrintOperation.h:34


printOperationWithView

public static NSPrintOperation printOperationWithView(NSView view)
Slight conveniences, for use when the application's global NSPrintInfo is appropriate. Each of these methods invokes [NSPrintInfo sharedPrintInfo] and then invokes the like-named method listed above.
Original signature : +(NSPrintOperation*)printOperationWithView:(NSView*)
native declaration : NSPrintOperation.h:42


currentOperation

public static NSPrintOperation currentOperation()
The current print operation for this thread. If this is nil, there is no current operation for the current thread.
Original signature : +(NSPrintOperation*)currentOperation
native declaration : NSPrintOperation.h:48


setCurrentOperation

public static void setCurrentOperation(NSPrintOperation operation)
Original signature : +(void)setCurrentOperation:(NSPrintOperation*)
native declaration : NSPrintOperation.h:49


isCopyingOperation

public abstract boolean isCopyingOperation()
Return YES if the operation for copying to PDF or EPS, NO if it's for printing.
Original signature : -(BOOL)isCopyingOperation
native declaration : NSPrintOperation.h:53


setJobTitle

public abstract void setJobTitle(NSString jobTitle)
The title of the print job. If a job title is set it overrides anything that might be gotten by sending the printed view an [NSView(NSPrinting) printJobTitle] message.
Original signature : -(void)setJobTitle:(NSString*)
native declaration : NSPrintOperation.h:59


jobTitle

public abstract NSString jobTitle()
Original signature : -(NSString*)jobTitle
native declaration : NSPrintOperation.h:60


setShowsPrintPanel

public abstract void setShowsPrintPanel(boolean flag)
Whether the print and progress panels are shown during the operation.
Original signature : -(void)setShowsPrintPanel:(BOOL)
native declaration : NSPrintOperation.h:68


showsPrintPanel

public abstract boolean showsPrintPanel()
Original signature : -(BOOL)showsPrintPanel
native declaration : NSPrintOperation.h:69


setShowsProgressPanel

public abstract void setShowsProgressPanel(boolean flag)
Original signature : -(void)setShowsProgressPanel:(BOOL)
native declaration : NSPrintOperation.h:70


showsProgressPanel

public abstract boolean showsProgressPanel()
Original signature : -(BOOL)showsProgressPanel
native declaration : NSPrintOperation.h:71


setPrintPanel

public abstract void setPrintPanel(NSPrintPanel panel)
The print panel to be presented by the operation when it is run, if showsProgressPanel is YES and isCopyingOperation is NO. -printPanel will create a new NSPrintPanel if one hasn't been set yet.
Original signature : -(void)setPrintPanel:(NSPrintPanel*)
native declaration : NSPrintOperation.h:77


printPanel

public abstract NSPrintPanel printPanel()
Original signature : -(NSPrintPanel*)printPanel
native declaration : NSPrintOperation.h:78


setCanSpawnSeparateThread

public abstract void setCanSpawnSeparateThread(boolean canSpawnSeparateThread)
Whether the print operation should spawn a separate thread in which to run itself.
Original signature : -(void)setCanSpawnSeparateThread:(BOOL)
native declaration : NSPrintOperation.h:82


canSpawnSeparateThread

public abstract boolean canSpawnSeparateThread()
Original signature : -(BOOL)canSpawnSeparateThread
native declaration : NSPrintOperation.h:83


setPageOrder

public abstract void setPageOrder(int pageOrder)
The page order that will be used to generate the pages in this job. This is the physical page order of the pages. It depends on the stacking order of the printer, the capability of the app to reverse page order, etc.
Original signature : -(void)setPageOrder:(NSPrintingPageOrder)
native declaration : NSPrintOperation.h:87

Parameters:
pageOrder - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSPrintingPageOrder

pageOrder

public abstract int pageOrder()
Original signature : -(NSPrintingPageOrder)pageOrder
native declaration : NSPrintOperation.h:88


runOperationModalForWindow_delegate_didRunSelector_contextInfo

public abstract void runOperationModalForWindow_delegate_didRunSelector_contextInfo(NSWindow docWindow,
                                                                                    ObjCObject delegate,
                                                                                    Selector didRunSelector,
                                                                                    Pointer contextInfo)
Do the print operation, with panels that are document-modal to a specific window. When the operation has been completed, send the message selected by didRunSelector to the delegate, with the contextInfo as the last argument. The method selected by didRunSelector must have the same signature as:
- (void)printOperationDidRun:(NSPrintOperation *)printOperation success:(BOOL)success contextInfo:(void *)contextInfo;
This can only be invoked once. Create a new NSPrintOperation instance for each operation. When this method completes, the object is removed from being the current operation if it is the current operation.
Original signature : -(void)runOperationModalForWindow:(NSWindow*) delegate:(id) didRunSelector:(SEL) contextInfo:(void*)
native declaration : NSPrintOperation.h:96


runOperation

public abstract boolean runOperation()
Do the print operation, with application-modal panels. Return YES if the operation completed successfully, NO if there was an error or the user cancelled the operation. This can only be invoked once. Create a new NSPrintOperation instance for each operation. When this method completes, the object is removed from being the current operation if it is the current operation.
Original signature : -(BOOL)runOperation
native declaration : NSPrintOperation.h:100


view

public abstract NSView view()
The view being printed.
Original signature : -(NSView*)view
native declaration : NSPrintOperation.h:104


printInfo

public abstract NSPrintInfo printInfo()
The print info of the operation. -printInfo always returns a copy of the NSPrintInfo passed into the factory method used to create the print operation, unless -setPrintInfo: has been invoked, in which case it returns the exact same object passed into -setPrintInfo:. So, the factory methods listed above copy the passed-in NSPrintInfo, but -setPrintInfo: doesn't.
Original signature : -(NSPrintInfo*)printInfo
native declaration : NSPrintOperation.h:108


setPrintInfo

public abstract void setPrintInfo(NSPrintInfo printInfo)
Original signature : -(void)setPrintInfo:(NSPrintInfo*)
native declaration : NSPrintOperation.h:109


context

public abstract NSGraphicsContext context()
The context for the output of this operation.
Original signature : -(NSGraphicsContext*)context
native declaration : NSPrintOperation.h:113


pageRange

public abstract NSObject pageRange()
The first through last one-based page numbers of the operation as it's being previewed or printed. The first page number might not be 1, and the page count might be NSIntegerMax to indicate that the number of pages is not known, depending on what the printed view returned when sent an [NSView(NSPrinting) knowsPageRange:] message.
Original signature : -(id)pageRange
native declaration : NSPrintOperation.h:119


currentPage

public abstract NSInteger currentPage()
The current one-based page number of the operation as it's being previewed or printed.
Original signature : -(NSInteger)currentPage
native declaration : NSPrintOperation.h:125


createContext

public abstract NSGraphicsContext createContext()
Methods that are invoked by the print operation itself as it proceeds. You should not invoke them.
Original signature : -(NSGraphicsContext*)createContext
native declaration : NSPrintOperation.h:129


destroyContext

public abstract void destroyContext()
Original signature : -(void)destroyContext
native declaration : NSPrintOperation.h:130


deliverResult

public abstract boolean deliverResult()
Original signature : -(BOOL)deliverResult
native declaration : NSPrintOperation.h:131


cleanUpOperation

public abstract void cleanUpOperation()
Original signature : -(void)cleanUpOperation
native declaration : NSPrintOperation.h:132


alloc

public static NSPrintOperation alloc()

new_

public static NSPrintOperation new_()

getNSClass

public static NSPrintOperation._class_ getNSClass()


Copyright © 2009. All Rights Reserved.