summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/WebFrameView.java
blob: 25089761be6ae3f14a0568e10ca88a59bbe93c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package org.eclipse.swt.internal.cocoa;

public class WebFrameView extends NSObject {

public WebFrameView() {
	super();
}

public WebFrameView(int id) {
	super(id);
}

public boolean allowsScrolling() {
	return OS.objc_msgSend(this.id, OS.sel_allowsScrolling) != 0;
}

public boolean canPrintHeadersAndFooters() {
	return OS.objc_msgSend(this.id, OS.sel_canPrintHeadersAndFooters) != 0;
}

public NSView  documentView() {
	int result = OS.objc_msgSend(this.id, OS.sel_documentView);
	return result != 0 ? new NSView (result) : null;
}

public boolean documentViewShouldHandlePrint() {
	return OS.objc_msgSend(this.id, OS.sel_documentViewShouldHandlePrint) != 0;
}

public void printDocumentView() {
	OS.objc_msgSend(this.id, OS.sel_printDocumentView);
}

public NSPrintOperation printOperationWithPrintInfo(NSPrintInfo printInfo) {
	int result = OS.objc_msgSend(this.id, OS.sel_printOperationWithPrintInfo_1, printInfo != null ? printInfo.id : 0);
	return result != 0 ? new NSPrintOperation(result) : null;
}

public void setAllowsScrolling(boolean flag) {
	OS.objc_msgSend(this.id, OS.sel_setAllowsScrolling_1, flag);
}

public WebFrame webFrame() {
	int result = OS.objc_msgSend(this.id, OS.sel_webFrame);
	return result != 0 ? new WebFrame(result) : null;
}

}