xref: /trunk/main/stoc/test/testintrosp.idl (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_beans_XIntroTest_idl__
28#define __com_sun_star_beans_XIntroTest_idl__
29
30#ifndef __com_sun_star_uno_XInterface_idl__
31#include <com/sun/star/uno/XInterface.idl>
32#endif
33
34#ifndef __com_sun_star_beans_Property_idl__
35#include <com/sun/star/beans/Property.idl>
36#endif
37
38#ifndef __com_sun_star_beans_PropertyValue_idl__
39#include <com/sun/star/beans/PropertyValue.idl>
40#endif
41
42#ifndef __com_sun_star_uno_TypeClass_idl__
43#include <com/sun/star/uno/TypeClass.idl>
44#endif
45
46#ifndef __com_sun_star_beans_XPropertiesChangeListener_idl__
47#include <com/sun/star/beans/XPropertiesChangeListener.idl>
48#endif
49
50
51//=============================================================================
52
53module ModuleA
54{
55//module com { module sun { module star { module beans {
56
57//interface XPropertyChangeListener;
58//interface XPropertiesChangeListener;
59
60//=============================================================================
61/** This is a test interface for introspection.
62
63    <p>IMPORTANT: FOR TEST ONLY!
64
65    <p>The following interface is just for testing purposes. It will not
66    stay in the product. It is only used as an exportable test class,
67    i.e. for BASIC integration.
68
69    @deprecated
70*/
71interface XIntroTest: com::sun::star::uno::XInterface
72{
73    //-------------------------------------------------------------------------
74    /** contains the ID-String of the implementation.
75     */
76    [attribute] string  ObjectName;
77
78    //-------------------------------------------------------------------------
79    /** contains the first name of a person.
80     */
81    [readonly, attribute] string    FirstName;
82
83    //-------------------------------------------------------------------------
84    /** contains the last name of a person.
85     */
86    [readonly, attribute] string    LastName;
87
88    //-------------------------------------------------------------------------
89    /** contains the age of a person.
90     */
91    [readonly, attribute] short     Age;
92
93    //-------------------------------------------------------------------------
94    /** contains the number of children person has.
95     */
96    [attribute] short               ChildrenCount;
97
98    //-------------------------------------------------------------------------
99    /** contains a struct of type Property.
100     */
101    [attribute] com::sun::star::beans::Property         FirstStruct;
102
103    //-------------------------------------------------------------------------
104    /** contains a struct of type PropertyValue.
105     */
106    [attribute] com::sun::star::beans::PropertyValue    SecondStruct;
107
108    //-------------------------------------------------------------------------
109    /** Ausgabe-Methode
110    */
111    void writeln( [in] string Text );
112
113    //-------------------------------------------------------------------------
114    /** ...
115    */
116    long getDroenk();
117
118    //-------------------------------------------------------------------------
119    /** Weitere Introspection-Test-Objekt holen
120    */
121    XIntroTest getIntroTest();
122    //com::sun::star::beans::XIntroTest getIntroTest();
123
124    //-------------------------------------------------------------------------
125    /** !!! No property, because parameter exists
126    */
127    long getUps( [in] long l );
128
129    //-------------------------------------------------------------------------
130    /** ...
131    */
132    void setDroenk( [in] long l );
133
134    //-------------------------------------------------------------------------
135    /** ...
136    */
137    short getBla();
138
139    //-------------------------------------------------------------------------
140    /** !!! Not the set method for property Bla, because param type != return type.
141    */
142    void setBla( [in] long n );
143
144    //-------------------------------------------------------------------------
145    /** ...
146    */
147    short getBlub();
148
149    //-------------------------------------------------------------------------
150    /** ...
151    */
152    void setBlub( [in] short n );
153
154    //-------------------------------------------------------------------------
155    /** ...
156    */
157    short getGulp();
158
159    //-------------------------------------------------------------------------
160    /** !!! Not the set method for property Gulp, because return type != void.
161    */
162    short setGulp( [in] short n );
163
164    //-------------------------------------------------------------------------
165    /** ...
166    */
167    com::sun::star::uno::TypeClass getTypeClass( [in] short n );
168
169    //-------------------------------------------------------------------------
170    /** ...
171    */
172    void setTypeClass( [in] com::sun::star::uno::TypeClass t,
173             [in] double d1,
174             [in] double d2 );
175
176    //-------------------------------------------------------------------------
177    /**
178    */
179    sequence<string> getStrings();
180
181    //-------------------------------------------------------------------------
182    /** ...
183    */
184    void setStrings( [in] sequence<string> Strings );
185
186    //-------------------------------------------------------------------------
187    /** ...
188    */
189    void setStringsPerMethod( [in] sequence<string> Strings,
190             [in] short n );
191
192    //-------------------------------------------------------------------------
193    /**
194    */
195    sequence< sequence< sequence< short > > > getMultiSequence();
196
197    //-------------------------------------------------------------------------
198    /** ...
199    */
200    void setMultiSequence( [in] sequence< sequence< sequence< short > > > Seq );
201
202    //-------------------------------------------------------------------------
203    /**Add a PropertiesChangeListener
204    */
205    [oneway] void addPropertiesChangeListener( [in] sequence< string > PropertyNames,
206             [in] com::sun::star::beans::XPropertiesChangeListener Listener );
207
208    //-------------------------------------------------------------------------
209    /**Remove a PropertiesChangeListener
210    */
211    [oneway] void removePropertiesChangeListener( [in] com::sun::star::beans::XPropertiesChangeListener Listener );
212
213};
214
215//=============================================================================
216
217};
218//}; }; }; };
219
220#endif
221