Re: copy part of text from api

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Otherwise, to insert data into a Writer document, merge fields are used.
It is independent of the content (odt, html) however you need XRowSet or XResultSet as input...

Le sam. 13 avr. 2024 à 19:29, Andrew Pitonyak <andrew@xxxxxxxxxxxx> a écrit :
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, at 12:35 PM, Zorg <zorg@xxxxxxxxxxxx> 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



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux