Mercurial > projects > dwt-mac
view dwt/internal/cocoa/WebFrameView.d @ 10:30a762abda2a
Revert automatic changes from dwt/internal and dwt/dwthelper. Excluded dwt/internal/image and theme.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 28 Aug 2008 12:31:10 +0200 |
parents | 1a8b3cb347e0 |
children | d8635bb48c7c |
line wrap: on
line source
module dwt.internal.cocoa; public class WebFrameView : NSObject { public WebFrameView() { super(); } public WebFrameView(int id) { super(id); } public bool allowsScrolling() { return OS.objc_msgSend(this.id, OS.sel_allowsScrolling) !is 0; } public bool canPrintHeadersAndFooters() { return OS.objc_msgSend(this.id, OS.sel_canPrintHeadersAndFooters) !is 0; } public NSView documentView() { int result = OS.objc_msgSend(this.id, OS.sel_documentView); return result !is 0 ? new NSView (result) : null; } public bool documentViewShouldHandlePrint() { return OS.objc_msgSend(this.id, OS.sel_documentViewShouldHandlePrint) !is 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 !is null ? printInfo.id : 0); return result !is 0 ? new NSPrintOperation(result) : null; } public void setAllowsScrolling(bool 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 !is 0 ? new WebFrame(result) : null; } }