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

Muhammet Kara <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |difficultyInteresting,
                   |                            |skillCpp, topicUI
           Assignee|[email protected] |[email protected]
                   |                            |desktop.org
             Status|ASSIGNED                    |NEW

--- Comment #4 from Muhammet Kara <[email protected]> ---
Let's make this an easyhack.

Check for the value of mbSinglePageSheets in the ImpPDFTabDialog class, and
disable related items (all of the items under "General > Range" of the "PDF
Options" dialog, which could be displayed by following "File > Export as
PDF..." menu) on the dialog based on the value of it.

You will need to do the first disabling (if needed) inside
ImpPDFTabGeneralPage::SetFilterConfigItem() method, probably just after this
line:

mxCbSinglePageSheets->set_active(pParent->mbSinglePageSheets);

Then you need to add a toggle handler for the mxCbSinglePageSheets checkbox,
and enable/disable the range options inside that toggle handler based on the
value/state of the checkbox. (You may check the toggle handlers of the
mxCbReduceImageResolution and the mxCbWatermark checkboxes to see how it is
done.)

It is also probably a good idea to check the related blog post to understand
the option, and get some tips:
https://muhammetkara.com/post/2019-10-18-full-sheet-previews-in-libreoffice/

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to