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