copy part of text from api

Andrew Pitonyak andrew at pitonyak.org
Sat Apr 13 17:24:06 UTC 2024


I will not have access to check (probably only my phone for a week or two), but can you pull xtransferable content from a cursor or range?

⁣Get BlueMail for Android ​

On Apr 13, 2024, 12:35 PM, at 12:35 PM, Zorg <zorg at probesys.com> wrote:
>Hello
>
>Hope some can help us here
>
>Here is the  problem
>
>
>We are developing our software using the uno api python 
>(https://github.com/Probesys/lotemplate)
>
>We try to copy a text in a odt file and paste it without loosing the 
>format of the text and without using the clipboard
>
>We know how to paste html
>
>https://github.com/Probesys/lotemplate/blob/master/lotemplate/classes.py
>
>(line 165-185)
>
>but we don't know how we can't copy a selected text without loosing
>format
>
>Actually we use .insertString
>
>https://github.com/Probesys/lotemplate/blob/master/lotemplate/Statement/ForStatement.py
>
>(line 286)
>
>
>I know it's possible to do it  using 
>com.sun.star.datatransfer.clipboard.SystemClipboard
>
>But in that case we must embed a Xserver inside the docker container 
>what we want to avoid
>
>So if anyone wants to give us a solution or a hint on how to do this
>
>thanks
>
>Zorg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20240413/69a741c3/attachment.htm>


More information about the LibreOffice mailing list