ooodev.adapter.view.line_cursor_partial module
- class ooodev.adapter.view.line_cursor_partial.LineCursorPartial(component, interface=com.sun.star.view.XLineCursor)[source]
Bases:
object
Partial class for XLineCursor.
- Parameters:
component (XLineCursor) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.view.XLineCursor)[source]
Constructor
- Parameters:
component (XLineCursor) – UNO Component that implements
com.sun.star.view.XLineCursor
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XLineCursor
.
- Return type:
None
- goto_end_of_line(expand=False)[source]
Moves the cursor to the end of the current line.
- Parameters:
expand (bool, optional) – Determines whether the text range of the cursor is expanded (
True
) or the cursor will be just at the new position after the move (False
). Defaults toFalse
.- Return type:
None
- goto_start_of_line(expand=False)[source]
Moves the cursor to the start of the current line.
- Parameters:
expand (bool, optional) – Determines whether the text range of the cursor is expanded (
True
) or the cursor will be just at the new position after the move (False
). Defaults toFalse
.- Return type:
None