Am Freitag, den 29.07.2005, 11:35 +0200 schrieb Stephan Wunderlich: > Hi Marc,
Hello Stephan, > > 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. That's exactly the way I did the first try, but it fails if someone uses other styles than the default. The other way round: is it possible to compare anchors? If I get the anchor from the toc and compare it to the start of a TexRange (or the like), will they match if at equal position? The goal in all this is to make a text conversion from writer doc to MoinMoin-Wiki syntax. MoinMoin has it's own toc generation tag, so the writer-toc should get skipped. Btw. I think this would be worth an RFE. Thanks, Marc --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
