Hi, Im trying to create a add-in function with Java that gets the value of a cell in a Spreadsheet document, query values on my DB and sets the results in a cell range of this same document. My question is: How can I get the reference of a com.sun.star.sheet.XSpreadsheetDocument that's calling the add-in function to manipulate the cells inside the method that's represents my add-in function? See the method body:

public String getNomeAcao(com.sun.star.beans.XPropertySet xOptions, String acao) {
// I need a com.sun.star.sheet.XSpreadsheetDocument referende here :'(
return acao.substring(0, acao.length()-1);
}


And my interface definition:

#ifndef _BR_COM_VALORIZA_ADDINOO_GRAFICOCOTACOES_IDL_
#define _BR_COM_VALORIZA_ADDINOO_GRAFICOCOTACOES_IDL__

#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/beans/XPropertySet.idl>

module br {
   module com {
       module valoriza {
           module addinoo {
               module graficocotacoes {

interface XAddinGraficoCotacoes : com::sun::star::uno::XInterface {
string getNomeAcao([in] com::sun::star::beans::XPropertySet xOptions, [in] string acao);
};


service AddinGraficoCotacoes {
interface XAddinGraficoCotacoes; };


               };
           };
       };
   };
};

#endif

[]s

Ary Junior

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to