> Ok! Apparently the inset has to tell its parent that it has changed. Perhaps 
> Jürgen can tell us how to go about this?

Well I guess I have to see how to do it myself too I thought that one
could call setUpdateStatus but that does not work because we don't have
that function inside inset.h only in insettext.h (well one could do
a cast as all container-insets are for now textinsets.

IMO a better solution for this should be a ContainerInset() which is a
UpdatableInset() which can contain other insets and all insets who contain
other insets should be of that basetype.

The problem is if Inset::UpdatableInset::ContainerInset() should be the
owner of an inset we would have to declare the owner_ member variable in
inset.h as ContainerInset * owner_ is this possible?

Having the ContainerInset we could put there all the functions we now have
inside UpdatableInset and Inset make a static functions isContainerInset()
and so we could be able to cast any Inset * pointer to ContainerInset and
use that functions if it's needed. That would remove a whole bunch of
functions out of Inset and UpdatableInset who are ONLY needed for insets
inside insets.

What are the thoughts on this?

        Jug

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

If they can make penicillin out of moldy bread, they can sure make
something out of you.
                -- Muhammad Ali

Reply via email to