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 to False.

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 to False.

Return type:

None

is_at_end_of_line()[source]

Determines if the cursor is positioned at the end of a line.

Returns:

True if the cursor is positioned at the end of a line, False otherwise.

Return type:

bool

is_at_start_of_line()[source]

Determines if the cursor is positioned at the start of a line.

Returns:

True if the cursor is positioned at the start of a line, False otherwise.

Return type:

bool