merged tag ooo/OOO330_m14
[LibreOffice.git] / udkapi / com / sun / star / lang / SystemDependent.idl
blob5d4bf69be0e6639ce8c1ef63c0e2acc7865de14f
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
27 #ifndef __com_sun_star_lang_SystemDependent_idl__
28 #define __com_sun_star_lang_SystemDependent_idl__
31 //=============================================================================
33 module com { module sun { module star { module lang {
35 //=============================================================================
37 // DocMerge from idl: constants com::sun::star::lang::SystemDependent
38 /** These constants are used to specify systems which depend on return values.
40 <p> You should avoid system-dependent methods if possible.
42 @example:C++
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>
53 <p>The Symbols are now prepended with SYSTEM_ thus we avoid collisions
54 with system headers. </p>
56 @see com::sun::star::awt::XSystemDependentWindowPeer
57 @deprecated
59 published constants SystemDependent
61 //-------------------------------------------------------------------------
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.
67 <p>These are Windows NT, Windows 95, Windows 98 or higher. </p>
69 const short SYSTEM_WIN32 = 1;
71 //-------------------------------------------------------------------------
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.
77 <p>This is Windows 3.11. </p>
79 const short SYSTEM_WIN16 = 2;
81 //-------------------------------------------------------------------------
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.
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>
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>
93 const short SYSTEM_JAVA = 3;
95 //-------------------------------------------------------------------------
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.
100 const short SYSTEM_OS2 = 4;
102 //-------------------------------------------------------------------------
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.
107 const short SYSTEM_MAC = 5;
109 //-------------------------------------------------------------------------
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>.
114 const short SYSTEM_XWINDOW = 6;
118 //=============================================================================
120 }; }; }; };
122 /*=============================================================================
124 =============================================================================*/
125 #endif