https://bugs.documentfoundation.org/show_bug.cgi?id=163558

Patrick (volunteer) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|NOTOURBUG                   |---
                 CC|                            |[email protected]
             Status|RESOLVED                    |NEW

--- Comment #4 from Patrick (volunteer) <[email protected]> ---
(In reply to Patrick (volunteer) from comment #3)
> Only the "LibreOffice" section of print options are controlled by
> LibreOffice. The other option sections (e.g. Layout, Paper Handling etc.)
> are populated by macOS based on what macOS thinks your printer will support.
> That is probably why some of us see a "rotate page" post-processing option
> and others do not.

I found how to force the paper size, paper orientation, and scaling sections to
appear in the macOS print dialog using the following debug patch. With my debug
patch, the print dialog in LibreOffice now looks the same (at least on macOS
Sequoia) as Safari: those 3 sections are displayed just below the copies and
page range sections.

Unfortunately, changing any of those 3 settings has no effect so the next step
is to see if I can find a way to force LibreOffice to relayout the document
when any of those 3 settings are changed:

diff --git a/vcl/osx/printaccessoryview.mm b/vcl/osx/printaccessoryview.mm
index 7b61adf9887a..cc165edd2db6 100644
--- a/vcl/osx/printaccessoryview.mm
+++ b/vcl/osx/printaccessoryview.mm
@@ -1248,7 +1248,10 @@ +(NSObject*)setupPrinterPanel: (NSPrintOperation*)pOp

     // get the print panel
     NSPrintPanel* pPrintPanel = [pOp printPanel];
-    [pPrintPanel setOptions: [pPrintPanel options] |
NSPrintPanelShowsPreview];
+
+    NSPrintPanelOptions nOptions = NSPrintPanelShowsCopies |
NSPrintPanelShowsPageRange | NSPrintPanelShowsPaperSize |
NSPrintPanelShowsOrientation | NSPrintPanelShowsScaling |
NSPrintPanelShowsPreview;
+    [pPrintPanel setOptions: nOptions];
+
     // add the accessory controller to the panel
     [pPrintPanel addAccessoryController: [pAccessoryController autorelease]];

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to