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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Documentation/Developers Guide/Spreadsheet Documents)
m (FINAL VERSION FOR L10N)
Line 5: Line 5:
 
|NextPage=Documentation/DevGuide/Spreadsheets/Variable Results
 
|NextPage=Documentation/DevGuide/Spreadsheets/Variable Results
 
}}
 
}}
{{DISPLAYTITLE:Custom Functions}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Spreadsheets/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Custom Functions}}
 
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 <idl>com.sun.star.lang.XTypeProvider</idl> interface.
 
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 <idl>com.sun.star.lang.XTypeProvider</idl> interface.
  

Revision as of 10:34, 14 May 2009



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