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


User aw changed the following:

                What    |Old value                 |New value
================================================================================
                      CC|''                        |'co'
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Fri Oct 20 04:24:00 -0700 
2006 -------
AW: Problem is complicated. There are some object properties which are different
from pool defaults, e.g for the text shape or for graphic (no border, no fill).
This is also the case for charactermode. Pool default is false, svx default is
true, sch uses pool default. In SvxShape::setAllPropertiesToDefault() there are
already exceptions for the graphic object in place.
There is also a mechanism for DefaultProperties to set some props different from
the pool default when the itemset is constructed, called 
ForceDefaultAttributes().
What happens here is that from setAllPropertiesToDefault() the character mode
prop (which is set from shape API object constructor) is reset to pool default.

There are two solutions:
(1) for some props, take them as 'construction-time' const props and implement
them as member at the object. This would work for charactermode, but not for
linestyle/fillstyle for graphic/OLE
(2) make setAllPropertiesToDefault() which uses ClearMergedItem(0L) to use
ForceDefaultAttributes() when whichID is 0L. This will solve the problem and
give a mechanism for similar problems. It will not work with ClearMergedItem -
calls with single whichIDs.

I tend to use (2) since it is a step in the right direction.

---------------------------------------------------------------------
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