diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-16 12:35:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-16 12:35:50 +0200 |
commit | 2217eefca975e202ce17c71f1a5b07bd588114a7 (patch) | |
tree | 3570feb40627bb80de77f3199c0497fbf22bb500 /odk | |
parent | 474db92a1ab4dd1265b01c6247eeb5570acf7608 (diff) |
Add back getMyFirst/SecondValue methods
...erroneously removed by 34bcf9b498bccb5c924f4cec850ff15d88df6f07 "java: remove
dead methods"
Change-Id: Ic8e34eadb0d2f4d6abaa7ee243788dfcdffa7d1f
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/java/Spreadsheet/CalcAddins.java | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/odk/examples/java/Spreadsheet/CalcAddins.java b/odk/examples/java/Spreadsheet/CalcAddins.java index afe636e13611..555ddde93642 100644 --- a/odk/examples/java/Spreadsheet/CalcAddins.java +++ b/odk/examples/java/Spreadsheet/CalcAddins.java @@ -89,11 +89,23 @@ public class CalcAddins { private static final short shortGETMYFIRSTVALUE = 0; private static final short shortGETMYSECONDVALUE = 1; +/** TO DO: + * This is where you implement all methods of your interface. The parameters have to + * be the same as in your IDL file and their types have to be the correct + * IDL-to-Java mappings of their types in the IDL file. + */ + public int getMyFirstValue( + com.sun.star.beans.XPropertySet xOptions + ) { + return 1; + } - - - - + public int getMySecondValue( + com.sun.star.beans.XPropertySet xOptions, + int intDummy + ) { + return( 2 + intDummy ); + } // Implement method from interface XServiceName public String getServiceName() { |