Overview | Module | Use | Devguide | Index

Constants | Constants' Details

:: 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

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.