ooodev.adapter.awt.system_child_factory_partial module
- class ooodev.adapter.awt.system_child_factory_partial.SystemChildFactoryPartial(component, interface=com.sun.star.awt.XSystemChildFactory)[source]
Bases:
object
Partial class for XSystemChildFactory.
- Parameters:
component (XSystemChildFactory) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.awt.XSystemChildFactory)[source]
Constructor
- Parameters:
component (XSystemChildFactory) – UNO Component that implements
com.sun.star.awt.XSystemChildFactory
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XSystemChildFactory
.
- Return type:
None
- create_system_child(parent, system_type, *process_id)[source]
Creates a system child window.
You must check the machine ID and the process ID.WIN32: HWND.WIN16: HWND.
JAVA: global reference to a java.awt.Component object provided from the JNI-API.
MAC: (NSView*) pointer.
- Parameters:
parent (Any) – a system-specific handle to a window.
system_type (int, SystemDependentEnum) – The system type.
process_id (int) – Ignored. One or more process ID.
- Returns:
the created system child window.
- Return type:
XWindowPeer
Hint
SystemDependentEnum
is an enum and can be imported fromooo.dyn.lang.system_dependent
.