INTEGRATION: CWS jl16 (1.1.2); FILE ADDED
2005/01/19 14:17:57 jl 1.1.2.1: #i38590# automated tests for generated cli types
This commit is contained in:
parent
a741a8ba04
commit
ed5641f559
431
cli_ure/qa/climaker/types.idl
Normal file
431
cli_ure/qa/climaker/types.idl
Normal file
@ -0,0 +1,431 @@
|
||||
/*************************************************************************
|
||||
*
|
||||
* $RCSfile: types.idl,v $
|
||||
*
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2005-09-23 11:52:04 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
*
|
||||
* - GNU Lesser General Public License Version 2.1
|
||||
* - Sun Industry Standards Source License Version 1.1
|
||||
*
|
||||
* Sun Microsystems Inc., October, 2000
|
||||
*
|
||||
* GNU Lesser General Public License Version 2.1
|
||||
* =============================================
|
||||
* Copyright 2000 by Sun Microsystems, Inc.
|
||||
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License version 2.1, as published by the Free Software Foundation.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
*
|
||||
* Sun Industry Standards Source License Version 1.1
|
||||
* =================================================
|
||||
* The contents of this file are subject to the Sun Industry Standards
|
||||
* Source License Version 1.1 (the "License"); You may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of the
|
||||
* License at http://www.openoffice.org/license.html.
|
||||
*
|
||||
* Software provided under this License is provided on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
||||
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
||||
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
||||
* See the License for the specific provisions governing your rights and
|
||||
* obligations concerning the Software.
|
||||
*
|
||||
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
||||
*
|
||||
* Copyright: 2000 by Sun Microsystems, Inc.
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): _______________________________________
|
||||
*
|
||||
*
|
||||
************************************************************************/
|
||||
|
||||
#include "com/sun/star/lang/ClassNotFoundException.idl"
|
||||
#include "com/sun/star/lang/IllegalAccessException.idl"
|
||||
#include "com/sun/star/uno/DeploymentException.idl"
|
||||
#include "com/sun/star/uno/Exception.idl"
|
||||
#include "com/sun/star/uno/RuntimeException.idl"
|
||||
#include "com/sun/star/uno/XInterface.idl"
|
||||
#include "com/sun/star/uno/XNamingService.idl"
|
||||
#include "com/sun/star/lang/XComponent.idl"
|
||||
module test { module cliure { module climaker {
|
||||
|
||||
enum Enum1 { VALUE1 = -100, VALUE2 = 100 };
|
||||
|
||||
enum Enum2 { VALUE0 = 0, VALUE1 = 1, VALUE2 = 2, VALUE4 = 4 };
|
||||
|
||||
struct Struct1 { long member1; };
|
||||
|
||||
struct PolyStruct<if,else> {
|
||||
if member1;
|
||||
long member2;
|
||||
};
|
||||
|
||||
interface XTest {
|
||||
boolean test();
|
||||
|
||||
[attribute, bound] long A1;
|
||||
[attribute, bound, readonly] long A2;
|
||||
[attribute] long A3 {
|
||||
get raises
|
||||
(com::sun::star::uno::Exception,
|
||||
com::sun::star::lang::ClassNotFoundException);
|
||||
set raises (com::sun::star::uno::RuntimeException);
|
||||
};
|
||||
[attribute, readonly] long A4 {
|
||||
get raises (com::sun::star::uno::DeploymentException);
|
||||
};
|
||||
|
||||
[oneway] void testOneway();
|
||||
|
||||
void testExceptions()
|
||||
raises( com::sun::star::uno::Exception,
|
||||
com::sun::star::lang::ClassNotFoundException);
|
||||
|
||||
|
||||
PolyStruct<char,long> testPolyStruct([in] PolyStruct<char, long> val);
|
||||
|
||||
|
||||
void inParameters([in] boolean aBool, [in] byte aByte, [in] short aShort,
|
||||
[in] unsigned short aUShort, [in] long aLong, [in] unsigned long aULong,
|
||||
[in] hyper aHyper, [in] unsigned hyper aUHyper, [in] float aFloat,
|
||||
[in] double aDouble, [in] char aChar, [in] string aString,
|
||||
[in] type aType, [in] any aAny, [in] Enum2 aEnum, [in] Struct1 aStruct,
|
||||
[in] com::sun::star::uno::XInterface aXInterface,
|
||||
[in] com::sun::star::lang::XComponent aXComponent,
|
||||
[in] sequence<boolean> seqBool);
|
||||
|
||||
void outParameters([out] boolean aBool, [out] byte aByte, [out] short aShort,
|
||||
[out] unsigned short aUShort, [out] long aLong, [out] unsigned long aULong,
|
||||
[out] hyper aHyper, [out] unsigned hyper aUHyper, [out] float aFloat,
|
||||
[out] double aDouble, [out] char aChar, [out] string aString,
|
||||
[out] type aType, [out] any aAny, [out] Enum2 aEnum, [out] Struct1 aStruct,
|
||||
[out] com::sun::star::uno::XInterface aXInterface,
|
||||
[out] com::sun::star::lang::XComponent aXComponent,
|
||||
[out] sequence<boolean> seqBool);
|
||||
|
||||
void inoutParameters([inout] boolean aBool, [inout] byte aByte, [inout] short aShort,
|
||||
[inout] unsigned short aUShort, [inout] long aLong,
|
||||
[inout] unsigned long aULong,
|
||||
[inout] hyper aHyper, [inout] unsigned hyper aUHyper,
|
||||
[inout] float aFloat,
|
||||
[inout] double aDouble, [inout] char aChar, [inout] string aString,
|
||||
[inout] type aType, [inout] any aAny, [inout] Enum2 aEnum,
|
||||
[inout] Struct1 aStruct,
|
||||
[inout] com::sun::star::uno::XInterface aXInterface,
|
||||
[inout] com::sun::star::lang::XComponent aXComponent,
|
||||
[inout] sequence<boolean> seqBool);
|
||||
boolean retBoolean();
|
||||
byte retByte();
|
||||
short retShort();
|
||||
unsigned short retUShort();
|
||||
long retLong();
|
||||
unsigned long retULong();
|
||||
hyper retHyper();
|
||||
unsigned hyper retUHyper();
|
||||
float retFloat();
|
||||
double retDouble();
|
||||
char retChar();
|
||||
string retString();
|
||||
type retType();
|
||||
any retAny();
|
||||
Enum2 retEnum();
|
||||
Struct1 retStruct1();
|
||||
com::sun::star::uno::XInterface retXInterface();
|
||||
com::sun::star::lang::XComponent retXComponent();
|
||||
sequence<boolean> retSeqBool();
|
||||
|
||||
[attribute] boolean attrBoolean;
|
||||
[attribute] byte attrByte;
|
||||
[attribute] short attrShort;
|
||||
[attribute] unsigned short attrUShort;
|
||||
[attribute] long attrLong;
|
||||
[attribute] unsigned long attrULong;
|
||||
[attribute] hyper attrHyper;
|
||||
[attribute] unsigned hyper attrUHyper;
|
||||
[attribute] float attrFloat;
|
||||
[attribute] double attrDouble;
|
||||
[attribute] char attrChar;
|
||||
[attribute] string attrString;
|
||||
[attribute] type attrType;
|
||||
[attribute] any attrAny;
|
||||
[attribute] Enum2 attrEnum2;
|
||||
[attribute] Struct1 attrStruct1;
|
||||
[attribute] com::sun::star::uno::XInterface attrXInterface;
|
||||
[attribute] com::sun::star::lang::XComponent attrXComponent;
|
||||
[attribute] sequence<boolean> attrSeqBoolean;
|
||||
};
|
||||
|
||||
typedef boolean Boolean;
|
||||
typedef byte Byte;
|
||||
typedef short Short;
|
||||
typedef unsigned short UnsignedShort;
|
||||
typedef long Long;
|
||||
typedef unsigned long UnsignedLong;
|
||||
typedef hyper Hyper;
|
||||
typedef unsigned hyper UnsignedHyper;
|
||||
typedef float Float;
|
||||
typedef double Double;
|
||||
typedef char Char;
|
||||
typedef string String;
|
||||
typedef type Type;
|
||||
typedef any Any;
|
||||
typedef Enum2 Enum;
|
||||
typedef Struct1 Struct;
|
||||
typedef com::sun::star::uno::XInterface XInterface;
|
||||
typedef com::sun::star::uno::XNamingService XNamingService;
|
||||
typedef com::sun::star::lang::XComponent XComponent;
|
||||
|
||||
typedef sequence< Boolean > SequenceBoolean;
|
||||
typedef sequence< Byte > SequenceByte;
|
||||
typedef sequence< Short > SequenceShort;
|
||||
typedef sequence< UnsignedShort > SequenceUnsignedShort;
|
||||
typedef sequence< Long > SequenceLong;
|
||||
typedef sequence< UnsignedLong > SequenceUnsignedLong;
|
||||
typedef sequence< Hyper > SequenceHyper;
|
||||
typedef sequence< UnsignedHyper > SequenceUnsignedHyper;
|
||||
typedef sequence< Float > SequenceFloat;
|
||||
typedef sequence< Double > SequenceDouble;
|
||||
typedef sequence< Char > SequenceChar;
|
||||
typedef sequence< String > SequenceString;
|
||||
typedef sequence< Type > SequenceType;
|
||||
typedef sequence< Any > SequenceAny;
|
||||
typedef sequence< Enum > SequenceEnum;
|
||||
typedef sequence< Struct > SequenceStruct;
|
||||
typedef sequence< XInterface > SequenceXInterface;
|
||||
typedef sequence< XNamingService > SequenceXNamingService;
|
||||
typedef sequence< XComponent > SequenceXComponent;
|
||||
|
||||
struct Struct2 {
|
||||
boolean p1;
|
||||
byte p2;
|
||||
short p3;
|
||||
unsigned short p4;
|
||||
long p5;
|
||||
unsigned long p6;
|
||||
hyper p7;
|
||||
unsigned hyper p8;
|
||||
float p9;
|
||||
double p10;
|
||||
char p11;
|
||||
string p12;
|
||||
type p13;
|
||||
any p14;
|
||||
Enum2 p15;
|
||||
Struct1 p16;
|
||||
com::sun::star::uno::XInterface p17;
|
||||
com::sun::star::uno::XNamingService p18;
|
||||
Boolean t1;
|
||||
Byte t2;
|
||||
Short t3;
|
||||
UnsignedShort t4;
|
||||
Long t5;
|
||||
UnsignedLong t6;
|
||||
Hyper t7;
|
||||
UnsignedHyper t8;
|
||||
Float t9;
|
||||
Double t10;
|
||||
Char t11;
|
||||
String t12;
|
||||
Type t13;
|
||||
Any t14;
|
||||
Enum t15;
|
||||
Struct t16;
|
||||
XInterface t17;
|
||||
XNamingService t18;
|
||||
sequence< boolean > a1;
|
||||
sequence< byte > a2;
|
||||
sequence< short > a3;
|
||||
sequence< unsigned short > a4;
|
||||
sequence< long > a5;
|
||||
sequence< unsigned long > a6;
|
||||
sequence< hyper > a7;
|
||||
sequence< unsigned hyper > a8;
|
||||
sequence< float > a9;
|
||||
sequence< double > a10;
|
||||
sequence< char > a11;
|
||||
sequence< string > a12;
|
||||
sequence< type > a13;
|
||||
sequence< any > a14;
|
||||
sequence< Enum2 > a15;
|
||||
sequence< Struct1 > a16;
|
||||
sequence< com::sun::star::uno::XInterface > a17;
|
||||
sequence< com::sun::star::uno::XNamingService > a18;
|
||||
sequence< sequence< boolean > > aa1;
|
||||
sequence< sequence< byte > > aa2;
|
||||
sequence< sequence< short > > aa3;
|
||||
sequence< sequence< unsigned short > > aa4;
|
||||
sequence< sequence< long > > aa5;
|
||||
sequence< sequence< unsigned long > > aa6;
|
||||
sequence< sequence< hyper > > aa7;
|
||||
sequence< sequence< unsigned hyper > > aa8;
|
||||
sequence< sequence< float > > aa9;
|
||||
sequence< sequence< double > > aa10;
|
||||
sequence< sequence< char > > aa11;
|
||||
sequence< sequence< string > > aa12;
|
||||
sequence< sequence< type > > aa13;
|
||||
sequence< sequence< any > > aa14;
|
||||
sequence< sequence< Enum2 > > aa15;
|
||||
sequence< sequence< Struct1 > > aa16;
|
||||
sequence< sequence< com::sun::star::uno::XInterface > > aa17;
|
||||
sequence< sequence< com::sun::star::uno::XNamingService > > aa18;
|
||||
sequence< SequenceBoolean > at1;
|
||||
sequence< SequenceByte > at2;
|
||||
sequence< SequenceShort > at3;
|
||||
sequence< SequenceUnsignedShort > at4;
|
||||
sequence< SequenceLong > at5;
|
||||
sequence< SequenceUnsignedLong > at6;
|
||||
sequence< SequenceHyper > at7;
|
||||
sequence< SequenceUnsignedHyper > at8;
|
||||
sequence< SequenceFloat > at9;
|
||||
sequence< SequenceDouble > at10;
|
||||
sequence< SequenceChar > at11;
|
||||
sequence< SequenceString > at12;
|
||||
sequence< SequenceType > at13;
|
||||
sequence< SequenceAny > at14;
|
||||
sequence< SequenceEnum > at15;
|
||||
sequence< SequenceStruct > at16;
|
||||
sequence< SequenceXInterface > at17;
|
||||
sequence< SequenceXNamingService > at18;
|
||||
};
|
||||
|
||||
service S1: XTest {
|
||||
create1();
|
||||
|
||||
create2([in] any... create2)
|
||||
raises (com::sun::star::uno::RuntimeException,
|
||||
com::sun::star::lang::ClassNotFoundException,
|
||||
com::sun::star::uno::Exception,
|
||||
com::sun::star::lang::IllegalAccessException,
|
||||
com::sun::star::uno::DeploymentException);
|
||||
|
||||
create3([in] sequence<any> S1)
|
||||
raises (com::sun::star::uno::RuntimeException,
|
||||
com::sun::star::lang::ClassNotFoundException,
|
||||
com::sun::star::lang::IllegalAccessException,
|
||||
com::sun::star::uno::DeploymentException);
|
||||
|
||||
create4([in] long javamaker, [in] long S1, [in] long create4);
|
||||
|
||||
create5(
|
||||
[in] boolean p1,
|
||||
[in] byte p2,
|
||||
[in] short p3,
|
||||
[in] unsigned short p4,
|
||||
[in] long p5,
|
||||
[in] unsigned long p6,
|
||||
[in] hyper p7,
|
||||
[in] unsigned hyper p8,
|
||||
[in] float p9,
|
||||
[in] double p10,
|
||||
[in] char p11,
|
||||
[in] string p12,
|
||||
[in] type p13,
|
||||
[in] any p14,
|
||||
[in] Enum2 p15,
|
||||
[in] Struct1 p16,
|
||||
[in] com::sun::star::uno::XInterface p17,
|
||||
[in] com::sun::star::lang::XComponent p18,
|
||||
[in] Boolean t1,
|
||||
[in] Byte t2,
|
||||
[in] Short t3,
|
||||
[in] UnsignedShort t4,
|
||||
[in] Long t5,
|
||||
[in] UnsignedLong t6,
|
||||
[in] Hyper t7,
|
||||
[in] UnsignedHyper t8,
|
||||
[in] Float t9,
|
||||
[in] Double t10,
|
||||
[in] Char t11,
|
||||
[in] String t12,
|
||||
[in] Type t13,
|
||||
[in] Any t14,
|
||||
[in] Enum t15,
|
||||
[in] Struct t16,
|
||||
[in] XInterface t17,
|
||||
[in] XComponent t18,
|
||||
[in] sequence< boolean > a1,
|
||||
[in] sequence< byte > a2,
|
||||
[in] sequence< short > a3,
|
||||
[in] sequence< unsigned short > a4,
|
||||
[in] sequence< long > a5,
|
||||
[in] sequence< unsigned long > a6,
|
||||
[in] sequence< hyper > a7,
|
||||
[in] sequence< unsigned hyper > a8,
|
||||
[in] sequence< float > a9,
|
||||
[in] sequence< double > a10,
|
||||
[in] sequence< char > a11,
|
||||
[in] sequence< string > a12,
|
||||
[in] sequence< type > a13,
|
||||
[in] sequence< any > a14,
|
||||
[in] sequence< Enum2 > a15,
|
||||
[in] sequence< Struct1 > a16,
|
||||
[in] sequence< com::sun::star::uno::XInterface > a17,
|
||||
[in] sequence< com::sun::star::lang::XComponent > a18,
|
||||
[in] sequence< sequence< boolean > > aa1,
|
||||
[in] sequence< sequence< byte > > aa2,
|
||||
[in] sequence< sequence< short > > aa3,
|
||||
[in] sequence< sequence< unsigned short > > aa4,
|
||||
[in] sequence< sequence< long > > aa5,
|
||||
[in] sequence< sequence< unsigned long > > aa6,
|
||||
[in] sequence< sequence< hyper > > aa7,
|
||||
[in] sequence< sequence< unsigned hyper > > aa8,
|
||||
[in] sequence< sequence< float > > aa9,
|
||||
[in] sequence< sequence< double > > aa10,
|
||||
[in] sequence< sequence< char > > aa11,
|
||||
[in] sequence< sequence< string > > aa12,
|
||||
[in] sequence< sequence< type > > aa13,
|
||||
[in] sequence< sequence< any > > aa14,
|
||||
[in] sequence< sequence< Enum2 > > aa15,
|
||||
[in] sequence< sequence< Struct1 > > aa16,
|
||||
[in] sequence< sequence< com::sun::star::uno::XInterface > > aa17,
|
||||
[in] sequence< sequence< com::sun::star::lang::XComponent > > aa18,
|
||||
[in] sequence< SequenceBoolean > at1,
|
||||
[in] sequence< SequenceByte > at2,
|
||||
[in] sequence< SequenceShort > at3,
|
||||
[in] sequence< SequenceUnsignedShort > at4,
|
||||
[in] sequence< SequenceLong > at5,
|
||||
[in] sequence< SequenceUnsignedLong > at6,
|
||||
[in] sequence< SequenceHyper > at7,
|
||||
[in] sequence< SequenceUnsignedHyper > at8,
|
||||
[in] sequence< SequenceFloat > at9,
|
||||
[in] sequence< SequenceDouble > at10,
|
||||
[in] sequence< SequenceChar > at11,
|
||||
[in] sequence< SequenceString > at12,
|
||||
[in] sequence< SequenceType > at13,
|
||||
[in] sequence< SequenceAny > at14,
|
||||
[in] sequence< SequenceEnum > at15,
|
||||
[in] sequence< SequenceStruct > at16,
|
||||
[in] sequence< SequenceXInterface > at17,
|
||||
[in] sequence< SequenceXComponent > at18);
|
||||
};
|
||||
|
||||
service S2: XTest;
|
||||
|
||||
service S3 { interface XTest; };
|
||||
|
||||
singleton S4: XTest;
|
||||
|
||||
singleton S5 { service S2; };
|
||||
|
||||
|
||||
}; }; };
|
Loading…
x
Reference in New Issue
Block a user