1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com
{ module sun
{ module star
{ module lang
{
24 /** These constants are used to specify systems which depend on return values.
26 <p> You should avoid system-dependent methods if possible.
29 #ifdef _WIN32 // Microsoft Windows
30 HWND hWin = (HWND)xInterface->getWindowHandle(SystemDependentWIN32);
32 #elif( ... ) // other systems
37 <p>The Symbols are now prepended with SYSTEM_ thus we avoid collisions
38 with system headers. </p>
40 @see com::sun::star::awt::XSystemDependentWindowPeer
43 published constants SystemDependent
45 /** The called interface method returns a value specified for Windows.
47 <p>These are Windows XP or higher. </p>
49 const short SYSTEM_WIN32
= 1;
51 /** The called interface method returns a value specified for 16-bit Windows.
53 <p>This is Windows 3.11. </p>
55 const short SYSTEM_WIN16
= 2;
57 /** The called interface method returns a value specified for Java.
59 <p>These are <em>JRE 1.1</em>, <em>JRE 1.2</em>, <em>JDK 1.1</em>,
60 <em>JDK 1.2</em> or higher. </p>
62 <p>The return should be a handle to a Java object locked with
63 the call <code>JavaEnvironment->NewGlobalRef( ... )</code>
66 const short SYSTEM_JAVA
= 3;
68 /** The called interface method returns a value specified for <em>OS/2</em>.
70 const short SYSTEM_OS2
= 4;
71 /** The called interface method returns a value specified for <em>macOS</em>.
73 const short SYSTEM_MAC
= 5;
75 /** The called interface method returns a value specified for the <em>X Window System</em>.
77 const short SYSTEM_XWINDOW
= 6;
79 /** The called interface method returns a value specified for <em>iOS</em>.
81 const short SYSTEM_IOS
= 7;
83 /** The called interface method returns a value specified for <em>Android</em>.
85 const short SYSTEM_ANDROID
= 8;
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */