update dev300-m58
[ooovba.git] / offapi / com / sun / star / sheet / XCompatibilityNames.idl
blob664b95d3ce10a6b1862646db73f6b9353be9fd55
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XCompatibilityNames.idl,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_sheet_XCompatibilityNames_idl__
32 #define __com_sun_star_sheet_XCompatibilityNames_idl__
34 #ifndef __com_sun_star_sheet_LocalizedName_idl__
35 #include <com/sun/star/sheet/LocalizedName.idl>
36 #endif
38 //=============================================================================
40 module com { module sun { module star { module sheet {
42 //=============================================================================
44 /** gives access to the sequence of compatibility names for an Addin
45 function.
47 published interface XCompatibilityNames: com::sun::star::uno::XInterface
49 /** returns the compatibility names of the specified function.
51 <p>Compatibility names are localized names of AddIn functions that
52 are used to import files from other applications.</p>
54 <p>If on import a localized function name is read, this list of
55 compatibility names is used to find the internal name of the
56 function. The current locale may differ from the locale used in
57 the imported file, so the method
58 <member>XAddIn::getProgrammaticFuntionName</member> cannot be used
59 here.</p>
61 <p>The order inside the sequence of compatibility names is used to
62 prioritize the names. Initially the first compatibility name of
63 each function is compared to the imported name (each function may
64 provide a sequence of compatibility names - the first entry of all
65 sequences is used). If no entry is equal, the second entry of each
66 sequence is used and so on.</p>
68 <p>If a locale is not present in the sequence of compatibility names,
69 the first entry of the sequence is used. So the method should return
70 a sequence which contains first the entry representing the current
71 locale.<TRUE/></p>
73 @param aProgrammaticName
74 is the exact name of a method within its interface.
76 sequence< com::sun::star::sheet::LocalizedName >
77 getCompatibilityNames( [in] string aProgrammaticName );
80 //=============================================================================
82 }; }; }; };
84 #endif