Bug 1214511 - Show copies, page range selection, and more on the expanded OSX print dialog. r=mstange a=lizzard
authorbyron jones <glob@mozilla.com>
Sun, 18 Oct 2015 09:22:00 +0200
changeset 298289 c017ca15c40c99776c84f40c100cb5c578b8ae66
parent 298288 e2c0b15aed6b5f20c427ce753e56d0f0ccad594b
child 298290 d05022112ecf3fa3035457520d8e62d132640137
push id962
push userjlund@mozilla.com
push dateFri, 04 Dec 2015 23:28:54 +0000
treeherdermozilla-release@23a2d286e80f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange, lizzard
bugs1214511
milestone43.0a2
Bug 1214511 - Show copies, page range selection, and more on the expanded OSX print dialog. r=mstange a=lizzard
widget/cocoa/nsPrintDialogX.mm
--- a/widget/cocoa/nsPrintDialogX.mm
+++ b/widget/cocoa/nsPrintDialogX.mm
@@ -73,17 +73,21 @@ nsPrintDialogServiceX::Show(nsIDOMWindow
   // Put the print info into the current print operation, since that's where
   // [panel runModal] will look for it. We create the view because otherwise
   // we'll get unrelated warnings printed to the console.
   NSView* tmpView = [[NSView alloc] init];
   NSPrintOperation* printOperation = [NSPrintOperation printOperationWithView:tmpView printInfo:printInfo];
   [NSPrintOperation setCurrentOperation:printOperation];
 
   NSPrintPanel* panel = [NSPrintPanel printPanel];
-  [panel setOptions:NSPrintPanelShowsPaperSize];
+  [panel setOptions:NSPrintPanelShowsCopies
+    | NSPrintPanelShowsPageRange
+    | NSPrintPanelShowsPaperSize
+    | NSPrintPanelShowsOrientation
+    | NSPrintPanelShowsScaling ];
   PrintPanelAccessoryController* viewController =
     [[PrintPanelAccessoryController alloc] initWithSettings:aSettings];
   [panel addAccessoryController:viewController];
   [viewController release];
 
   // Show the dialog.
   nsCocoaUtils::PrepareForNativeAppModalDialog();
   int button = [panel runModal];