Class ConnectCtx

class ooodev.conn.connect_ctx.ConnectCtx(ctx)[source]

Bases: ConnectBase

Connection to LibreOffice/OpenOffice

This class is used to connect to LibreOffice/OpenOffice. It is used to create a connection to LibreOffice/OpenOffice. It is used to create a connection to LibreOffice/OpenOffice.

New in version 0.53.0.

Parameters:

ctx (XComponentContext) –

__init__(ctx)[source]
Parameters:

ctx (com.sun.star.uno.XComponentContext) –

Return type:

None

connect()[source]

Makes a connection to soffice

Raises:

NoConnectException – if unable to obtain a connection to soffice

Return type:

None

kill_soffice()[source]

Attempts to kill instance of soffice created by this instance

Return type:

None

property ctx: com.sun.star.uno.XComponentContext

Gets instance Component Context

Return type:

XComponentContext

property has_connection: bool

Returns True if a connection to soffice has been established

Return type:

bool

property headless: bool

For compatibility. Returns False

Return type:

bool

property invisible: bool

For compatibility. Returns False

Return type:

bool

property is_remote: bool

Returns False

Return type:

bool

property log: NamedLogger

Gets the logger

Return type:

NamedLogger

property no_first_start_wizard: bool

For compatibility. Returns True

Return type:

bool

For compatibility. Returns True

Return type:

bool

property no_restore: bool

For compatibility. Returns True

Return type:

bool

property start_as_service: bool

For compatibility. Returns False

Return type:

bool

property start_office: bool

For compatibility. Returns True

Return type:

bool