I am using XCellFormatRangesSupplier to get an enumeration of the
selected cells (Calc), something like this:

XController xController = xFrame.getController();
Object oRange = xController.getModel().getCurrentSelection();
com.sun.star.sheet.XCellFormatRangesSupplier xFormatSupp =
   (com.sun.star.sheet.XCellFormatRangesSupplier)
      UnoRuntime.queryInterface(
         com.sun.star.sheet.XCellFormatRangesSupplier.class, oRange);

It works fine if I select a continous range of cells (e.g. A1:C3), but I
select e.g. A1:A3 and C1:C3 (so 2 ranges), xFormatSupp is null.

Should that not be possible or am I doing something wrong? (I thought I
had it once work, but am not sure.)

Dietmar




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to