To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=70099
Issue #|70099
Summary|Reset to default backColor dont work in hierachical Ce
|ll Styles
Component|Spreadsheet
Version|OOo 2.0.4
Platform|All
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|ui
Assigned to|spreadsheet
Reported by|bart_aimar
------- Additional comments from [EMAIL PROTECTED] Wed Oct 4 07:15:21 -0700
2006 -------
Context: Calc - Hierarchical Cell stiles
Is impossible to clear at "Default" the BackColor of sons style
In other word:
The property BackGround Color is not cleared from the field "Contains" (in tab
"organizer" of window "Style and Formatting")
The problem is important only in intermediate style in hierarchy.
Example:
You have 4 cell styles (based on standard) organized in hierarchical way like:
Style_a
Style_b
Style_c
Style_d
If you change the backgroud color of Style_a, all the style assume this color.
If you change the color of Style_c, all the styles downstream take on this new
color.
If you apply "Standard" in the Style_c apparently the colors of downstream
Styles re-take the same color applied in Style_a.
But if you change the color of Style_a, the Style_c and the Style_d do not
change!
This because the field "Contains" (in tab "organizer" of window "Style and
Formatting") is not cleared in apply "standard"
This Macro my be a temporary workaround for the bug:
Execute the macro on a cell where the style is applied
Sub backGround_2_default()
oSheet = ThisComponent.Sheets.getByName(_
ThisComponent.currentcontroller.activesheet.name)
ocell = thiscomponent.currentselection()
sCellStyle = ocell.CellStyle
oMyStyleCell = Thiscomponent._
StyleFamilies.CellStyles.getByName(sCellStyle)
oMyStyleCell.setPropertyToDefault("CellBackColor")
END SUB
---------------------------------------------------------------------
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]