I'm in need to create a python macro for some odt and ods documents.
I need to find the style name of a line and do some specific work for every style i found.
I can open the documents, get the line but not the style.
I've searched on internet and here but I found nothing.
Can someone help me with some piece of code?
N.B. I need a macro 'cause the list of odt files is in a calc workbook
oCursor = modelDoc.Text.createTextCursor()
sStyle = ''
#loop for cursor
sStyle = sStyle + oCursor.getPropertyValue("ParaStyleName") + '\n'