LibreOffice: com::sun::star::lang::SystemDependent Constant Group Reference

LibreOffice LibreOffice 26.2 SDK API Reference

Loading...
Searching...
No Matches
com::sun::star::lang::SystemDependent Constant Group Referencepublished

These constants are used to specify systems which depend on return values. More...

## Variables
const short | SYSTEM_WIN32 = 1
| The called interface method returns a value specified for Windows.
const short | SYSTEM_WIN16 = 2
| The called interface method returns a value specified for 16-bit Windows.
const short | SYSTEM_JAVA = 3
| The called interface method returns a value specified for Java.
const short | SYSTEM_OS2 = 4
| The called interface method returns a value specified for OS/2.
const short | SYSTEM_MAC = 5
| The called interface method returns a value specified for macOS.
const short | SYSTEM_XWINDOW = 6
| The called interface method returns a value specified for the X Window System.
const short | SYSTEM_IOS = 7
| The called interface method returns a value specified for iOS.
const short | SYSTEM_ANDROID = 8
| The called interface method returns a value specified for Android.

## Detailed Description

These constants are used to specify systems which depend on return values.

You should avoid system-dependent methods if possible.

#ifdef _WIN32 // 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

Deprecated

## Variable Documentation

## ◆ SYSTEM_ANDROID

const short SYSTEM_ANDROID = 8

The called interface method returns a value specified for Android.

## ◆ SYSTEM_IOS

const short SYSTEM_IOS = 7

The called interface method returns a value specified for iOS.

## ◆ SYSTEM_JAVA

const short SYSTEM_JAVA = 3

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_MAC

const short SYSTEM_MAC = 5

The called interface method returns a value specified for macOS.

## ◆ SYSTEM_OS2

const short SYSTEM_OS2 = 4

The called interface method returns a value specified for OS/2.

## ◆ SYSTEM_WIN16

const short SYSTEM_WIN16 = 2

The called interface method returns a value specified for 16-bit Windows.

This is Windows 3.11.

## ◆ SYSTEM_WIN32

const short SYSTEM_WIN32 = 1

The called interface method returns a value specified for Windows.

These are Windows XP or higher.

## ◆ SYSTEM_XWINDOW

const short SYSTEM_XWINDOW = 6

The called interface method returns a value specified for the X Window System.