diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-01-28 12:30:15 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-01-28 12:30:15 +0000 |
commit | 0846c7581fce4816c5d1afcb226f50da283f170e (patch) | |
tree | a38820050caf59ef8d8e698d7ab384a9d5b6891c | |
parent | 060dc8cbdf8b6e60608e8111fe66f9c03c3af16b (diff) | |
download | sequelpro-0846c7581fce4816c5d1afcb226f50da283f170e.tar.gz sequelpro-0846c7581fce4816c5d1afcb226f50da283f170e.tar.bz2 sequelpro-0846c7581fce4816c5d1afcb226f50da283f170e.zip |
• added print accessory view for background printing yes/no to HTML output window
-rw-r--r-- | Source/SPBundleHTMLOutputController.m | 8 |
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 |