Here the answer to my own question :
Actually, the only object having the "addChartDataChangeEventListener"
method is the XChartData.
So, I just had to create a XChartData associated with a cell range
containing only a cell :
Reference< XCellRange > aCellRange =
getCellRangebyPosition(cellAddress.Column, cellAddress.Row,
cellAddress.Column, cellAddress.Row);
Reference< XChartData > xChartData (aCellRange, UNO_QUERY);
Maybe that could help someone.
Mikael
On Tue, 2007-02-20 at 21:51 +0100, Mikael De Bie wrote:
> Hello,
>
> Programming an add-on to openoffice in C++, I would like to add a
> listener to a cellAdress. I've found how to create it, but I don't find
> how to link it with the cell in C++.
>
> I've seen that a "addChartDataChangeEventListener(oListener)" exists But
> I can't apply this method to a CellAddress Object.
>
> In a macro, it is easily done (ex : for the A1 cell):
> oGroup=oSheet.getCellRangeByName("A1")
> oGroup.addChartDataChangeEventListener(oListener)
>
> Can somebody tell me how to do this link in C++ ?
>
> Thank you very much,
>
> Mikael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]