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: 1243
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"
Libreoffice 25.2… on Debian 13 (trixie) (on RaspberryPI5)
Libreoffice 25.8… flatpak on Debian 13 (trixie) (on RaspberryPI5)
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