[Solved] Starbasic Macro for bullets and numbering look
Posted: Sat Jul 30, 2016 3:25 pm
I'm looking in the Forum and the documentation for quite some time and couldn't find it...
I have managed to create a TOC with the use of levels
oCurs.NumberingLevel = "Level 2" 'attribute of the text, in order to include it in the TOC
oCurs.ParaStyleName = "Heading 2" 'attribute of the text, so that it looks like heading
and the appropriate command in the end
I have managed to change the properties of lines or paragraphs using both a view and a text cursor, for example with
xTextCursor.CharPosture=com.sun.star.awt.FontSlant.ITALIC (the xTextcursor has already a selection).
I cannot find a way to do the same with bullets and numbering. I already tried:
fvc.ParaStyleName = "Numbering 1" (fvc is a text or view cursor)
This changed the style of the lines (1,5 lines pro line) but I see no Numbering (or bullets, when i use "List 1" instead of "numbering 1")
Does somebody have an idea, how to create a macro like this, a starbasic macro that creates bullets or numbering in the current selection (when possible using a text or view cursor)?
PS. I already tried to use the macro record function, didn't help in this case...
thanks!
I have managed to create a TOC with the use of levels
oCurs.NumberingLevel = "Level 2" 'attribute of the text, in order to include it in the TOC
oCurs.ParaStyleName = "Heading 2" 'attribute of the text, so that it looks like heading
and the appropriate command in the end
I have managed to change the properties of lines or paragraphs using both a view and a text cursor, for example with
xTextCursor.CharPosture=com.sun.star.awt.FontSlant.ITALIC (the xTextcursor has already a selection).
I cannot find a way to do the same with bullets and numbering. I already tried:
fvc.ParaStyleName = "Numbering 1" (fvc is a text or view cursor)
This changed the style of the lines (1,5 lines pro line) but I see no Numbering (or bullets, when i use "List 1" instead of "numbering 1")
Does somebody have an idea, how to create a macro like this, a starbasic macro that creates bullets or numbering in the current selection (when possible using a text or view cursor)?
PS. I already tried to use the macro record function, didn't help in this case...
thanks!