I have a text document that has Sections with links to external text files.
I need to break these links to that the document stays independent of the external sources.
I can get the sections with, e.g.
oSec = ThisComponent.getTextSections().getByName("SEC_GUIDE")
But then I can’t find a way to break the external link.
oSec.FileLink.FileURL = "" oSec.FileLink.FilterName = ""
is ineffective to break the link.
Note that with the dialog Format - Sections, I can clear the Link checkbox and I’m done. Less trivial is to do that with a macro.
Note2: I can also break the link with Edit - Links . But don’t know how to get the collection of external links…