Re: [api-dev] How to get the XModifyBroadcaster from Cell/CellRange/Table]
FYI: I used the TableCellTextBinding class (from the SDK examples directory) to get the desired behavior. I did vote for the issue. Hopefully it would be fixed soon. Anupam. --- On Mon, 11/10/08, Peter Eberlein <[EMAIL PROTECTED]> wrote: > From: Peter Eberlein <[EMAIL PROTECTED]> > Subject: Re: [api-dev] How to get the XModifyBroadcaster from > Cell/CellRange/Table] > To: dev@api.openoffice.org > Date: Monday, November 10, 2008, 3:04 PM > Hi, > > Agnisys schrieb: > > Hi, > %< > > All I need is to detect that a cell value in a table > has changed in a Writer document. > > > For that case it would be enough to use the > com.sun.star.chart.XChartDataChangeEventListener, but be > aware of issue > http://qa.openoffice.org/issues/show_bug.cgi?id=79127. > > Consider voting for it or bringing it to > [EMAIL PROTECTED], > > Regards > > Peter > > > - > 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]
Re: [api-dev] How to get the XModifyBroadcaster from Cell/CellRange/Table]
Hi, Agnisys schrieb: Hi, %< All I need is to detect that a cell value in a table has changed in a Writer document. For that case it would be enough to use the com.sun.star.chart.XChartDataChangeEventListener, but be aware of issue http://qa.openoffice.org/issues/show_bug.cgi?id=79127. Consider voting for it or bringing it to [EMAIL PROTECTED], Regards Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to get the XModifyBroadcaster from Cell/CellRange/Table]
Hi, I have a table in a Writer document. How do I get to the XModifyBroadcaster interface from that? I don't mind using unpublished interface. According to the documentation I can get the interface from XTable, but that is not in the com.sun.star.table package. Maybe I'm confusing it too much. All I need is to detect that a cell value in a table has changed in a Writer document. Thanks for replying, Christoph. Anupam. --- On Sat, 11/8/08, Christoph Jopp <[EMAIL PROTECTED]> wrote: > From: Christoph Jopp <[EMAIL PROTECTED]> > Subject: Re: [api-dev] How to get the XModifyBroadcaster from > Cell/CellRange/Table] > To: dev@api.openoffice.org > Date: Saturday, November 8, 2008, 7:59 PM > Hi, > > you can use unpublished interfaces - you just can't be > sure that they > are not changed later and thus could possibly break your > code. > > I hope I understood your question right? > > > In case of the XModifyBroadcaster, you have to implement an > XModifyListener and register it at an XModifyBroadcaster > interface that > you can query from a service that implements XModifiable. > In your case the SpreadsheetDocument. > > f.e.: > > XSpreadSheetDocument mySpreadSheetDocument; > > XModifyBroadcaster xModifyBroadcaster = > (XModifyBroadcaster) > UnoRuntime.queryInterface( > XModifyBroadcaster.class, > mySpreadSheetDocument); > > xModifyBroadcaster.addModifyListener(new > ModifyListener()); > > > > Hope that helps > > Christoph > > > Hi, > > I need to add a value change listener on a Table > cell. I've looked at some past postings where the > XModifyBroadcaster was mentioned. How do I get this > interface? > > The documentation says one can get it from > com.sun.star.table.XTable but that is unpublished interface. > Is there a way to use unpublished interfaces? > > > > Thanks, > > Anupam > > > > _ > > Using OO 2.4, NetBeans6.1, Java 1.6u6 > > > > > - > > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to get the XModifyBroadcaster from Cell/CellRange/Table]
Hi, you can use unpublished interfaces - you just can't be sure that they are not changed later and thus could possibly break your code. I hope I understood your question right? In case of the XModifyBroadcaster, you have to implement an XModifyListener and register it at an XModifyBroadcaster interface that you can query from a service that implements XModifiable. In your case the SpreadsheetDocument. f.e.: XSpreadSheetDocument mySpreadSheetDocument; XModifyBroadcaster xModifyBroadcaster = (XModifyBroadcaster) UnoRuntime.queryInterface( XModifyBroadcaster.class, mySpreadSheetDocument); xModifyBroadcaster.addModifyListener(new ModifyListener()); Hope that helps Christoph > Hi, > I need to add a value change listener on a Table cell. I've looked at some > past postings where the XModifyBroadcaster was mentioned. How do I get this > interface? > The documentation says one can get it from com.sun.star.table.XTable but > that is unpublished interface. Is there a way to use unpublished interfaces? > > Thanks, > Anupam > > _ > Using OO 2.4, NetBeans6.1, Java 1.6u6 > > - > 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]