1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_lang_SystemDependent_idl__
28#define __com_sun_star_lang_SystemDependent_idl__
29
30
31//=============================================================================
32
33module com {  module sun {  module star {  module lang {
34
35//=============================================================================
36
37// DocMerge from idl: constants com::sun::star::lang::SystemDependent
38/** These constants are used to specify systems which depend on return values.
39
40	<p> You should avoid system-dependent methods if possible.
41
42	@example:C++
43
44	<listing>
45	#ifdef __WINDOW	// Microsoft Windows
46	HWND	hWin = (HWND)xInterface->getWindowHandle(SystemDependentWIN32);
47	if( hWin ) ...
48	#elif( ... ) // other systems
49	...
50	#endif
51	</listing>
52
53	<p>The Symbols are now prepended with SYSTEM_ thus we avoid collisions
54	with system headers.  </p>
55
56	@see com::sun::star::awt::XSystemDependentWindowPeer
57    @deprecated
58 */
59published constants SystemDependent
60{
61	//-------------------------------------------------------------------------
62
63	// DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_WIN32
64	/** The called interface method returns a value specified for the
65		32-bit Windows systems.
66
67		<p>These are Windows NT, Windows 95, Windows 98 or higher. </p>
68	 */
69	const short SYSTEM_WIN32 = 1;
70
71	//-------------------------------------------------------------------------
72
73	// DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_WIN16
74	/** The called interface method returns a value specified for
75		the 16-bit Windows system.
76
77		<p>This is Windows 3.11. </p>
78	 */
79	const short SYSTEM_WIN16 = 2;
80
81	//-------------------------------------------------------------------------
82
83	// DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_JAVA
84	/** The called interface method returns a value specified for  the system java.
85
86		<p>These are <em>JRE 1.1</em>, <em>JRE 1.2</em>, <em>JDK 1.1</em>,
87		<em>JDK 1.2</em> or higher.   </p>
88
89		<p>The return should be a handle to a java object locked with
90		the call <code>JavaEnvironment->NewGlobalRef( ... )</code>
91		by the callee. </p>
92	 */
93	const short SYSTEM_JAVA = 3;
94
95	//-------------------------------------------------------------------------
96
97	// DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_OS2
98	/** The called interface method returns a value specified for  the <em>OS/2</em> system.
99	 */
100	const short SYSTEM_OS2 = 4;
101
102	//-------------------------------------------------------------------------
103
104	// DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_MAC
105	/** The called interface method returns a value specified for the <em>MAC-OS</em> system.
106	 */
107	const short SYSTEM_MAC = 5;
108
109	//-------------------------------------------------------------------------
110
111	// DocMerge from idl: value com::sun::star::lang::SystemDependent::SYSTEM_XWINDOW
112	/** The called interface method returns a value specified for the <em>X Window System</em>.
113	 */
114	const short SYSTEM_XWINDOW = 6;
115
116};
117
118//=============================================================================
119
120}; }; }; };
121
122/*=============================================================================
123
124=============================================================================*/
125#endif
126