<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    something like this:<br>
    <br>
        set doc = thisComponent<br>
        set ctrl = thisComponent.CurrentController<br>
        xChart =
    ctrl.getModel().getEmbeddedObjects.getByName("Objekt2")    <br>
        xChart.ExtendedControlOverEmbeddedObject.changeState(0)<br>
        xChart.ExtendedControlOverEmbeddedObject.changeState(1)<br>
        xChart.ExtendedControlOverEmbeddedObject.changeState(3)<br>
        xChart.ExtendedControlOverEmbeddedObject.changeState(1)<br>
    <br>
    You can look up the numbers for the states in the
    com::sun::star::embed::EmbedStates constant group <br>
    <br>
    Regards,<br>
    Jan<br>
    <br>
    <div class="moz-cite-prefix">Am 31.01.2016 um 13:19 schrieb sos:<br>
    </div>
    <blockquote
      cite="mid:f93ladarkovehloss3ypn5bs.1454242768892@email.android.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div>Did you tran</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div id="composer_signature">
        <div style="font-size:85%;color:#575757">Sent from my Samsung
          Galaxy smartphone.</div>
      </div>
      <div style="font-size:100%;color:#000000"><!-- originalMessage -->
        <div>Did you translate the solution into basic code?</div>
        <div><br>
        </div>
      </div>
      Hi Fernand,<br>
      <br>
      thanks for the ideas. Sadly nothing you or anybody else posted
      helped.<br>
      Finally I found this hack (here xChart has type Reference<
      XTextContent<br>
      > xChart):<br>
      <br>
        Reference < XEmbeddedObjectSupplier2 >xEOS2(xChart,
      UNO_QUERY_THROW);<br>
        Reference < XEmbeddedObject ><br>
      xEmbObj(xEOS2->getExtendedControlOverEmbeddedObject());<br>
      <br>
        if (xEmbObj->getCurrentState() ==<br>
      com::sun::star::embed::EmbedStates::LOADED)<br>
            xEmbObj->changeState(
      com::sun::star::embed::EmbedStates::RUNNING);<br>
        if (xEmbObj->getCurrentState() ==<br>
      com::sun::star::embed::EmbedStates::RUNNING)<br>
            xEmbObj->changeState(<br>
      com::sun::star::embed::EmbedStates::INPLACE_ACTIVE);<br>
        if (xEmbObj->getCurrentState() ==<br>
      com::sun::star::embed::EmbedStates::INPLACE_ACTIVE)<br>
            xEmbObj->changeState(
      com::sun::star::embed::EmbedStates::RUNNING);<br>
      <br>
      which works on Windows. On Linux this works better:<br>
      <br>
        Reference < XEmbeddedObjectSupplier > xEOS(xChart,
      UNO_QUERY_THROW);<br>
        Reference < ::com::sun::star::chart::XChartDocument ><br>
      cDoc(xEOS->getEmbeddedObject(), UNO_QUERY_THROW);<br>
      <br>
        Reference< XPropertySet >
      dProperties(cDoc->getDiagram(),<br>
      UNO_QUERY_THROW);<br>
        Any type = dProperties->getPropertyValue(OU("SplineType"));<br>
        dProperties->setPropertyValue(OU("SplineType"),
      makeAny(sal_uInt32(0)));<br>
        dProperties->setPropertyValue(OU("SplineType"),
      makeAny(sal_uInt32(1)));<br>
        dProperties->setPropertyValue(OU("SplineType"), type);<br>
      <br>
      Regards,<br>
          Jan<br>
      <br>
      _______________________________________________<br>
      LibreOffice mailing list<br>
      <a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
      <a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
    </blockquote>
    <br>
  </body>
</html>