<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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>
  </body>
</html>