How to add OnDoubleClick event listener on XSpreadsheet

Discussions about using 3rd party extension with

How to add OnDoubleClick event listener on XSpreadsheet

Postby chdw » Thu Jun 04, 2015 11:43 am

In my addon, I can retrieve XSpreadsheet obj by

Object desktopObj = context.getServiceManager().createInstanceWithContext("", context);
XDesktop desktop = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, desktopObj);
XComponent component = desktop.getCurrentComponent();
XSpreadsheetDocument spreadsheetDocument = UnoRuntime.queryInterface(XSpreadsheetDocument.class, component);
XSpreadsheets sheets = spreadsheetDocument.getSheets();
Object sheetObj = sheets.getByName(sheets.getElementNames()[0]);
XSpreadsheet sheet = UnoRuntime.queryInterface(XSpreadsheet.class, sheetObj);

But I can't find how to add an OnDoubleClick listener on sheet?

How can I do this?
OpenOffice 4.1.1 on Windows 8.1
Posts: 1
Joined: Thu Jun 04, 2015 11:36 am

Return to Extensions

Who is online

Users browsing this forum: No registered users and 2 guests