Re: [dev] current cursor position in XTable

2008-07-10 Thread Dinesh Chothe
Hey I got the solution for getting current active cell in spreadsheet. Its as following... com.sun.star.sheet.XSpreadsheetDocument rSheetDoc = (XSpreadsheetDocument) UnoRuntime.queryInterface(XSpreadsheetDocument.class,

Re: [dev] current cursor position in XTable

2008-07-09 Thread Dinesh Chothe
XTextViewCursorSupplier xViewCursorSupplier = ( XTextViewCursorSupplier )UnoRuntime.queryInterface ( XTextViewCursorSupplier.class, xTextDocument ); For getting current position from current document I did as above. Now while doing this same for

Re: [dev] current cursor position in XTable

2008-07-09 Thread Andrew Douglas Pitonyak
If only one cell is selected, then you can simply obtain the CurrentSelection property from the document. Things are more complicated if you must worry about multiple things being selected... it looks like you can also grab the selection property from the current controller. If you want only

Re: [dev] current cursor position in XTable

2008-07-08 Thread Andrew Douglas Pitonyak
Dinesh Chothe wrote: Hello, I want to get current position of cursor from documents XTable or XTextDocument also for calc I want to get current cells position. How do I? I am using OoSDK2.3 and java... I believe that the view cursor has a property TextTable and