I want to automatically select all Text in a document that has a certain formatting property (i.e. every character that is underlined). Is there way to achieve this?
In the documentation I've found the SearchStyles
property that comes most close to what I want, but I assume it looks only for the named formatting style that the text was given.
The background of my question is that I copy html text from the browser to the clipboard and from there into the odt-document. I can modify the html and thought of "marking" certain strings with the underline to later select them with an OpenOffice macro and reformat them (manually) the way I like to, but if that's not possible I'm thankful for every other hint, i.e. if there's a possibility to set a "style" already in the html that OpenOffice can understand.
Also if it's not possible in Open Office I have also access to MS Word if someone can guide to the right point in their documentation.