https://bugs.documentfoundation.org/show_bug.cgi?id=173006
--- Comment #4 from david mccracken <[email protected]> --- Thank you Neil for your quick and very helpful suggestion. I would have responded sooner but I wanted to test the suggestion. I found that it worked in Libre version 26.2.5.2 (coincidentally in Windows) but not 6.4.7.2 (coincidentally in Linux). With that change my library can again find the status bar because it is a direct child of the IDE DOM (Document Object Model) root. However, my library also recursively searches the DOM to find the line containing the cursor but all of the root's descendents continue to use the old model and the new model raises an exception. I also want to continue to use the old model for older Libre versions because I share my library with a wide range of users, not all of whom want the latest Libre version. I found that, in all cases, hasPropertyByName (whether "XAccessible" or "AccessibleContext") returns False. I wrote the following macro to address all of these issues in any Libre version. sub LXAgetIdeCntx(ac as object, Optional node as object) if IsMissing(node) then node = StarDesktop.CurrentComponent.CurrentController.Frame.ContainerWindow endif on error resume next ac = node.AccessibleContext if IsNull(ac) then ac = node.getProperty("XAccessible").AccessibleContext on error goto 0 end sub Anyone who would like to see how this is used can download my free and open-source library from github.com/DavidHMcCracken/LinkXall. My "LinkXall Automates Hyperlinking Of Personal and Professional Information" video at youtube.com/OneFreeBrain tells how to do this. -- You are receiving this mail because: You are the assignee for the bug.
