aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-22 19:41:01 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-22 19:41:01 +0000
commit5a26675cdc8f6f93162d6753f03508a57ff3112f (patch)
tree2d4240c8d389b9c6adddb7bff5b2dc22914114e5 /Source/SPCopyTable.m
parent6e3ce5d93bfab8ea0c83b2757144cd805f2388b2 (diff)
downloadsequelpro-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/SPCopyTable.m')
-rw-r--r--Source/SPCopyTable.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m
index 1bfc2277..77dd14f6 100644
--- a/Source/SPCopyTable.m
+++ b/Source/SPCopyTable.m
@@ -33,6 +33,7 @@
#import "SPTextAndLinkCell.h"
#import "SPTooltip.h"
#import "SPAlertSheets.h"
+#import "SPBundleHTMLOutputController.h"
NSInteger MENU_EDIT_COPY = 2001;
NSInteger MENU_EDIT_COPY_WITH_COLUMN = 2002;
@@ -909,6 +910,11 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003;
else if([action isEqualToString:SPBundleOutputActionShowAsHTMLTooltip]) {
[SPTooltip showWithObject:output atLocation:pos ofType:@"html"];
}
+
+ else if([action isEqualToString:SPBundleOutputActionShowAsHTML]) {
+ SPBundleHTMLOutputController *c = [[SPBundleHTMLOutputController alloc] init];
+ [c displayHTMLContent:output withOptions:nil];
+ }
}
} else {
NSString *errorMessage = [err localizedDescription];