[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Shape Container
From:       Johannes Simon <johannes.simon () gmail ! com>
Date:       2008-01-05 13:46:10
Message-ID: 1199540770.6508.16.camel () Speedstar
[Download RAW message or body]

Am Freitag, den 04.01.2008, 22:34 -0800 schrieb Michael Fair:
> In general, a compound shape idea seems like it will ultimately cause 
> limitations down the line.  It seems reasonable to me that all shapes could 
> have children and children are not necessarily constrained by the window of 
> their parent.

Exactly. It will be easy for us to implement an option that makes the
chart's elements "float", because it's left to us (subclassing the
KoShapeContainer class) whether the parent shape (being the compound
shape) clips its children or not. This option, though, should be turned
off by default - because of the needed compatability between OOo and
KOffice. If the chart's children are not clipped and outside of the
chart's frame in KOffice, saved to ODF, and loaded with OOo, they
probably won't be visible (not sure how OOo handles this case).

> 2) A shape property called "lock position" causes the child shape to remain 
> in place when the parent moves.

If the "float" option is set, This should not be hard, as we could do it
exactly the way you described it. When the parent container is moved,
its children (with their position relative to the parent) are
automatically moved in the opposite direction so that they stay where
they are.

- Joh

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic