Hi Marc,
when iterating over all paragraphs of a writer doc, is there a way to
ask a paragraph if it belongs to any index, especially the table of
contents?
you could ask the paragraph for it's ParaStyleName, which should start
with "Contents" in your case.
xSel = thisComponent.CurrentController.Selection
msgbox xSel(0).ParaStyleName
returns the ParaStyleName of the paragraph where the cursor currently
resides in.
Hope that helps
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]