(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: awt ::

interface XSystemDependentWindowPeer
Description
provides access to the system dependent implementation of the window.
See also
::com::sun::star::lang::SystemDependent, WindowAttribute, WindowAttribute::SYSTEMDEPENDENT

Methods' Summary
getWindowHandle returns a system-specific window handle.  
Methods' Details
getWindowHandle
any
getWindowHandle( [in] sequence< byte >  ProcessId,
[in] short  SystemType );

Description
returns a system-specific window handle.
Returns
a sytem-specific handle to a window or 0 if the window is not in the same process.

You must check the machine ID and the process ID.
WIN32: Returns an HWND if possible, otherwise 0.
WIN16: Returns an HWND if possible, otherwise 0.
JAVA: Returns a global reference to a java.awt.Component object provided from the JNI-API.
OS2: Returns an HWND if possible, otherwise 0.
MAC: Returns a ptr to the NSView implementing the window.
XWINDOW: Returns a structure SystemDependentXWindow or void if it is not reachable.

Parameter ProcessId
the process identifier. Use the sal_getGlobalProcessId function of the RTL library.
Parameter SystemType
one constant out of the constant group ::com::sun::star::lang::SystemDependent.
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.