LibreOffice Macro how to break out of a "Bullets and Numbering"

I can get the Numbering to start with:oNumRules=ThisComponent.createInstance (“com.sun.star.text.NumberingRules”)
’ then setting a TextCursor and setting that to oNumRules.

The problem is: I need to break out of the Numbering programmatically. I’ve tried simulating Carriage Returns by setting str = Chr(10) or Chr(13) or even backspace Chr(8) and inserting them in the Numbering outline.

I’ve simulated backspaces buy starting a dispatcher = createUnoService(“com.sun.star.frame.DispatchHelper”) and activated Backspace using: dispatcher.executeDispatch(oDoc, “.uno:SwBackspace”, “”, 0, Array()) - the backspaces work until the actual Number label then they don’t have any effect.

  • nothing seems to work. It would be nice if there was a function to accomplish this. Does anyone have any ideas? Many thanks in advance.