1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XAddIn.idl,v $
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
>
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>
61 the user-visible name of a function.
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.
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.
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.
113 the index of the argument (0-based).
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
130 @param aProgrammaticFunctionName
131 is the exact name of a method within its interface.
134 the index of the argument (0-based).
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
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>
156 <dd>for functions that operate with data organized in tabular form
159 <dt>Date&Time</dt>
160 <dd>for functions that deal with date or time values.</dd>
163 <dd>for functions that solve financial problems.</dd>
166 <dd>for functions that provide information about cells.</dd>
169 <dd>for functions that deal with logical expressions.</dd>
171 <dt>Mathematical</dt>
172 <dd>for mathematical functions.</dd>
175 <dd>for matrix functions.</dd>
178 <dd>for statistical functions.</dd>
181 <dd>for functions that deal with cell ranges.</dd>
184 <dd>for functions that deal with text strings.</dd>
187 <dd>for additional functions.</dd>
190 @param aProgrammaticFunctionName
191 is the exact name of a method within its interface.
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
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.
209 the user-visible category name the specified function
212 string getDisplayCategoryName
( [in] string aProgrammaticFunctionName
);
216 //=============================================================================