You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Антон Борисов <an...@gmail.com> on 2013/03/14 23:51:26 UTC

PropertyChangeListener

Why this listener don't work for ConnectorShape's properties StartShape
EndShape?
So is there exists workaround?
-- 
Борисов Антон

Re: PropertyChangeListener

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Антон,

On Fri, Mar 15, 2013 at 02:51:26AM +0400, Антон Борисов wrote:
> Why this listener don't work for ConnectorShape's properties StartShape
> EndShape?

the base class of all shapes has an empty implementation
http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/svx/source/unodraw/unoshape.cxx#2054
you'll find this in several places, for example
https://issues.apache.org/ooo/show_bug.cgi?id=121263

I'm not sure if this is for performance issues, or simply a bug. I'm not
aware of this being reported, so please open a new bug, this will help
improve the API.

> So is there exists workaround?

add an old css::document::XEventListener at the document model, you'll
get notified of ShapeModified event, EventObject.Source is the shape;
something like the attached source.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina