update dev300-m58
[ooovba.git] / udkapi / com / sun / star / bridge / oleautomation / Date.idl
blobec7f794cbba1d56063388928adc79408cd69d756
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: Date.idl,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_bridge_oleautomation_Date_idl__
31 #define __com_sun_star_bridge_oleautomation_Date_idl__
34 module com { module sun { module star { module bridge { module oleautomation {
36 /** is the UNO representation of the Automation type <code>DATE</code>.
37 <p>
38 A <code>DATE</code> could actually be representd as<atom>double</atom> in
39 UNO and therefore a typedef from <atom>double</atom> to a date type would
40 do. But a typedef cannot be expressed in all language bindings. In the
41 case where no typedefs are supported the actual type is used. That is, a
42 typedef'd date type would be represented as <code>double</code> in Java.
43 The information that the <atom>double</atom> is a date type is lost.
44 </p>
45 <p>
46 When calling Automation objects from UNO the distinction between
47 <atom>double</atom> and date type is important. Therefore <type>Date</type>
48 is declared as struct.
49 </p>
51 @since OOo 1.1.2
53 struct Date
55 /** corresponds to the Automation type <code>DATE</code>.
57 double Value;
58 };
60 }; }; }; }; };
63 #endif