From 0846c7581fce4816c5d1afcb226f50da283f170e Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 28 Jan 2011 12:30:15 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20print=20accessory=20view=20for=20ba?= =?UTF-8?q?ckground=20printing=20yes/no=20to=20HTML=20output=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPBundleHTMLOutputController.m | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source') 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 -- cgit v1.2.3