aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleHTMLOutputController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-28 12:30:15 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-28 12:30:15 +0000
commit0846c7581fce4816c5d1afcb226f50da283f170e (patch)
treea38820050caf59ef8d8e698d7ab384a9d5b6891c /Source/SPBundleHTMLOutputController.m
parent060dc8cbdf8b6e60608e8111fe66f9c03c3af16b (diff)
downloadsequelpro-0846c7581fce4816c5d1afcb226f50da283f170e.tar.gz
sequelpro-0846c7581fce4816c5d1afcb226f50da283f170e.tar.bz2
sequelpro-0846c7581fce4816c5d1afcb226f50da283f170e.zip
• added print accessory view for background printing yes/no to HTML output window
Diffstat (limited to 'Source/SPBundleHTMLOutputController.m')
-rw-r--r--Source/SPBundleHTMLOutputController.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/SPBundleHTMLOutputController.m b/Source/SPBundleHTMLOutputController.m
index 43ff1d1e..4b1567bb 100644
--- a/Source/SPBundleHTMLOutputController.m
+++ b/Source/SPBundleHTMLOutputController.m
@@ -217,6 +217,14 @@
[op setPrintPanel:printPanel];
+ SPPrintAccessory *printAccessory = [[SPPrintAccessory alloc] initWithNibName:@"PrintAccessory" bundle:nil];
+
+ [printAccessory setPrintView:webView];
+ [printPanel addAccessoryController:printAccessory];
+
+ [[NSPageLayout pageLayout] addAccessoryController:printAccessory];
+ [printAccessory release];
+
[op runOperationModalForWindow:[self window]
delegate:self
didRunSelector:nil