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