:: com :: sun :: star :: lang ::

deprecated constants group SystemDependent
Usage Restrictions
deprecated
Description
These constants are used to specify systems which depend on return values.

You should avoid system-dependent methods if possible.

Example
:C++
 #ifdef __WINDOW // Microsoft Windows
 HWND hWin = (HWND)xInterface->getWindowHandle(SystemDependentWIN32);
 if( hWin ) ...
 #elif( ... ) // other systems
 ...
 #endif
 

The Symbols are now prepended with SYSTEM_ thus we avoid collisions with system headers.

See also
::com::sun::star::awt::XSystemDependentWindowPeer

Constants
SYSTEM_WIN32 The called interface method returns a value specified for Windows.  
SYSTEM_WIN16 The called interface method returns a value specified for 16-bit Windows.  
SYSTEM_JAVA The called interface method returns a value specified for Java.  
SYSTEM_OS2 The called interface method returns a value specified for OS/2.  
SYSTEM_MAC The called interface method returns a value specified for Mac OS X.  
SYSTEM_XWINDOW The called interface method returns a value specified for the X Window System.  
SYSTEM_IOS The called interface method returns a value specified for iOS.  
SYSTEM_ANDROID The called interface method returns a value specified for Android.  
Constants' Details
SYSTEM_WIN32
const short SYSTEM_WIN32 = 1;
Description
The called interface method returns a value specified for Windows.

These are Windows XP or higher.

SYSTEM_WIN16
const short SYSTEM_WIN16 = 2;
Description
The called interface method returns a value specified for 16-bit Windows.

This is Windows 3.11.

SYSTEM_JAVA
const short SYSTEM_JAVA = 3;
Description
The called interface method returns a value specified for Java.

These are JRE 1.1, JRE 1.2, JDK 1.1, JDK 1.2 or higher.

The return should be a handle to a Java object locked with the call JavaEnvironment->NewGlobalRef( ... ) by the callee.

SYSTEM_OS2
const short SYSTEM_OS2 = 4;
Description
The called interface method returns a value specified for OS/2.
SYSTEM_MAC
const short SYSTEM_MAC = 5;
Description
The called interface method returns a value specified for Mac OS X.
SYSTEM_XWINDOW
const short SYSTEM_XWINDOW = 6;
Description
The called interface method returns a value specified for the X Window System.
SYSTEM_IOS
const short SYSTEM_IOS = 7;
Description
The called interface method returns a value specified for iOS.
SYSTEM_ANDROID
const short SYSTEM_ANDROID = 8;
Description
The called interface method returns a value specified for Android.
Top of Page