1*408a4873SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*408a4873SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*408a4873SAndrew Rist * distributed with this work for additional information
6*408a4873SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*408a4873SAndrew Rist * "License"); you may not use this file except in compliance
9*408a4873SAndrew Rist * with the License.  You may obtain a copy of the License at
10*408a4873SAndrew Rist *
11*408a4873SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*408a4873SAndrew Rist *
13*408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*408a4873SAndrew Rist * software distributed under the License is distributed on an
15*408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*408a4873SAndrew Rist * KIND, either express or implied.  See the License for the
17*408a4873SAndrew Rist * specific language governing permissions and limitations
18*408a4873SAndrew Rist * under the License.
19*408a4873SAndrew Rist *
20*408a4873SAndrew Rist *************************************************************/
21*408a4873SAndrew Rist
22*408a4873SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_beans_XIntroTest_idl__
24cdf0e10cSrcweir#define __com_sun_star_beans_XIntroTest_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_beans_Property_idl__
31cdf0e10cSrcweir#include <com/sun/star/beans/Property.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_beans_PropertyValue_idl__
35cdf0e10cSrcweir#include <com/sun/star/beans/PropertyValue.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_uno_TypeClass_idl__
39cdf0e10cSrcweir#include <com/sun/star/uno/TypeClass.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir//=============================================================================
43cdf0e10cSrcweir
44cdf0e10cSrcweirmodule com { module sun { module star { module beans {
45cdf0e10cSrcweir
46cdf0e10cSrcweir published interface XPropertyChangeListener;
47cdf0e10cSrcweir published interface XPropertiesChangeListener;
48cdf0e10cSrcweir
49cdf0e10cSrcweir//=============================================================================
50cdf0e10cSrcweir/** This is a test interface for introspection.
51cdf0e10cSrcweir
52cdf0e10cSrcweir	@deprecated
53cdf0e10cSrcweir*/
54cdf0e10cSrcweirpublished interface XIntroTest: com::sun::star::uno::XInterface
55cdf0e10cSrcweir{
56cdf0e10cSrcweir	//-------------------------------------------------------------------------
57cdf0e10cSrcweir	/**	contains the ID-String of the implementation.
58cdf0e10cSrcweir	 */
59cdf0e10cSrcweir	[attribute] string	ObjectName;
60cdf0e10cSrcweir
61cdf0e10cSrcweir	//-------------------------------------------------------------------------
62cdf0e10cSrcweir	/**	contains the first name of a person.
63cdf0e10cSrcweir	 */
64cdf0e10cSrcweir	[readonly, attribute] string	FirstName;
65cdf0e10cSrcweir
66cdf0e10cSrcweir	//-------------------------------------------------------------------------
67cdf0e10cSrcweir	/**	contains the last name of a person.
68cdf0e10cSrcweir	 */
69cdf0e10cSrcweir	[readonly, attribute] string	LastName;
70cdf0e10cSrcweir
71cdf0e10cSrcweir	//-------------------------------------------------------------------------
72cdf0e10cSrcweir	/**	contains the age of a person.
73cdf0e10cSrcweir	 */
74cdf0e10cSrcweir	[readonly, attribute] short		Age;
75cdf0e10cSrcweir
76cdf0e10cSrcweir	//-------------------------------------------------------------------------
77cdf0e10cSrcweir	/**	contains the number of children person has.
78cdf0e10cSrcweir	 */
79cdf0e10cSrcweir	[attribute] short				ChildrenCount;
80cdf0e10cSrcweir
81cdf0e10cSrcweir	//-------------------------------------------------------------------------
82cdf0e10cSrcweir	/**	contains a struct of type <type>Property</type>.
83cdf0e10cSrcweir	 */
84cdf0e10cSrcweir	[attribute] com::sun::star::beans::Property			FirstStruct;
85cdf0e10cSrcweir
86cdf0e10cSrcweir	//-------------------------------------------------------------------------
87cdf0e10cSrcweir	/**	contains a struct of type <type>PropertyValue</type>.
88cdf0e10cSrcweir	 */
89cdf0e10cSrcweir	[attribute] com::sun::star::beans::PropertyValue	SecondStruct;
90cdf0e10cSrcweir
91cdf0e10cSrcweir	//-------------------------------------------------------------------------
92cdf0e10cSrcweir	/** output method.
93cdf0e10cSrcweir	*/
94cdf0e10cSrcweir	void writeln( [in] string Text );
95cdf0e10cSrcweir
96cdf0e10cSrcweir	//-------------------------------------------------------------------------
97cdf0e10cSrcweir	/** ...
98cdf0e10cSrcweir	*/
99cdf0e10cSrcweir	long getDroenk();
100cdf0e10cSrcweir
101cdf0e10cSrcweir	//-------------------------------------------------------------------------
102cdf0e10cSrcweir	/** gets another object with this interface.
103cdf0e10cSrcweir	*/
104cdf0e10cSrcweir	com::sun::star::beans::XIntroTest getIntroTest();
105cdf0e10cSrcweir
106cdf0e10cSrcweir	//-------------------------------------------------------------------------
107cdf0e10cSrcweir	/** !!! No property, because parameter exists
108cdf0e10cSrcweir	*/
109cdf0e10cSrcweir	long getUps( [in] long l );
110cdf0e10cSrcweir
111cdf0e10cSrcweir	//-------------------------------------------------------------------------
112cdf0e10cSrcweir	/** ...
113cdf0e10cSrcweir	*/
114cdf0e10cSrcweir	void setDroenk( [in] long l );
115cdf0e10cSrcweir
116cdf0e10cSrcweir	//-------------------------------------------------------------------------
117cdf0e10cSrcweir	/** ...
118cdf0e10cSrcweir	*/
119cdf0e10cSrcweir	short getBla();
120cdf0e10cSrcweir
121cdf0e10cSrcweir	//-------------------------------------------------------------------------
122cdf0e10cSrcweir	/** !!! Not the set method for property Bla, because param type != return type.
123cdf0e10cSrcweir	*/
124cdf0e10cSrcweir	void setBla( [in] long n );
125cdf0e10cSrcweir
126cdf0e10cSrcweir	//-------------------------------------------------------------------------
127cdf0e10cSrcweir	/** ...
128cdf0e10cSrcweir	*/
129cdf0e10cSrcweir	short getBlub();
130cdf0e10cSrcweir
131cdf0e10cSrcweir	//-------------------------------------------------------------------------
132cdf0e10cSrcweir	/** ...
133cdf0e10cSrcweir	*/
134cdf0e10cSrcweir	void setBlub( [in] short n );
135cdf0e10cSrcweir
136cdf0e10cSrcweir	//-------------------------------------------------------------------------
137cdf0e10cSrcweir	/** ...
138cdf0e10cSrcweir	*/
139cdf0e10cSrcweir	short getGulp();
140cdf0e10cSrcweir
141cdf0e10cSrcweir	//-------------------------------------------------------------------------
142cdf0e10cSrcweir	/** !!! Not the set method for property Gulp, because return type != void.
143cdf0e10cSrcweir	*/
144cdf0e10cSrcweir	short setGulp( [in] short n );
145cdf0e10cSrcweir
146cdf0e10cSrcweir	//-------------------------------------------------------------------------
147cdf0e10cSrcweir	/** ...
148cdf0e10cSrcweir	*/
149cdf0e10cSrcweir	com::sun::star::uno::TypeClass getTypeClass( [in] short n );
150cdf0e10cSrcweir
151cdf0e10cSrcweir	//-------------------------------------------------------------------------
152cdf0e10cSrcweir	/** ...
153cdf0e10cSrcweir	*/
154cdf0e10cSrcweir	void setTypeClass( [in] com::sun::star::uno::TypeClass t,
155cdf0e10cSrcweir			 [in] double d1,
156cdf0e10cSrcweir			 [in] double d2 );
157cdf0e10cSrcweir
158cdf0e10cSrcweir	//-------------------------------------------------------------------------
159cdf0e10cSrcweir	sequence<string> getStrings();
160cdf0e10cSrcweir
161cdf0e10cSrcweir	//-------------------------------------------------------------------------
162cdf0e10cSrcweir	/** ...
163cdf0e10cSrcweir	*/
164cdf0e10cSrcweir	void setStrings( [in] sequence<string> Strings );
165cdf0e10cSrcweir
166cdf0e10cSrcweir	//-------------------------------------------------------------------------
167cdf0e10cSrcweir	/** ...
168cdf0e10cSrcweir	*/
169cdf0e10cSrcweir	void setStringsPerMethod( [in] sequence<string> Strings,
170cdf0e10cSrcweir			 [in] short n );
171cdf0e10cSrcweir
172cdf0e10cSrcweir	//-------------------------------------------------------------------------
173cdf0e10cSrcweir	sequence< sequence< sequence< short > > > getMultiSequence();
174cdf0e10cSrcweir
175cdf0e10cSrcweir	//-------------------------------------------------------------------------
176cdf0e10cSrcweir	/** ...
177cdf0e10cSrcweir	*/
178cdf0e10cSrcweir	void setMultiSequence( [in] sequence< sequence< sequence< short > > > Seq );
179cdf0e10cSrcweir
180cdf0e10cSrcweir	//-------------------------------------------------------------------------
181cdf0e10cSrcweir	/** adds a listener which is called, when one of the specified properties
182cdf0e10cSrcweir		changes its value.
183cdf0e10cSrcweir
184cdf0e10cSrcweir       <p>It is suggested to allow multiple registration of the same listener,
185cdf0e10cSrcweir	    thus for each time a listener is added, it has to be removed.
186cdf0e10cSrcweir	*/
187cdf0e10cSrcweir	[oneway] void addPropertiesChangeListener( [in] sequence< string > PropertyNames,
188cdf0e10cSrcweir			 [in] XPropertiesChangeListener Listener );
189cdf0e10cSrcweir
190cdf0e10cSrcweir	//-------------------------------------------------------------------------
191cdf0e10cSrcweir	/** removes a listener.
192cdf0e10cSrcweir
193cdf0e10cSrcweir       <p>It is suggested to allow multiple registration of the same listener,
194cdf0e10cSrcweir	    thus for each time a listener is added, it has to be removed.
195cdf0e10cSrcweir	*/
196cdf0e10cSrcweir	[oneway] void removePropertiesChangeListener( [in] XPropertiesChangeListener Listener );
197cdf0e10cSrcweir
198cdf0e10cSrcweir};
199cdf0e10cSrcweir
200cdf0e10cSrcweir//=============================================================================
201cdf0e10cSrcweir
202cdf0e10cSrcweir}; }; }; };
203cdf0e10cSrcweir
204cdf0e10cSrcweir#endif
205