diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-11-22 19:41:01 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-11-22 19:41:01 +0000 |
commit | 5a26675cdc8f6f93162d6753f03508a57ff3112f (patch) | |
tree | 2d4240c8d389b9c6adddb7bff5b2dc22914114e5 /Source/SPTextViewAdditions.m | |
parent | 6e3ce5d93bfab8ea0c83b2757144cd805f2388b2 (diff) | |
download | sequelpro-5a26675cdc8f6f93162d6753f03508a57ff3112f.tar.gz sequelpro-5a26675cdc8f6f93162d6753f03508a57ff3112f.tar.bz2 sequelpro-5a26675cdc8f6f93162d6753f03508a57ff3112f.zip |
• Bundle Editor
- added output action "Show as HTML"
• Bundle HTML output
- finished implementation
- added print support (eg for printing reports)
- added text size resizing
- added link support
- added new window support
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r-- | Source/SPTextViewAdditions.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index ae07d289..a33d80e4 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -24,6 +24,7 @@ #import "SPAlertSheets.h" #import "SPTooltip.h" +#import "SPBundleHTMLOutputController.h" @implementation NSTextView (SPTextViewAdditions) @@ -621,6 +622,11 @@ else if([action isEqualToString:SPBundleOutputActionShowAsHTMLTooltip]) { [SPTooltip showWithObject:output ofType:@"html"]; } + + else if([action isEqualToString:SPBundleOutputActionShowAsHTML]) { + SPBundleHTMLOutputController *c = [[SPBundleHTMLOutputController alloc] init]; + [c displayHTMLContent:output withOptions:nil]; + } } } else { NSString *errorMessage = [err localizedDescription]; |