|
Lines 19-25
Link Here
|
| 19 |
import org.eclipse.birt.report.engine.content.ITextContent; |
19 |
import org.eclipse.birt.report.engine.content.ITextContent; |
| 20 |
import org.eclipse.birt.report.engine.css.engine.StyleConstants; |
20 |
import org.eclipse.birt.report.engine.css.engine.StyleConstants; |
| 21 |
import org.eclipse.birt.report.engine.css.engine.value.FloatValue; |
21 |
import org.eclipse.birt.report.engine.css.engine.value.FloatValue; |
| 22 |
import org.eclipse.birt.report.engine.css.engine.value.birt.BIRTConstants; |
|
|
| 23 |
import org.eclipse.birt.report.engine.css.engine.value.css.CSSConstants; |
22 |
import org.eclipse.birt.report.engine.css.engine.value.css.CSSConstants; |
| 24 |
import org.eclipse.birt.report.engine.extension.IReportItemExecutor; |
23 |
import org.eclipse.birt.report.engine.extension.IReportItemExecutor; |
| 25 |
import org.eclipse.birt.report.engine.layout.area.impl.AbstractArea; |
24 |
import org.eclipse.birt.report.engine.layout.area.impl.AbstractArea; |
|
Lines 89-95
Link Here
|
| 89 |
// Derive the baseLevel from the parent content direction. |
88 |
// Derive the baseLevel from the parent content direction. |
| 90 |
if ( parent.content != null ) |
89 |
if ( parent.content != null ) |
| 91 |
{ |
90 |
{ |
| 92 |
if ( BIRTConstants.BIRT_RTL_VALUE.equals( parent.content |
91 |
if ( CSSConstants.CSS_RTL_VALUE.equals( parent.content |
| 93 |
.getComputedStyle( ).getDirection( ) ) ) |
92 |
.getComputedStyle( ).getDirection( ) ) ) |
| 94 |
baseLevel = Bidi.DIRECTION_RIGHT_TO_LEFT; |
93 |
baseLevel = Bidi.DIRECTION_RIGHT_TO_LEFT; |
| 95 |
} |
94 |
} |
|
Lines 211-217
Link Here
|
| 211 |
AbstractArea area = (AbstractArea) iter.next( ); |
210 |
AbstractArea area = (AbstractArea) iter.next( ); |
| 212 |
if(area instanceof TextArea) |
211 |
if(area instanceof TextArea) |
| 213 |
{ |
212 |
{ |
| 214 |
String text = ((TextArea)area).getText( ); |
213 |
// Do not flip the text here for all output formats. |
|
|
214 |
String text = ((TextArea)area).getText( false ); |
| 215 |
blanks[index] = text.split( " " ).length - 1; |
215 |
blanks[index] = text.split( " " ).length - 1; |
| 216 |
chars[index] = (text.length( )>1 ? (text.length( )-1): 0); |
216 |
chars[index] = (text.length( )>1 ? (text.length( )-1): 0); |
| 217 |
blankNumber += blanks[index]; |
217 |
blankNumber += blanks[index]; |
|
Lines 226-232
Link Here
|
| 226 |
AbstractArea child = (AbstractArea) it.next( ); |
226 |
AbstractArea child = (AbstractArea) it.next( ); |
| 227 |
if(child instanceof TextArea) |
227 |
if(child instanceof TextArea) |
| 228 |
{ |
228 |
{ |
| 229 |
String text = ((TextArea)child).getText( ); |
229 |
String text = ((TextArea)child).getText( false ); |
| 230 |
blanks[index] = text.split( " " ).length - 1; |
230 |
blanks[index] = text.split( " " ).length - 1; |
| 231 |
chars[index] = (text.length( )>1 ? (text.length( )-1): 0); |
231 |
chars[index] = (text.length( )>1 ? (text.length( )-1): 0); |
| 232 |
blankNumber += blanks[index]; |
232 |
blankNumber += blanks[index]; |