Difference between revisions of "Documentation/DevGuide/Spreadsheets/Custom Functions"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Spreadsheet Documents) |
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Documentation/Developers Guide/Spreadsheet Documents) |
||
Line 17: | Line 17: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category:Documentation/ | + | [[Category:Documentation/Developer's Guide/Spreadsheet Documents]] |
Revision as of 10:23, 5 June 2008
The user-visible functions have to be implemented as defined in the interface. The spreadsheet application does the necessary conversions to pass the arguments. For example, floating point numbers are rounded if a function has integer arguments. To enable the application to find the functions, it is important that the component implements the com.sun.star.lang.XTypeProvider interface.
The getIncremented()
function from the example interface above can be implemented like this:
public int getIncremented( int nValue ) { return nValue + 1; }
Content on this page is licensed under the Public Documentation License (PDL). |