marginProps = propManager.getMarginProps();
borderProps = propManager.getBorderAndPadding();
height = fobj.getPropertyList().get(
- PR_BLOCK_PROGRESSION_DIMENSION | CP_OPTIMUM).getLength();
+ PR_BLOCK_PROGRESSION_DIMENSION).getLengthRange().getOptimum().getLength();
width = fobj.getPropertyList().get(
- PR_INLINE_PROGRESSION_DIMENSION | CP_OPTIMUM).getLength();
+ PR_INLINE_PROGRESSION_DIMENSION).getLengthRange().getOptimum().getLength();
}
public void setOverflow(int of) {
viewWidth = ipd.getValue();
}
}
- Length bpd = graphic.getPropertyList().get(PR_BLOCK_PROGRESSION_DIMENSION | CP_OPTIMUM).getLength();
+ Length bpd = graphic.getPropertyList().get(PR_BLOCK_PROGRESSION_DIMENSION).getLengthRange().getOptimum().getLength();
if (!bpd.isAuto()) {
viewHeight = bpd.getValue();
} else {
// this property does not apply when the line-height applies
// isn't the block-progression-dimension always in the same
// direction as the line height?
- len = ifoNode.getProperty(PR_BLOCK_PROGRESSION_DIMENSION | CP_OPTIMUM).getLength();
+ len = ifoNode.getProperty(PR_BLOCK_PROGRESSION_DIMENSION).getLengthRange().getOptimum().getLength();
if (!len.isAuto()) {
bpd = len.getValue();
} else {
}
}
- len = ifoNode.getProperty(PR_INLINE_PROGRESSION_DIMENSION | CP_OPTIMUM).getLength();
+ len = ifoNode.getProperty(PR_INLINE_PROGRESSION_DIMENSION).getLengthRange().getOptimum().getLength();
if (!len.isAuto()) {
ipd = len.getValue();
} else {
private MinOptMax getLeaderAllocIPD(int ipd) {
// length of the leader
- int opt = ldrNode.getLength(PR_LEADER_LENGTH | CP_OPTIMUM, ipd);
- int min = ldrNode.getLength(PR_LEADER_LENGTH | CP_MINIMUM, ipd);
- int max = ldrNode.getLength(PR_LEADER_LENGTH | CP_MAXIMUM, ipd);
+ int opt = ldrNode.getLength(ldrNode.getProperty(PR_LEADER_LENGTH).getLengthRange().getOptimum().getLength(), ipd);
+ int min = ldrNode.getLength(ldrNode.getProperty(PR_LEADER_LENGTH).getLengthRange().getMinimum().getLength(), ipd);
+ int max = ldrNode.getLength(ldrNode.getProperty(PR_LEADER_LENGTH).getLengthRange().getMaximum().getLength(), ipd);
return new MinOptMax(min, opt, max);
}
//need to set a default width
//check for keep-together row attribute
- if ((p = fobj.getProperty(Constants.PR_KEEP_TOGETHER | Constants.CP_WITHIN_PAGE)) != null) {
+ if ((p = fobj.getProperty(Constants.PR_KEEP_TOGETHER).getKeep().getWithinPage()) != null) {
attrib.set(ITableAttributes.ROW_KEEP_TOGETHER);
}