merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / sheet / XAddIn.idl
blob4623862c8331d1eac1f70249168a3e69327e99f9
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: XAddIn.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_XAddIn_idl__
32 #define __com_sun_star_sheet_XAddIn_idl__
34 #ifndef __com_sun_star_lang_XLocalizable_idl__
35 #include <com/sun/star/lang/XLocalizable.idl>
36 #endif
38 //=============================================================================
40 module com { module sun { module star { module sheet {
42 //=============================================================================
44 /** gives access to function descriptions and user-visible names.
46 published interface XAddIn: com::sun::star::lang::XLocalizable
48 //-------------------------------------------------------------------------
50 /** returns the internal function name for an user-visible name.
52 <p>The user-visible name of a function is the name shown to the
53 user. It may be translated to the current language of the AddIn,
54 so it is never stored in files. It should be a single word and is
55 used when entering or displaying formulas.</p>
57 <p>Attention: The method name contains a spelling error. Due to
58 compatibility reasons the name cannot be changed.</p>
60 @param aDisplayName
61 the user-visible name of a function.
63 @returns
64 the exact name of the method within its interface.
67 string getProgrammaticFuntionName( [in] string aDisplayName );
69 //-------------------------------------------------------------------------
71 /** returns the user-visible function name for an internal name.
73 <p>The user-visible name of a function is the name shown to the
74 user. It may be translated to the current language of the AddIn,
75 so it is never stored in files. It should be a single word and is
76 used when entering or displaying formulas.</p>
78 @param aProgrammaticName
79 is the exact name of a method within its interface.
81 @returns
82 the user-visible name of the specified function.
84 string getDisplayFunctionName( [in] string aProgrammaticName );
86 //-------------------------------------------------------------------------
88 /** returns the description of a function.
90 <p>The description is shown to the user when selecting functions.
91 It may be translated to the current language of the AddIn.</p>
93 @param aProgrammaticName
94 is the exact name of a method within its interface.
96 @returns
97 the description of the specified function.
99 string getFunctionDescription( [in] string aProgrammaticName );
101 //-------------------------------------------------------------------------
103 /** returns the user-visible name of the specified argument.
105 <p>The argument name is shown to the user when prompting for
106 arguments. It should be a single word and may be translated
107 to the current language of the AddIn.</p>
109 @param aProgrammaticFunctionName
110 is the exact name of a method within its interface.
112 @param nArgument
113 the index of the argument (0-based).
115 @returns
116 the user-visible name of the specified argument.
118 string getDisplayArgumentName(
119 [in] string aProgrammaticFunctionName,
120 [in] long nArgument );
122 //-------------------------------------------------------------------------
124 /** returns the description of the specified argument.
126 <p>The argument description is shown to the user when prompting
127 for arguments. It may be translated to the current language of
128 the AddIn.</p>
130 @param aProgrammaticFunctionName
131 is the exact name of a method within its interface.
133 @param nArgument
134 the index of the argument (0-based).
136 @returns
137 the description of the specified argument.
139 string getArgumentDescription(
140 [in] string aProgrammaticFunctionName,
141 [in] long nArgument );
143 //-------------------------------------------------------------------------
145 /** returns the programmatic name of the category the function
146 belongs to.
148 <p>The category name is used to group similar functions together.
149 The programmatic category name should always be in English, it is
150 never shown to the user.
151 It should be one of the following names if the function falls into
152 the corresponding category.</p>
154 <dl>
155 <dt>Database</dt>
156 <dd>for functions that operate with data organized in tabular form
157 like databases.</dd>
159 <dt>Date&amp;Time</dt>
160 <dd>for functions that deal with date or time values.</dd>
162 <dt>Financial</dt>
163 <dd>for functions that solve financial problems.</dd>
165 <dt>Information</dt>
166 <dd>for functions that provide information about cells.</dd>
168 <dt>Logical</dt>
169 <dd>for functions that deal with logical expressions.</dd>
171 <dt>Mathematical</dt>
172 <dd>for mathematical functions.</dd>
174 <dt>Matrix</dt>
175 <dd>for matrix functions.</dd>
177 <dt>Statistical</dt>
178 <dd>for statistical functions.</dd>
180 <dt>Spreadsheet</dt>
181 <dd>for functions that deal with cell ranges.</dd>
183 <dt>Text</dt>
184 <dd>for functions that deal with text strings.</dd>
186 <dt>Add-In</dt>
187 <dd>for additional functions.</dd>
188 </dl>
190 @param aProgrammaticFunctionName
191 is the exact name of a method within its interface.
193 @returns
194 the category name the specified function belongs to.
196 string getProgrammaticCategoryName( [in] string aProgrammaticFunctionName );
198 //-------------------------------------------------------------------------
200 /** returns the user-visible name of the category the function
201 belongs to.
203 <p>This is used when category names are shown to the user.</p>
205 @param aProgrammaticFunctionName
206 is the exact name of a method within its interface.
208 @returns
209 the user-visible category name the specified function
210 belongs to.
212 string getDisplayCategoryName( [in] string aProgrammaticFunctionName );
216 //=============================================================================
218 }; }; }; };
220 #endif