Lines 62-68
public abstract class AbstractGraphics extends FObj
Link Here
|
62 |
private int scaling; |
62 |
private int scaling; |
63 |
private int textAlign; |
63 |
private int textAlign; |
64 |
private Length width; |
64 |
private Length width; |
|
|
65 |
private String role; // used for accessibility |
65 |
private String ptr; // used for accessibility |
66 |
private String ptr; // used for accessibility |
|
|
67 |
private String altText; |
66 |
// Unused but valid items, commented out for performance: |
68 |
// Unused but valid items, commented out for performance: |
67 |
// private CommonAccessibility commonAccessibility; |
69 |
// private CommonAccessibility commonAccessibility; |
68 |
// private CommonAural commonAural; |
70 |
// private CommonAural commonAural; |
Lines 98-103
public abstract class AbstractGraphics extends FObj
Link Here
|
98 |
height = pList.get(PR_HEIGHT).getLength(); |
100 |
height = pList.get(PR_HEIGHT).getLength(); |
99 |
id = pList.get(PR_ID).getString(); |
101 |
id = pList.get(PR_ID).getString(); |
100 |
ptr = pList.get(PR_X_PTR).getString(); // used for accessibility |
102 |
ptr = pList.get(PR_X_PTR).getString(); // used for accessibility |
|
|
103 |
role = pList.get(PR_ROLE).getString(); // used for accessibility |
101 |
inlineProgressionDimension = pList.get(PR_INLINE_PROGRESSION_DIMENSION).getLengthRange(); |
104 |
inlineProgressionDimension = pList.get(PR_INLINE_PROGRESSION_DIMENSION).getLengthRange(); |
102 |
keepWithNext = pList.get(PR_KEEP_WITH_NEXT).getKeep(); |
105 |
keepWithNext = pList.get(PR_KEEP_WITH_NEXT).getKeep(); |
103 |
keepWithPrevious = pList.get(PR_KEEP_WITH_PREVIOUS).getKeep(); |
106 |
keepWithPrevious = pList.get(PR_KEEP_WITH_PREVIOUS).getKeep(); |
Lines 107-113
public abstract class AbstractGraphics extends FObj
Link Here
|
107 |
textAlign = pList.get(PR_TEXT_ALIGN).getEnum(); |
110 |
textAlign = pList.get(PR_TEXT_ALIGN).getEnum(); |
108 |
width = pList.get(PR_WIDTH).getLength(); |
111 |
width = pList.get(PR_WIDTH).getLength(); |
109 |
if (getUserAgent().isAccessibilityEnabled()) { |
112 |
if (getUserAgent().isAccessibilityEnabled()) { |
110 |
String altText = pList.get(PR_X_ALT_TEXT).getString(); |
113 |
altText = pList.get(PR_X_ALT_TEXT).getString(); |
111 |
if (altText.equals("")) { |
114 |
if (altText.equals("")) { |
112 |
getFOValidationEventProducer().altTextMissing(this, getLocalName(), getLocator()); |
115 |
getFOValidationEventProducer().altTextMissing(this, getLocalName(), getLocator()); |
113 |
} |
116 |
} |