Summary: | Access items in the Navigator window programatically | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | fuzzybear <tomjermy> |
Component: | sdk | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | ||
Severity: | enhancement | CC: | jag, stephane.guillou |
Priority: | medium | Keywords: | needsDevAdvice |
Version: | 7.6.1.2 release | ||
Hardware: | All | ||
OS: | All | ||
URL: | https://ask.libreoffice.org/t/96147 | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 127590 |
Description
fuzzybear
2023-09-23 10:26:15 UTC
This is only about the Navigator as shown for Writer documents. I don't really understand the use case. Can you please provide a precise example of what you want to do and how it would be useful? Comparing "what you do know" with "what you would like instead". Possibly attaching an example macro too. Thank you! The questioner was advised to post a feature request to the bug tracker in the thread https://ask.libreoffice.org/t/96147 of the ask site. Generally it's unclear for what reasons the software creates a list of hyperlinks for thw Writer document, and shows it in the navigator, but doesn't make it accessible via an API service. Bookmarksd, e.g, are also listed in the navigator, but also accessible via the model's property .bookmarks. Same thing with TextTable objects, TextFields ... You may read the request this way: Don'waste effort by creating lists (or trees?) for the navigator without also giving access to them to programmers of custom code. Apologies for my delayed response - Wolfgang Jäger's summary is correct. It is not such a burning issue now, as I have approached the issue I had a different way - but I believe that it would be useful to be able to access the data within the navigator window programatically. It would certainly be quicker that iterating through with something like this: for text_portion in text.createEnumeration(): if text_portion.HyperLinkURL != "": hyperlink = text_portion.HyperLinkURL hyperlinks.append(hyperlink) [Automated Action] NeedInfo-To-Unconfirmed Thank you, that makes more sense. Marking as "new" but asking for dev advice. Apart from Hyperlinks, what other elements are missing? Maybe this enhancement request can be about hyperlinks specifically, to have something more actionable. There's various information available there, unfortunately I am not sufficiently knowledgeable with regard to what of that information is available through pre existing APIs within the tool. Hyperlink enumeration is an obvious example but I expect that there are others. |