Date: prev next · Thread: first prev next last
November 2016 Archives by date, by thread · List index


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

Katarina Behrens (CIB) <Katarina.Behrens@cib.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needsDevEval, topicUI       |

--- Comment #8 from Katarina Behrens (CIB) <Katarina.Behrens@cib.de> ---
First, not every change is an (incompatible) API change. Deleting a command is
an API change. Changing the type and number of arguments a command accepts is
an API change. However, changing return value of a command (which is what would
be required to make this .uno command a binary toggle) is NOT an API change,
thus it's fine to do it that way

Second, the code pointers are slightly misleading and rather incomplete. The
return value of SID_INSERT_PAGE_NUMBER slot is defined in sd/sdi/sdraw.sdi, it
should be changed from SfxVoidItem to SfxBoolItem. Then, a new case has to be
added to sd/source/ui/view/drviews3.cxx, DrawViewShell::ExecCtrl to serve the
changed slot. It has to contain some code to find out if the current page has a
page number visible and toggle it on/off

Come to think of it, maybe it'd be better to do this in a new, separate slot
(.uno:TogglePageNumber?) instead of sodomizing the old .uno:InsertPageNumber
one

And finally third, given all of the above, this is likely not an easy hack.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.