Cell Selection ChangeEvent in Calc

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
jayaramu
Posts: 15
Joined: Mon Mar 13, 2017 9:09 am

Cell Selection ChangeEvent in Calc

Post by jayaramu »

Hi,
I need to find cell address when user change selection of cell.
Ex: If cursor current position "A1" if user change selection to "C5". here I need to identify and print the cursor current position is C5. Please any one help for this problem.
Openoffice 4.1.3 on Windows
User avatar
karolus
Volunteer
Posts: 1158
Joined: Sat Jul 02, 2011 9:47 am

Re: Cell Selection ChangeEvent in Calc

Post by karolus »

Hallo

for Example:

Code: Select all

def selection_changed(event):
    event.String = event.AbsoluteName
bind to sheet-event "Selection has changed"
AOO4, Libreoffice 6.1 on Rasbian OS (on ARM)
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 7.6 flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
jayaramu
Posts: 15
Joined: Mon Mar 13, 2017 9:09 am

Re: Cell Selection ChangeEvent in Calc

Post by jayaramu »

Hi. Thank you for reply. Sorry I forgot to mention Technology. Am using Java. Can you please give some example in Java. Thank you.
Openoffice 4.1.3 on Windows
Post Reply