<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - through API created DRAW XShapes do not have proper XAccessibleComponent - Bounds and DOM position ist invalid"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111827">111827</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>through API created DRAW XShapes do not have proper XAccessibleComponent - Bounds and DOM position ist invalid
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.2.7.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Extensions
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jens.bornschein@tu-dresden.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If one create a XShape through the API and add them afterwards to the DRAW page
to display the corresponding accessibility object is invalid. The
XAccessibleComponent is added as sibling to the Draw pages and allways have a
width and height of 0. Thereby you cannot use the getAccessibleAtPoint(point)
function.


pseudocode (cli C#):

XMultiServiceFactory drawDocXMultiServiceFactory = DrawPagesProvider as
XMultiServiceFactory;

Object shape =
drawDocXMultiServiceFactory.createInstance("com.sun.star.drawing.RectangleShape");

shape.setPosition(new Point(100, 100););
shape.setSize(new Size(1000, 1000));

((XShapes)page).add(shape);


// try to get the rectangle back
var result = DrawAppWindowAccComp.getAccessibleAtPoint(new
Point(newRectCenterScreenPos.X, newRectCenterScreenPos.Y));</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>