A couple of problems with KoShapePaste
Dmitry Kazakov <[email protected]>
| Newsgroups | gmane.comp.kde.devel.koffice |
|---|---|
| Message-ID | <[email protected]> |
Hi, All!
I have a problem with KoShapePaste.
1) We have two way of adding a shape into the document. And both of them do
different things. I can't get what is the right way to do this.
a) We can simply add a shape to some other shape, that is already part
of the document
b) We can add a shape to the document using a shape controller
(KoShapeControllerBase)
As far as i understand, the variant b) implies the variant a), that is when
you add the shape to the controller, it is automatically added to some
parent shape. Is it so?
It brings the first question, why KoShapePaste::process() first sets the
parent of the shape (uses way a) ) and then adds the same shape into a
controller (using way b) )? Why can't it just add this shape to the
controller in the end of the function?
2) And one more question, if i add a shape using method a) to some other
shape that already is a part of some manager, will this shape be painted on
the screen (in a KoShapeManager) ?
3) And the last question, why KoShapePaste searches for "a nice place for
our shape" in the shape manager instead of a parental shape? I think it
would be more logical to search for collisions inside a parental shape? Or
there are some problem present?
--
Dmitry Kazakov
_______________________________________________
koffice-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/koffice-devel