Class LoManager
LoManager is low level content manager that connects to LibreOffice and then disconnects when the block has been executed.
Generally speaking this Manager is not needed when using OooDev.
Example
from ooodev.conn.connect import LoManager with LoManager() as mgr: smgr = mgr.ctx.getServiceManager() desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop", mgr.ctx) # other processing
- class ooodev.conn.connect.LoManager(connector=None, cache_obj=None)[source]
LO Connection Context Manager
- Parameters:
connector (connectors.ConnectPipe | connectors.ConnectSocket | None) –
cache_obj (cache.Cache | None) –
- __init__(connector=None, cache_obj=None)[source]
Context Manager Constructor
- Parameters:
connector (connectors.ConnectPipe | connectors.ConnectSocket | None, optional) – Connector to connect with. Defaults to ConnectPipe.
cache_obj (Cache | None, optional) – Cache Option. Defaults to None.
- Raises:
TypeError – If connector is incorrect type.