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,
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
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
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