@@ -0,0 +1,1490 @@
+package org.eclipse.birt.report.engine.css.dom;%0D%0A%0D%0Aimport org.eclipse.birt.report.engine.content.IStyle;%0D%0Aimport org.w3c.dom.css.CSSValue;%0D%0A%0D%0A/**%0D%0A * FixedStyle is a fixed image of styles. It simply holds all the style references.%3Cbr%3E%0D%0A * It avoids the cache and cascade computing facility provided by the ComputedStyle, which leads to unwanted behavior.%3Cbr%3E%0D%0A * The main drawback of this class is the memory consumption, since no cache is used. Use it with caution.%0D%0A */%0D%0Apublic class FixedStyle extends AbstractStyle%0D%0A%7B%0D%0A%09%0D%0A%09private CSSValue%5B%5D values = new CSSValue%5BNUMBER_OF_STYLE%5D;%0D%0A%0D%0A%09public FixedStyle( AbstractStyle style )%0D%0A%09%7B%0D%0A%09%09super( style.engine );%0D%0A%09%09mergeStyle( style );%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * Merge style with current styles. New styles always overwrite the old ones, except the null values.%0D%0A%09 * @param style%0D%0A%09 */%0D%0A%09public void mergeStyle( IStyle style )%0D%0A%09%7B%0D%0A%09%09for(int i = 0; i %3C NUMBER_OF_STYLE; i++) %0D%0A%09%09%7B%0D%0A%09%09%09CSSValue value = style.getProperty(i);%0D%0A%09%09%09if(value != null)%0D%0A%09%09%09%7B%0D%0A%09%09%09%09values%5Bi%5D = style.getProperty( i );%09%09%09%09%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * One should never change the value returned, may cause obscure bugs.%0D%0A%09 */%0D%0A%09@Override%0D%0A%09public CSSValue getProperty( int index )%0D%0A%09%7B%0D%0A%09%09return values%5Bindex%5D;%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public void setProperty( int index, CSSValue value ) %0D%0A%09%7B%0D%0A%09%09values%5Bindex%5D = value;%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public boolean isEmpty( ) %0D%0A%09%7B%0D%0A%09%09for( CSSValue value : values )%0D%0A%09%09%7B%0D%0A%09%09%09if( value != null )%0D%0A%09%09%09%09return false;%0D%0A%09%09%7D%0D%0A%09%09return true;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Fix one total cell format will affect the other total cells when export to excel and enable pivot table. (T 50403)