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