| /******************************************************************************* |
| * Copyright (c) 2000, 2012 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.swt.internal.cocoa; |
| |
| public class NSPrintPanel extends NSObject { |
| |
| public NSPrintPanel() { |
| super(); |
| } |
| |
| public NSPrintPanel(long /*int*/ id) { |
| super(id); |
| } |
| |
| public NSPrintPanel(id id) { |
| super(id); |
| } |
| |
| public void beginSheetWithPrintInfo(NSPrintInfo printInfo, NSWindow docWindow, id delegate, long /*int*/ didEndSelector, long /*int*/ contextInfo) { |
| OS.objc_msgSend(this.id, OS.sel_beginSheetWithPrintInfo_modalForWindow_delegate_didEndSelector_contextInfo_, printInfo != null ? printInfo.id : 0, docWindow != null ? docWindow.id : 0, delegate != null ? delegate.id : 0, didEndSelector, contextInfo); |
| } |
| |
| public long /*int*/ options() { |
| return OS.objc_msgSend(this.id, OS.sel_options); |
| } |
| |
| public static NSPrintPanel printPanel() { |
| long /*int*/ result = OS.objc_msgSend(OS.class_NSPrintPanel, OS.sel_printPanel); |
| return result != 0 ? new NSPrintPanel(result) : null; |
| } |
| |
| public long /*int*/ runModalWithPrintInfo(NSPrintInfo printInfo) { |
| return OS.objc_msgSend(this.id, OS.sel_runModalWithPrintInfo_, printInfo != null ? printInfo.id : 0); |
| } |
| |
| public void setOptions(long /*int*/ options) { |
| OS.objc_msgSend(this.id, OS.sel_setOptions_, options); |
| } |
| |
| } |