How to precisely control the user cursor in Calc and Impress using Python, such as selecting a specific paragraph, moving the cursor, just like in Writer

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)