[Libreoffice-bugs] [Bug 129162] UI: PDF Export: UI doesn't show that the export option Range, is ignored when "Full-sheet previews" (under Structure) is set
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Dec 6 10:55:25 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=129162
Muhammet Kara <muhammet.kara at collabora.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |difficultyInteresting,
| |skillCpp, topicUI
Assignee|muhammet.kara at collabora.com |libreoffice-bugs at lists.free
| |desktop.org
Status|ASSIGNED |NEW
--- Comment #4 from Muhammet Kara <muhammet.kara at collabora.com> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191206/8d78f6ad/attachment.html>
More information about the Libreoffice-bugs
mailing list