1*14ea66faSAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*14ea66faSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*14ea66faSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*14ea66faSAndrew Rist * distributed with this work for additional information 6*14ea66faSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*14ea66faSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*14ea66faSAndrew Rist * "License"); you may not use this file except in compliance 9*14ea66faSAndrew Rist * with the License. You may obtain a copy of the License at 10*14ea66faSAndrew Rist * 11*14ea66faSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*14ea66faSAndrew Rist * 13*14ea66faSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*14ea66faSAndrew Rist * software distributed under the License is distributed on an 15*14ea66faSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*14ea66faSAndrew Rist * KIND, either express or implied. See the License for the 17*14ea66faSAndrew Rist * specific language governing permissions and limitations 18*14ea66faSAndrew Rist * under the License. 19*14ea66faSAndrew Rist * 20*14ea66faSAndrew Rist *************************************************************/ 21*14ea66faSAndrew Rist 22*14ea66faSAndrew Rist 23cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl> 24cdf0e10cSrcweir#include <com/sun/star/uno/Exception.idl> 25cdf0e10cSrcweir 26cdf0e10cSrcweirmodule test 27cdf0e10cSrcweir{ 28cdf0e10cSrcweir 29cdf0e10cSrcweirstruct TestTypes 30cdf0e10cSrcweir{ 31cdf0e10cSrcweir boolean Bool; 32cdf0e10cSrcweir char Char; 33cdf0e10cSrcweir byte Byte; 34cdf0e10cSrcweir short Short; 35cdf0e10cSrcweir unsigned short UShort; 36cdf0e10cSrcweir long Long; 37cdf0e10cSrcweir unsigned long ULong; 38cdf0e10cSrcweir hyper Hyper; 39cdf0e10cSrcweir unsigned hyper UHyper; 40cdf0e10cSrcweir float Float; 41cdf0e10cSrcweir double Double; 42cdf0e10cSrcweir// test::TestEnum Enum; 43cdf0e10cSrcweir string String; 44cdf0e10cSrcweir com::sun::star::uno::XInterface Interface; 45cdf0e10cSrcweir any Any; 46cdf0e10cSrcweir}; 47cdf0e10cSrcweir 48cdf0e10cSrcweirexception TestBridgeException : com::sun::star::uno::Exception 49cdf0e10cSrcweir{ 50cdf0e10cSrcweir 51cdf0e10cSrcweir}; 52cdf0e10cSrcweir 53cdf0e10cSrcweirinterface XCallMe : com::sun::star::uno::XInterface 54cdf0e10cSrcweir{ 55cdf0e10cSrcweir void call( [in] string s , [in] long nToDo ) raises( TestBridgeException ); 56cdf0e10cSrcweir [oneway] void callOneway( [in] string s , [in] long nToDo ); 57cdf0e10cSrcweir [attribute] string sAttribute; 58cdf0e10cSrcweir void callAgain( [in] XCallMe callAgain, [in] long nToCall ); 59cdf0e10cSrcweir TestTypes transport( [in] TestTypes types ); 60cdf0e10cSrcweir [oneway] void drawLine( [in] long x1 , [in] long y1, [in] long x2, [in] long y2 ); 61cdf0e10cSrcweir}; 62cdf0e10cSrcweir 63cdf0e10cSrcweirinterface XInterfaceTest : com::sun::star::uno::XInterface 64cdf0e10cSrcweir{ 65cdf0e10cSrcweir void setIn( [in] XCallMe callback ); 66cdf0e10cSrcweir void setInOut( [inout] XCallMe callback ); 67cdf0e10cSrcweir void getOut( [out] XCallMe callback ); 68cdf0e10cSrcweir XCallMe get(); 69cdf0e10cSrcweir}; 70cdf0e10cSrcweir 71cdf0e10cSrcweirinterface XTestFactory : com::sun::star::uno::XInterface 72cdf0e10cSrcweir{ 73cdf0e10cSrcweir XCallMe createCallMe(); 74cdf0e10cSrcweir XInterfaceTest createInterfaceTest(); 75cdf0e10cSrcweir}; 76cdf0e10cSrcweir 77cdf0e10cSrcweir 78cdf0e10cSrcweir}; 79