libreoffice-5.1.0.0-9.beta2.fc24 There is no support for getting the text selection out of the buffer.
It's available from the C++ API[1] but not the C bindings, which means it's not available for introspection and use in JavaScript, as needed by gnome-documents. [1]: http://cgit.freedesktop.org/libreoffice/core/tree/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx#n555
Pranav Kant committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=7d7fad258dfde500c5ee99b5f1691172724383bd tdf#96317: Add API for copy/paste from/to the widget It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Pranav Kant committed a patch related to this issue. It has been pushed to "libreoffice-5-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=9c01ac05618875e812c9f6a18edf5cc6a7909b5e&h=libreoffice-5-1 tdf#96317: Add API for copy/paste from/to the widget It will be available in 5.1.0.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.