<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head><body style="zoom: 0%;"><div dir="auto">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?<br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Get <!-- tmjah_g_1299e --><a href="https://bluemail.me"><!-- tmjah_g_1299s -->BlueMail for Android<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s --> <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On Apr 13, 2024, at 12:35 PM, Zorg <<a href="mailto:zorg@probesys.com" target="_blank">zorg@probesys.com</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p>Hello</p>
<p>Hope some can help us here</p>
<p>Here is the problem</p>
<p><br>
We are developing our software using the uno api python (<a class="moz-txt-link-freetext" href="https://github.com/Probesys/lotemplate">https://github.com/Probesys/lotemplate</a>)<br>
</p>
<p>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<br>
</p>
<p>We know how to paste html<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/Probesys/lotemplate/blob/master/lotemplate/classes.py">https://github.com/Probesys/lotemplate/blob/master/lotemplate/classes.py</a>
(line 165-185)<br>
</p>
<p>but we don't know how we can't copy a selected text without
loosing format</p>
<p>Actually we use .insertString</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/Probesys/lotemplate/blob/master/lotemplate/Statement/ForStatement.py">https://github.com/Probesys/lotemplate/blob/master/lotemplate/Statement/ForStatement.py</a>
(line 286)</p>
<p><br>
</p>
<p>I know it's possible to do it using
com.sun.star.datatransfer.clipboard.SystemClipboard</p>
<p>But in that case we must embed a Xserver inside the docker
container <span d-id="613" class="--l --r sentence_highlight"><span d-id="615" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">what</span>
<span d-id="619" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">we</span>
<span d-id="623" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">want</span>
<span d-id="627" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">to</span>
<span d-id="631" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">avoid</span></span></p>
<p>S<span d-id="5760" class="--l --r sentence_highlight"><span d-id="5762" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">o</span>
<span d-id="5766" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">if</span>
<span d-id="5770" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">anyone</span>
<span d-id="5774" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">wants</span>
<span d-id="5778" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">to</span>
<span d-id="5782" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">give</span>
<span d-id="5786" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">us</span>
<span d-id="5790" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">a</span>
<span d-id="5794" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">solution</span>
<span d-id="5798" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">or</span>
<span d-id="5802" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">a</span>
<span d-id="5806" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">hint</span>
<span d-id="5810" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">on</span>
<span d-id="5814" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">how</span>
<span d-id="5818" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">to</span>
<span d-id="5822" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">do</span>
<span d-id="5826" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">this</span></span></p>
<p><span d-id="5760" class="--l --r sentence_highlight"><span d-id="5826" class="--l --r hover:bg-[#B4DAE8] hover:dark:bg-blue-next-600">thanks<br>
</span> </span> </p>
<p>Zorg</p>
<p><br>
</p>
<div id="grammalecte_menu_main_button_shadow_host" style="width: 0px; height: 0px;"></div>
</blockquote></div></body></html>