Files
textmate/Frameworks/HTMLOutput/src/HTMLOutput.h
Allan Odgaard b23163476f Add loadHTMLString: API to HTML output view
This replaces the current HTML shown without adding to the history and will preserve scroll position.
2014-03-29 18:58:52 +07:00

19 lines
719 B
Objective-C

#include <oak/misc.h>
extern NSString* const kCommandRunnerURLScheme;
@interface OakHTMLOutputView : NSView
- (void)loadRequest:(NSURLRequest*)aRequest environment:(std::map<std::string, std::string> const&)anEnvironment autoScrolls:(BOOL)flag;
- (void)stopLoading;
- (void)loadHTMLString:(NSString*)someHTML;
@property (nonatomic, readonly) BOOL runningCommand;
// Read-only access to the webview is given to allow reading page title, etc.
@property (nonatomic, readonly) WebView* webView;
@property (nonatomic, readonly) BOOL needsNewWebView;
@end
namespace command { struct runner_t; typedef std::shared_ptr<runner_t> runner_ptr; }
PUBLIC NSURLRequest* URLRequestForCommandRunner (command::runner_ptr aRunner);