[Libreoffice-bugs] [Bug 111827] New: through API created DRAW XShapes do not have proper XAccessibleComponent - Bounds and DOM position ist invalid

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 15 22:21:06 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111827

            Bug ID: 111827
           Summary: through API created DRAW XShapes do not have proper
                    XAccessibleComponent - Bounds and DOM position ist
                    invalid
           Product: LibreOffice
           Version: 5.2.7.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Extensions
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: jens.bornschein at tu-dresden.de

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));

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170815/91f18d4f/attachment.html>


More information about the Libreoffice-bugs mailing list