Lines 19-24
Link Here
|
19 |
|
19 |
|
20 |
package org.apache.fop.fo.expr; |
20 |
package org.apache.fop.fo.expr; |
21 |
|
21 |
|
|
|
22 |
import java.util.HashMap; |
23 |
import java.util.LinkedList; |
24 |
import java.util.List; |
25 |
|
26 |
import org.apache.xmlgraphics.util.UnitConv; |
27 |
|
22 |
import org.apache.fop.datatypes.Length; |
28 |
import org.apache.fop.datatypes.Length; |
23 |
import org.apache.fop.datatypes.LengthBase; |
29 |
import org.apache.fop.datatypes.LengthBase; |
24 |
import org.apache.fop.datatypes.Numeric; |
30 |
import org.apache.fop.datatypes.Numeric; |
Lines 31-40
Link Here
|
31 |
import org.apache.fop.fo.properties.Property; |
37 |
import org.apache.fop.fo.properties.Property; |
32 |
import org.apache.fop.fo.properties.StringProperty; |
38 |
import org.apache.fop.fo.properties.StringProperty; |
33 |
|
39 |
|
34 |
import java.util.HashMap; |
|
|
35 |
import java.util.LinkedList; |
36 |
import java.util.List; |
37 |
|
38 |
/** |
40 |
/** |
39 |
* Class to parse XSL-FO property expressions. |
41 |
* Class to parse XSL-FO property expressions. |
40 |
* This class is heavily based on the epxression parser in James Clark's |
42 |
* This class is heavily based on the epxression parser in James Clark's |
Lines 312-321
Link Here
|
312 |
if ("px".equals(unitPart)) { |
314 |
if ("px".equals(unitPart)) { |
313 |
//pass the ratio between target-resolution and |
315 |
//pass the ratio between target-resolution and |
314 |
//the default resolution of 72dpi |
316 |
//the default resolution of 72dpi |
|
|
317 |
float resolution = propInfo.getPropertyList().getFObj() |
318 |
.getUserAgent().getSourceResolution(); |
315 |
prop = FixedLength.getInstance( |
319 |
prop = FixedLength.getInstance( |
316 |
numPart, unitPart, |
320 |
numPart, unitPart, |
317 |
propInfo.getPropertyList().getFObj() |
321 |
UnitConv.IN2PT / resolution); |
318 |
.getUserAgent().getTargetResolution() / 72.0f); |
|
|
319 |
} else { |
322 |
} else { |
320 |
//use default resolution of 72dpi |
323 |
//use default resolution of 72dpi |
321 |
prop = FixedLength.getInstance(numPart, unitPart); |
324 |
prop = FixedLength.getInstance(numPart, unitPart); |