Difference between revisions of "Documentation/DevGuide/Spreadsheets/Custom Functions"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (1 revision(s))
m (Robot: Changing Category:Spreadsheet Documents)
Line 16: Line 16:
  
 
{{PDL1}}
 
{{PDL1}}
[[Category: Spreadsheet Documents]]
+
 
 +
[[Category:Documentation/Developers Guide/Spreadsheet Documents]]

Revision as of 09:46, 4 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).
Personal tools