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: [email protected]
Reporter: [email protected]
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._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs