xref: /trunk/main/stoc/test/testintrosp.idl (revision 3508ca0d)
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_beans_XIntroTest_idl__
24#define __com_sun_star_beans_XIntroTest_idl__
25
26#ifndef __com_sun_star_uno_XInterface_idl__
27#include <com/sun/star/uno/XInterface.idl>
28#endif
29
30#ifndef __com_sun_star_beans_Property_idl__
31#include <com/sun/star/beans/Property.idl>
32#endif
33
34#ifndef __com_sun_star_beans_PropertyValue_idl__
35#include <com/sun/star/beans/PropertyValue.idl>
36#endif
37
38#ifndef __com_sun_star_uno_TypeClass_idl__
39#include <com/sun/star/uno/TypeClass.idl>
40#endif
41
42#ifndef __com_sun_star_beans_XPropertiesChangeListener_idl__
43#include <com/sun/star/beans/XPropertiesChangeListener.idl>
44#endif
45
46
47//=============================================================================
48
49module ModuleA
50{
51//module com { module sun { module star { module beans {
52
53//interface XPropertyChangeListener;
54//interface XPropertiesChangeListener;
55
56//=============================================================================
57/** This is a test interface for introspection.
58
59	<p>IMPORTANT: FOR TEST ONLY!
60
61	<p>The following interface is just for testing purposes. It will not
62	stay in the product. It is only used as an exportable test class,
63	i.e. for BASIC integration.
64
65	@deprecated
66*/
67interface XIntroTest: com::sun::star::uno::XInterface
68{
69	//-------------------------------------------------------------------------
70	/**	contains the ID-String of the implementation.
71	 */
72	[attribute] string	ObjectName;
73
74	//-------------------------------------------------------------------------
75	/**	contains the first name of a person.
76	 */
77	[readonly, attribute] string	FirstName;
78
79	//-------------------------------------------------------------------------
80	/**	contains the last name of a person.
81	 */
82	[readonly, attribute] string	LastName;
83
84	//-------------------------------------------------------------------------
85	/**	contains the age of a person.
86	 */
87	[readonly, attribute] short		Age;
88
89	//-------------------------------------------------------------------------
90	/**	contains the number of children person has.
91	 */
92	[attribute] short				ChildrenCount;
93
94	//-------------------------------------------------------------------------
95	/**	contains a struct of type Property.
96	 */
97	[attribute] com::sun::star::beans::Property			FirstStruct;
98
99	//-------------------------------------------------------------------------
100	/**	contains a struct of type PropertyValue.
101	 */
102	[attribute] com::sun::star::beans::PropertyValue	SecondStruct;
103
104	//-------------------------------------------------------------------------
105	/** Ausgabe-Methode
106	*/
107	void writeln( [in] string Text );
108
109	//-------------------------------------------------------------------------
110	/** ...
111	*/
112	long getDroenk();
113
114	//-------------------------------------------------------------------------
115	/** Weitere Introspection-Test-Objekt holen
116	*/
117	XIntroTest getIntroTest();
118	//com::sun::star::beans::XIntroTest getIntroTest();
119
120	//-------------------------------------------------------------------------
121	/** !!! No property, because parameter exists
122	*/
123	long getUps( [in] long l );
124
125	//-------------------------------------------------------------------------
126	/** ...
127	*/
128	void setDroenk( [in] long l );
129
130	//-------------------------------------------------------------------------
131	/** ...
132	*/
133	short getBla();
134
135	//-------------------------------------------------------------------------
136	/** !!! Not the set method for property Bla, because param type != return type.
137	*/
138	void setBla( [in] long n );
139
140	//-------------------------------------------------------------------------
141	/** ...
142	*/
143	short getBlub();
144
145	//-------------------------------------------------------------------------
146	/** ...
147	*/
148	void setBlub( [in] short n );
149
150	//-------------------------------------------------------------------------
151	/** ...
152	*/
153	short getGulp();
154
155	//-------------------------------------------------------------------------
156	/** !!! Not the set method for property Gulp, because return type != void.
157	*/
158	short setGulp( [in] short n );
159
160	//-------------------------------------------------------------------------
161	/** ...
162	*/
163	com::sun::star::uno::TypeClass getTypeClass( [in] short n );
164
165	//-------------------------------------------------------------------------
166	/** ...
167	*/
168	void setTypeClass( [in] com::sun::star::uno::TypeClass t,
169			 [in] double d1,
170			 [in] double d2 );
171
172	//-------------------------------------------------------------------------
173	/**
174	*/
175	sequence<string> getStrings();
176
177	//-------------------------------------------------------------------------
178	/** ...
179	*/
180	void setStrings( [in] sequence<string> Strings );
181
182	//-------------------------------------------------------------------------
183	/** ...
184	*/
185	void setStringsPerMethod( [in] sequence<string> Strings,
186			 [in] short n );
187
188	//-------------------------------------------------------------------------
189	/**
190	*/
191	sequence< sequence< sequence< short > > > getMultiSequence();
192
193	//-------------------------------------------------------------------------
194	/** ...
195	*/
196	void setMultiSequence( [in] sequence< sequence< sequence< short > > > Seq );
197
198	//-------------------------------------------------------------------------
199	/**Add a PropertiesChangeListener
200	*/
201	[oneway] void addPropertiesChangeListener( [in] sequence< string > PropertyNames,
202			 [in] com::sun::star::beans::XPropertiesChangeListener Listener );
203
204	//-------------------------------------------------------------------------
205	/**Remove a PropertiesChangeListener
206	*/
207	[oneway] void removePropertiesChangeListener( [in] com::sun::star::beans::XPropertiesChangeListener Listener );
208
209};
210
211//=============================================================================
212
213};
214//}; }; }; };
215
216#endif
217