Custom Functions

From Apache OpenOffice Wiki
Jump to: navigation, search

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 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
In other languages