I have been searching for a long time but haven’t found cursor controls similar to those in Writer. For example, in Writer, there are cursor operation codes like the following:
cursor = XSCRIPTCONTEXT.getDocument().getCurrentController().getViewCursor()
cursor.goLeft(1, False)
cursor.goRight(1, True)