Re: [Libreoffice] Notifications between different SfxObjectShells

2011-12-19 Thread Eike Rathke
Hi Markus,

On Monday, 2011-12-19 03:53:57 +0100, Markus Mohrhard wrote:

> I'm trying to improve calc's copy behavior but I'm a bit stuck with
> the last step. I need to get a notification if another document is
> being saved because I may need to adjust the reference to this
> document. I found already SfxEventHint which broadcasts all relevant
> information but only to the same SfxObjectShell while I need it in
> another shell.

As discussed on IRC ... from that broadcast a hint to another listener
that registered with the shell.

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD


pgpTBpOJPe5d4.pgp
Description: PGP signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Notifications between different SfxObjectShells

2011-12-18 Thread Markus Mohrhard
Hey,

I'm trying to improve calc's copy behavior but I'm a bit stuck with
the last step. I need to get a notification if another document is
being saved because I may need to adjust the reference to this
document. I found already SfxEventHint which broadcasts all relevant
information but only to the same SfxObjectShell while I need it in
another shell.

I can even write a SfxListener and register it in the other
SfxObjectShell if that helps. Is there already a solution for such
situations or do I need to write something myself?

Thanks,
Markus
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice