Mathias Bauer wrote:
I hope that I remember that correctly: if you caught the Doubleclick by
using the interfaces com.sun.star.awt.XUserInputInteraction (implemented
at the Controller object) and com.sun.star.awt.XMouseClickHandler
(retrieved by using the former interface) it could be possible that the
event can be "consumed" by your code so that the cell does not "see" the
double click. To achieve this you must return "true" in the mousePressed
*and* mouseReleased methods of your handler.
Thanks, with XUserInputInterception it was indeed possible to control
further behavior of with the return value of mousePressed and
mouseReleased. I now just return true on mousePressed when the cell
content matches the criteria, then OOo doesn't switch to edit mode anymore.
Niklas Nebel wrote:
> The result type of a formula in a cell is available with the property
> "FormulaResultType". If you want to calculate a single function, you can
> use the FunctionAccess service. Or you could open a hidden document.
The formulas are usually more complex and refer to addin functions too.
Afaik FunctionAccess only supports the basic functions (like MIN, MAX, etc.)
> The cell is just notified using its normal dependency mechanism, it
> doesn't keep a separate list of VolatileResults. As you probably know,
> it's up to the AddIn to return the same VolatileResult instance when
> called again with the same parameters.
But is there maybe some way to find a reference the other way round? The
VolatileResult keeps a list of listeners. If I get a reference to a cell
(for example during click events or similar) I could iterate through
each cached VolatileResult and check if the listeners are used for that
cell. I wasn't able to find any connection between the listener and the
cell (at least while looking at the published interfaces of the listener
object), but I guess there has to exist one.
Thanks so far to both of you :)
Andreas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]