[Libreoffice-bugs] [Bug 123395] NAVIGATOR, "copy outline to clipboard" should be available in context menu
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Feb 21 16:34:30 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=123395
Michael Stahl (CIB) <michael.stahl at cib.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needsDevEval |difficultyBeginner,
| |skillCpp, skillUI, topicUI
CC| |michael.stahl at cib.de
--- Comment #3 from Michael Stahl (CIB) <michael.stahl at cib.de> ---
the dispatch command to execute is:
UNO dispatch:
".uno:SendOutlineToClipboard"
SDI definition:
sw/sdi/swriter.sdi:SfxVoidItem SendOutlineToClipboard FN_OUTLINE_TO_CLIPBOARD
the navigator content tree is in this file:
sw/source/uibase/utlui/content.cxx:
this function creates the entries in the context menu:
SwContentTree::CreateContextMenu()
need to add a new one of course!
this function is called when the context menu is clicked:
SwContentTree::ExecuteContextMenuAction()
on the new action, it should get a SfxDispatcher from the "m_pActiveShell",
and dispatch the SendOutlineToClipboard command.
some docs about dispatch-api:
https://wiki.openoffice.org/wiki/Framework/Article/Implementation_of_the_Dispatch_API_In_SFX2
=> easy-hack
--
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/20190221/56ff3e48/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list