ooodev.adapter.frame.layout_manager_comp module

class ooodev.adapter.frame.layout_manager_comp.LayoutManagerComp(component)[source]

Bases: _LayoutManagerComp, LayoutManager2Partial, CompDefaultsPartial

Class for managing LayoutManager Component.

Note

This is a Dynamic class that is created at runtime. This means that the class is created at runtime and not defined in the source code. In addition, the class may be created with additional classes implemented.

The Type hints for this class at design time may not be accurate. To check if a class implements a specific interface, use the isinstance function or is_supported_interface() methods which is always available in this class.

Note

This component is also a context manager and will lock and unlock the component when used in a with statement.

comp = doc.get_frame_comp()
with comp.layout_manager:
    # do something with the layout manager while locked
Parameters:

component (Any) –

__init__(component)[source]

Constructor

Parameters:

component (Any) – UNO Component that supports com.sun.star.configuration.ConfigurationAccess service.

Return type:

None

property component: com.sun.star.frame.LayoutManager

LayoutManager Component

Return type:

LayoutManager

ooodev.adapter.frame.layout_manager_comp.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder