It would be nice to be able to copy text from the viewed document, just like on the desktop. It's not too hard to implement this today, either. The Android app uses the LibreOfficeKit API to talk to core. gtktiledviewer is a test program to show all the LOK API features implemented in core, and it already can do searching. The gtk app already supports exposting formatted text as HTML, with falling back to plain text if necessary. If it helps, the API also exposes RTF. Code pointers: - desktop/source/lib/lokandroid.cxx, Java_org_libreoffice_kit_Document_getTextSelection() currently that JNI wrapper is missing, has to be implemented. - libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx, doCopy() shows how to get the selection in HTML or plain text from core - android/source/ is the source code for the Java part of the Android app See https://wiki.documentfoundation.org/Development/Android in general on how to get an Android build.
> and it already can do searching. searching -> copying
valid enhancement request. status NEW
Migrating Whiteboard tags to Keywords: (easyHack, difficultyInteresting, skillJava, topicUI) [NinjaEdit]
JanI is default CC for Easy Hacks (Add Jan; remove LibreOffice Dev List from CC) [NinjaEdit]
Chamal committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=121a202076f0ada98e5e3697e4e15a48b477523e tdf#92346 - Copy functionality in the viewer It will be available in 5.3.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.
Note that the change above does not really do anything, and the commit message doesn't say anything useful about what the poin is.
I think the above commit is pointless, it misses the point. The task is to use getTextSelection() in android/ code.
Hello I'm working on this feature. Thanks!
Since there is no update on this, I would like to take this up.
I have submitted a WIP patch for this bug, progress can be tracked there: https://gerrit.libreoffice.org/#/c/35853/
*** This bug has been marked as a duplicate of bug 96796 ***