| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/WebKit.framework |
| Availability | Available in Mac OS X v10.2 with Safari 1.0 and later.
Available in Mac OS X v10.2.7 and later.
|
| Companion guide | |
| Declared in | WebFrameView.h |
WebFrameView objects and their subviews display the actual web content contained in a frame. You never create instances of WebFrameView directly—WebView objects create and manage a hierarchy of WebFrameView objects, one for each frame. WebFrameView objects use a scroll view whose document view conforms to the WebDocumentView protocol.
– canPrintHeadersAndFooters
– printOperationWithPrintInfo:
– documentViewShouldHandlePrint
– printDocumentView
Returns whether or not the user should be allowed to scroll.
- (BOOL)allowsScrolling
This method returns YES if the receiver allows the user to scroll, NO otherwise.
WebFrameView.hReturns a Boolean value indicating whether or not the receiver can print headers and footers.
- (BOOL)canPrintHeadersAndFooters
YES if the receiver can print headers and footers; otherwise, NO.
WebFrameView.hReturns the subview that actually displays the web content.
- (NSView < WebDocumentView > *)documentView
Use setAllowsScrolling: to enable scrolling of this view.
WebFrameView.hReturns a Boolean value indicating whether or not the document view should handle a print operation.
- (BOOL)documentViewShouldHandlePrint
YES if the document view handles the print operation; otherwise, NO. If this method returns NO, the application aborts its print operation and sends printDocumentView to the web frame view.
WebFrameView.hPrints the receiver.
- (void)printDocumentView
This method is invoked if the documentViewShouldHandlePrint method returns NO.
WebFrameView.hReturns a print operation to print this frame.
- (NSPrintOperation *)printOperationWithPrintInfo:(NSPrintInfo *)printInfo
An NSPrintInfo object that encapsulates information about the print settings.
A newly created NSPrintOperation object set up to print this frame.
WebFrameView.hSets whether the frame view should allow the user to scroll.
- (void)setAllowsScrolling:(BOOL)flag
If flag is YES scrolling is allowed, otherwise it is not. If the frame contains a scrolling element, then that value is used as the default, otherwise the default is YES.
WebFrameView.hReturns the WebFrame object associated with the receiver.
- (WebFrame *)webFrame
WebFrameView.h
Last updated: 2008-06-19