xref: /trunk/main/udkapi/com/sun/star/lang/SystemDependent.idl (revision ffd38472365e95f6a578737bc9a5eb0fac624a86)
1*408a4873SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*408a4873SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*408a4873SAndrew Rist * distributed with this work for additional information
6*408a4873SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*408a4873SAndrew Rist * "License"); you may not use this file except in compliance
9*408a4873SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*408a4873SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*408a4873SAndrew Rist * software distributed under the License is distributed on an
15*408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*408a4873SAndrew Rist * KIND, either express or implied.  See the License for the
17*408a4873SAndrew Rist * specific language governing permissions and limitations
18*408a4873SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*408a4873SAndrew Rist *************************************************************/
21*408a4873SAndrew Rist
22*408a4873SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_lang_SystemDependent_idl__
24cdf0e10cSrcweir#define __com_sun_star_lang_SystemDependent_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir
27cdf0e10cSrcweir//=============================================================================
28cdf0e10cSrcweir
29cdf0e10cSrcweirmodule com {  module sun {  module star {  module lang {
30cdf0e10cSrcweir
31cdf0e10cSrcweir//=============================================================================
32cdf0e10cSrcweir
33cdf0e10cSrcweir// DocMerge from idl: constants com::sun::star::lang::SystemDependent
34cdf0e10cSrcweir/** These constants are used to specify systems which depend on return values.
35cdf0e10cSrcweir
36cdf0e10cSrcweir    <p> You should avoid system-dependent methods if possible.
37cdf0e10cSrcweir
38cdf0e10cSrcweir    @example:C++
39cdf0e10cSrcweir
40cdf0e10cSrcweir    <listing>
41cdf0e10cSrcweir    #ifdef __WINDOW // Microsoft Windows
42cdf0e10cSrcweir    HWND    hWin = (HWND)xInterface->getWindowHandle(SystemDependentWIN32);
43cdf0e10cSrcweir    if( hWin ) ...
44cdf0e10cSrcweir    #elif( ... ) // other systems
45cdf0e10cSrcweir    ...
46cdf0e10cSrcweir    #endif
47cdf0e10cSrcweir    </listing>
48cdf0e10cSrcweir
49cdf0e10cSrcweir    <p>The Symbols are now prepended with SYSTEM_ thus we avoid collisions
50cdf0e10cSrcweir    with system headers.  </p>
51cdf0e10cSrcweir
52cdf0e10cSrcweir    @see com::sun::star::awt::XSystemDependentWindowPeer
53cdf0e10cSrcweir    @deprecated
54cdf0e10cSrcweir */
55cdf0e10cSrcweirpublished constants SystemDependent
56cdf0e10cSrcweir{
57cdf0e10cSrcweir    //-------------------------------------------------------------------------
58cdf0e10cSrcweir
59cdf0e10cSrcweir    // DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_WIN32
60cdf0e10cSrcweir    /** The called interface method returns a value specified for the
61cdf0e10cSrcweir        32-bit Windows systems.
62cdf0e10cSrcweir
63cdf0e10cSrcweir        <p>These are Windows NT, Windows 95, Windows 98 or higher. </p>
64cdf0e10cSrcweir     */
65cdf0e10cSrcweir    const short SYSTEM_WIN32 = 1;
66cdf0e10cSrcweir
67cdf0e10cSrcweir    //-------------------------------------------------------------------------
68cdf0e10cSrcweir
69cdf0e10cSrcweir    // DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_WIN16
70cdf0e10cSrcweir    /** The called interface method returns a value specified for
71cdf0e10cSrcweir        the 16-bit Windows system.
72cdf0e10cSrcweir
73cdf0e10cSrcweir        <p>This is Windows 3.11. </p>
74cdf0e10cSrcweir     */
75cdf0e10cSrcweir    const short SYSTEM_WIN16 = 2;
76cdf0e10cSrcweir
77cdf0e10cSrcweir    //-------------------------------------------------------------------------
78cdf0e10cSrcweir
79cdf0e10cSrcweir    // DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_JAVA
80cdf0e10cSrcweir    /** The called interface method returns a value specified for  the system java.
81cdf0e10cSrcweir
82cdf0e10cSrcweir        <p>These are <em>JRE 1.1</em>, <em>JRE 1.2</em>, <em>JDK 1.1</em>,
83cdf0e10cSrcweir        <em>JDK 1.2</em> or higher.   </p>
84cdf0e10cSrcweir
85cdf0e10cSrcweir        <p>The return should be a handle to a java object locked with
86cdf0e10cSrcweir        the call <code>JavaEnvironment->NewGlobalRef( ... )</code>
87cdf0e10cSrcweir        by the callee. </p>
88cdf0e10cSrcweir     */
89cdf0e10cSrcweir    const short SYSTEM_JAVA = 3;
90cdf0e10cSrcweir
91cdf0e10cSrcweir    //-------------------------------------------------------------------------
92cdf0e10cSrcweir
93cdf0e10cSrcweir    // DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_OS2
94cdf0e10cSrcweir    /** The called interface method returns a value specified for  the <em>OS/2</em> system.
95cdf0e10cSrcweir     */
96cdf0e10cSrcweir    const short SYSTEM_OS2 = 4;
97cdf0e10cSrcweir
98cdf0e10cSrcweir    //-------------------------------------------------------------------------
99cdf0e10cSrcweir
100cdf0e10cSrcweir    // DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_MAC
101cdf0e10cSrcweir    /** The called interface method returns a value specified for the <em>MAC-OS</em> system.
102cdf0e10cSrcweir     */
103cdf0e10cSrcweir    const short SYSTEM_MAC = 5;
104cdf0e10cSrcweir
105cdf0e10cSrcweir    //-------------------------------------------------------------------------
106cdf0e10cSrcweir
107cdf0e10cSrcweir    // DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_XWINDOW
108cdf0e10cSrcweir    /** The called interface method returns a value specified for the <em>X Window System</em>.
109cdf0e10cSrcweir     */
110cdf0e10cSrcweir    const short SYSTEM_XWINDOW = 6;
111cdf0e10cSrcweir
112cdf0e10cSrcweir};
113cdf0e10cSrcweir
114cdf0e10cSrcweir//=============================================================================
115cdf0e10cSrcweir
116cdf0e10cSrcweir}; }; }; };
117cdf0e10cSrcweir
118cdf0e10cSrcweir/*=============================================================================
119cdf0e10cSrcweir
120cdf0e10cSrcweir=============================================================================*/
121cdf0e10cSrcweir#endif
122