To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=109515





------- Additional comments from [email protected] Wed Mar 17 10:46:42 +0000 
2010 -------
AW: Problem is a general one with properties for group-like objects (Groups and
3D Scenes). Their StyleSheet handling implementations work by looking for
StyleSheets at the child objects for get, and by setting at all childs for set.
This works well, but handling more complicated things like migrating the
ItemPool (exactly this happens at copy/paste several times) and others may set a
StyleSheet at the group-like object which is wrong.
To avoid this it would be possible to have derivations from
sdr::properties::BaseProperties for Group and 3DScene which do special things
when a StyleSheet exists (from derivation level AttributeProperties). This would
be hard and complicated (e.g. 3DScene attributes also need a local ItemSet for
scene-specific attributes; the copy constructor needs to know in derivation
level AttributeProperties to not 'copy' the style, etc). Simpler is to use on
level AttributeProperties the knowledge if it's a group-like object by using
SdrObject::IsGroupObject() to ask.
There are also some places where currently GetStyleSheet() is used, but
mpStyleSheet should be used since GetStyleSheet() may return a null pointer.

Changing, testing....

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to