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//=============================================================================
43
44module com { module sun { module star { module beans {
45
46 published interface XPropertyChangeListener;
47 published interface XPropertiesChangeListener;
48
49//=============================================================================
50/** This is a test interface for introspection.
51
52	@deprecated
53*/
54published interface XIntroTest: com::sun::star::uno::XInterface
55{
56	//-------------------------------------------------------------------------
57	/**	contains the ID-String of the implementation.
58	 */
59	[attribute] string	ObjectName;
60
61	//-------------------------------------------------------------------------
62	/**	contains the first name of a person.
63	 */
64	[readonly, attribute] string	FirstName;
65
66	//-------------------------------------------------------------------------
67	/**	contains the last name of a person.
68	 */
69	[readonly, attribute] string	LastName;
70
71	//-------------------------------------------------------------------------
72	/**	contains the age of a person.
73	 */
74	[readonly, attribute] short		Age;
75
76	//-------------------------------------------------------------------------
77	/**	contains the number of children person has.
78	 */
79	[attribute] short				ChildrenCount;
80
81	//-------------------------------------------------------------------------
82	/**	contains a struct of type <type>Property</type>.
83	 */
84	[attribute] com::sun::star::beans::Property			FirstStruct;
85
86	//-------------------------------------------------------------------------
87	/**	contains a struct of type <type>PropertyValue</type>.
88	 */
89	[attribute] com::sun::star::beans::PropertyValue	SecondStruct;
90
91	//-------------------------------------------------------------------------
92	/** output method.
93	*/
94	void writeln( [in] string Text );
95
96	//-------------------------------------------------------------------------
97	/** ...
98	*/
99	long getDroenk();
100
101	//-------------------------------------------------------------------------
102	/** gets another object with this interface.
103	*/
104	com::sun::star::beans::XIntroTest getIntroTest();
105
106	//-------------------------------------------------------------------------
107	/** !!! No property, because parameter exists
108	*/
109	long getUps( [in] long l );
110
111	//-------------------------------------------------------------------------
112	/** ...
113	*/
114	void setDroenk( [in] long l );
115
116	//-------------------------------------------------------------------------
117	/** ...
118	*/
119	short getBla();
120
121	//-------------------------------------------------------------------------
122	/** !!! Not the set method for property Bla, because param type != return type.
123	*/
124	void setBla( [in] long n );
125
126	//-------------------------------------------------------------------------
127	/** ...
128	*/
129	short getBlub();
130
131	//-------------------------------------------------------------------------
132	/** ...
133	*/
134	void setBlub( [in] short n );
135
136	//-------------------------------------------------------------------------
137	/** ...
138	*/
139	short getGulp();
140
141	//-------------------------------------------------------------------------
142	/** !!! Not the set method for property Gulp, because return type != void.
143	*/
144	short setGulp( [in] short n );
145
146	//-------------------------------------------------------------------------
147	/** ...
148	*/
149	com::sun::star::uno::TypeClass getTypeClass( [in] short n );
150
151	//-------------------------------------------------------------------------
152	/** ...
153	*/
154	void setTypeClass( [in] com::sun::star::uno::TypeClass t,
155			 [in] double d1,
156			 [in] double d2 );
157
158	//-------------------------------------------------------------------------
159	sequence<string> getStrings();
160
161	//-------------------------------------------------------------------------
162	/** ...
163	*/
164	void setStrings( [in] sequence<string> Strings );
165
166	//-------------------------------------------------------------------------
167	/** ...
168	*/
169	void setStringsPerMethod( [in] sequence<string> Strings,
170			 [in] short n );
171
172	//-------------------------------------------------------------------------
173	sequence< sequence< sequence< short > > > getMultiSequence();
174
175	//-------------------------------------------------------------------------
176	/** ...
177	*/
178	void setMultiSequence( [in] sequence< sequence< sequence< short > > > Seq );
179
180	//-------------------------------------------------------------------------
181	/** adds a listener which is called, when one of the specified properties
182		changes its value.
183
184       <p>It is suggested to allow multiple registration of the same listener,
185	    thus for each time a listener is added, it has to be removed.
186	*/
187	[oneway] void addPropertiesChangeListener( [in] sequence< string > PropertyNames,
188			 [in] XPropertiesChangeListener Listener );
189
190	//-------------------------------------------------------------------------
191	/** removes a listener.
192
193       <p>It is suggested to allow multiple registration of the same listener,
194	    thus for each time a listener is added, it has to be removed.
195	*/
196	[oneway] void removePropertiesChangeListener( [in] XPropertiesChangeListener Listener );
197
198};
199
200//=============================================================================
201
202}; }; }; };
203
204#endif
205