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_bridge_oleautomation_SCode_idl__
24#define __com_sun_star_bridge_oleautomation_SCode_idl__
25
26
27module com {  module sun {  module star {  module bridge {  module oleautomation {
28
29/** <p>is the UNO representation of the Automation type SCODE.
30    </p>
31    <p>
32    A <code>SCODE</code> is used to express errors in Automation.
33    In UNO it could be represented by a <atom>long</atom> and therefore a typedef
34    from <atom>long</atom> to a particular error type  would do. But a typedef
35    cannot be expressed in all language bindings. In the case where no typedefs
36    are supported the actual type is used. That is, a typedef'd error type would
37    be represented as <code>int</code> in Java. The information that the
38    <code>int</code> is an error type is lost.
39    </p>
40    <p>
41    When calling Automation objects from UNO the distinction between error type
42    and <atom>long</atom> is important. Therefore the <type>Scode</type> is
43    declared as struct.
44    </p>
45
46    @since OpenOffice 1.1.2
47 */
48
49
50struct SCode
51{
52    long Value;
53};
54
55}; }; }; }; };
56
57
58#endif
59