return propertyList.get(propId).getLength().getValue();
}
+ /**
+ * Convenience method to quickly obtain the Constants class enumeration
+ * value of a property for this FO. Meaningful only for properties
+ * having an enumeration representation
+ * @param propId - the Constants ID of the desired property to obtain
+ * @return the enumeration value of the property value
+ */
+ public int getPropEnum(int propId) {
+ return propertyList.get(propId).getEnum();
+ }
+
/**
* @see org.apache.fop.fo.FONode#addChildNode(FONode)
*/
protected void setWritingMode() {
FObj p = findNearestAncestorGeneratingRAs(true, true);
this.propertyList.setWritingMode(
- p.getProperty(PR_WRITING_MODE).getEnum());
+ p.getPropEnum(PR_WRITING_MODE));
}
/**
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- this.span = this.propertyList.get(PR_SPAN).getEnum();
- this.wsTreatment =
- this.propertyList.get(PR_WHITE_SPACE_TREATMENT).getEnum();
- this.bWScollapse =
- (this.propertyList.get(PR_WHITE_SPACE_COLLAPSE).getEnum()
- == Constants.TRUE);
- this.lfTreatment =
- this.propertyList.get(PR_LINEFEED_TREATMENT).getEnum();
-
- this.align = this.propertyList.get(PR_TEXT_ALIGN).getEnum();
- this.alignLast =
- this.propertyList.get(PR_TEXT_ALIGN_LAST).getEnum();
- this.breakAfter = this.propertyList.get(PR_BREAK_AFTER).getEnum();
+ this.span = getPropEnum(PR_SPAN);
+ this.wsTreatment = getPropEnum(PR_WHITE_SPACE_TREATMENT);
+ this.bWScollapse = (getPropEnum(PR_WHITE_SPACE_COLLAPSE) == Constants.TRUE);
+ this.lfTreatment = getPropEnum(PR_LINEFEED_TREATMENT);
+ this.align = getPropEnum(PR_TEXT_ALIGN);
+ this.alignLast = getPropEnum(PR_TEXT_ALIGN_LAST);
+ this.breakAfter = getPropEnum(PR_BREAK_AFTER);
this.lineHeight = getPropLength(PR_LINE_HEIGHT);
this.startIndent = getPropLength(PR_START_INDENT);
this.endIndent = getPropLength(PR_END_INDENT);
this.spaceBefore = getPropLength(PR_SPACE_BEFORE | CP_OPTIMUM);
this.spaceAfter = getPropLength(PR_SPACE_AFTER | CP_OPTIMUM);
this.textIndent = getPropLength(PR_TEXT_INDENT);
- this.keepWithNext =
- this.propertyList.get(PR_KEEP_WITH_NEXT).getEnum();
-
+ this.keepWithNext = getPropEnum(PR_KEEP_WITH_NEXT);
this.blockWidows =
this.propertyList.get(PR_WIDOWS).getNumber().intValue();
this.blockOrphans =
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- this.span = this.propertyList.get(PR_SPAN).getEnum();
+ this.span = getPropEnum(PR_SPAN);
this.backgroundColor =
this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
*/
public void addLayoutManager(List list) {
BlockContainerLayoutManager blm = new BlockContainerLayoutManager(this);
- blm.setOverflow(getProperty(PR_OVERFLOW).getEnum());
+ blm.setOverflow(getPropEnum(PR_OVERFLOW));
list.add(blm);
}
public int computeXOffset (int ipd, int cwidth) {
int xoffset = 0;
- int ta = propertyList.get(PR_TEXT_ALIGN).getEnum();
+ int ta = getPropEnum(PR_TEXT_ALIGN);
switch (ta) {
case TextAlign.CENTER:
xoffset = (ipd - cwidth) / 2;
public int computeYOffset(int bpd, int cheight) {
int yoffset = 0;
- int da = propertyList.get(PR_DISPLAY_ALIGN).getEnum();
+ int da = getPropEnum(PR_DISPLAY_ALIGN);
switch (da) {
case DisplayAlign.BEFORE:
break;
// fo:leader specific properties
// determines the pattern of leader; allowed values: space, rule,dots, use-content
- leaderPattern = this.propertyList.get(PR_LEADER_PATTERN).getEnum();
+ leaderPattern = getPropEnum(PR_LEADER_PATTERN);
switch(leaderPattern) {
case LeaderPattern.SPACE:
// use Space
// the following properties only apply
// for leader-pattern = "rule"
ruleThickness = getPropLength(PR_RULE_THICKNESS);
- ruleStyle = propertyList.get(PR_RULE_STYLE).getEnum();
+ ruleStyle = getPropEnum(PR_RULE_STYLE);
break;
case LeaderPattern.DOTS:
break;
this.green = c.getGreen();
this.blue = c.getBlue();
- this.wrapOption = this.propertyList.get(PR_WRAP_OPTION).getEnum();
-
+ this.wrapOption = getPropEnum(PR_WRAP_OPTION);
getFOInputHandler().startPageNumber(this);
}
this.green = c.getGreen();
this.blue = c.getBlue();
- this.wrapOption = this.propertyList.get(PR_WRAP_OPTION).getEnum();
+ this.wrapOption = getPropEnum(PR_WRAP_OPTION);
this.refId = getPropString(PR_REF_ID);
if (this.refId.equals("")) {
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
this.retrieveClassName = getPropString(PR_RETRIEVE_CLASS_NAME);
- this.retrievePosition =
- this.propertyList.get(PR_RETRIEVE_POSITION).getEnum();
- this.retrieveBoundary =
- this.propertyList.get(PR_RETRIEVE_BOUNDARY).getEnum();
+ this.retrievePosition = getPropEnum(PR_RETRIEVE_POSITION);
+ this.retrieveBoundary = getPropEnum(PR_RETRIEVE_BOUNDARY);
}
/**
*/
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
- this.breakBefore = this.propertyList.get(PR_BREAK_BEFORE).getEnum();
- this.breakAfter = this.propertyList.get(PR_BREAK_AFTER).getEnum();
+ this.breakBefore = getPropEnum(PR_BREAK_BEFORE);
+ this.breakAfter = getPropEnum(PR_BREAK_AFTER);
this.spaceBefore = getPropLength(PR_SPACE_BEFORE | CP_OPTIMUM);
this.spaceAfter = getPropLength(PR_SPACE_AFTER | CP_OPTIMUM);
this.backgroundColor =
this.ipd = this.propertyList.get(
PR_INLINE_PROGRESSION_DIMENSION).getLengthRange();
this.height = getPropLength(PR_HEIGHT);
- this.bAutoLayout = (this.propertyList.get(
- PR_TABLE_LAYOUT).getEnum() == TableLayout.AUTO);
-
- this.omitHeaderAtBreak = this.propertyList.get(
- PR_TABLE_OMIT_HEADER_AT_BREAK).getEnum()
- == TableOmitHeaderAtBreak.TRUE;
- this.omitFooterAtBreak = this.propertyList.get(
- PR_TABLE_OMIT_FOOTER_AT_BREAK).getEnum()
- == TableOmitFooterAtBreak.TRUE;
+ this.bAutoLayout = (getPropEnum(PR_TABLE_LAYOUT) == TableLayout.AUTO);
+
+ this.omitHeaderAtBreak = getPropEnum(PR_TABLE_OMIT_HEADER_AT_BREAK)
+ == TableOmitHeaderAtBreak.TRUE;
+ this.omitFooterAtBreak = getPropEnum(PR_TABLE_OMIT_FOOTER_AT_BREAK)
+ == TableOmitFooterAtBreak.TRUE;
getFOInputHandler().startTable(this);
}
this.backgroundColor =
this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
- bSepBorders = (this.propertyList.get(PR_BORDER_COLLAPSE).getEnum()
- == BorderCollapse.SEPARATE);
+ bSepBorders = (getPropEnum(PR_BORDER_COLLAPSE) == BorderCollapse.SEPARATE);
calcBorders(propMgr.getBorderAndPadding());
// Vertical cell alignment
- verticalAlign = this.propertyList.get(PR_DISPLAY_ALIGN).getEnum();
+ verticalAlign = getPropEnum(PR_DISPLAY_ALIGN);
if (verticalAlign == DisplayAlign.AUTO) {
// Depends on all cells starting in row
bRelativeAlign = true;
- verticalAlign = this.propertyList.get(PR_RELATIVE_ALIGN).getEnum();
+ verticalAlign = getPropEnum(PR_RELATIVE_ALIGN);
} else {
bRelativeAlign = false; // Align on a per-cell basis
}
}
private void doSetup() {
- this.breakAfter = this.propertyList.get(PR_BREAK_AFTER).getEnum();
+ this.breakAfter = getPropEnum(PR_BREAK_AFTER);
this.backgroundColor =
this.propertyList.get(PR_BACKGROUND_COLOR).getColorType();
* object.
*/
protected void endOfNode() throws SAXParseException {
- src = this.propertyList.get(PR_SRC).getString();
- profileName = this.propertyList.get(PR_COLOR_PROFILE_NAME).getString();
- intent = this.propertyList.get(PR_RENDERING_INTENT).getEnum();
+ src = getPropString(PR_SRC);
+ profileName = getPropString(PR_COLOR_PROFILE_NAME);
+ intent = getPropEnum(PR_RENDERING_INTENT);
this.propertyList = null;
}
validateParent(parent);
- this.pagePosition = this.propertyList.get(PR_PAGE_POSITION).getEnum();
- this.oddOrEven = this.propertyList.get(PR_ODD_OR_EVEN).getEnum();
- this.blankOrNotBlank = this.propertyList.get(PR_BLANK_OR_NOT_BLANK).getEnum();
+ this.pagePosition = getPropEnum(PR_PAGE_POSITION);
+ this.oddOrEven = getPropEnum(PR_ODD_OR_EVEN);
+ this.blankOrNotBlank = getPropEnum(PR_BLANK_OR_NOT_BLANK);
}
/**
// get the 'format' properties
this.pageNumberGenerator =
- new PageNumberGenerator(this.propertyList.get(PR_FORMAT).getString(),
+ new PageNumberGenerator(getPropString(PR_FORMAT),
this.propertyList.get(PR_GROUPING_SEPARATOR).getCharacter(),
this.propertyList.get(PR_GROUPING_SIZE).getNumber().intValue(),
- this.propertyList.get(PR_LETTER_VALUE).getEnum());
+ getPropEnum(PR_LETTER_VALUE));
- this.forcePageCount =
- this.propertyList.get(PR_FORCE_PAGE_COUNT).getEnum();
+ this.forcePageCount = getPropEnum(PR_FORCE_PAGE_COUNT);
// this.propertyList.get("country");
// this.propertyList.get("language");
/** Holds the writing mode */
protected int wm;
- protected int extent = 0;
-
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
protected Region(FONode parent) {
super(parent);
+ layoutMaster = (SimplePageMaster) parent;
}
/**
// regions may have name, or default
if (null == this.propertyList.get(PR_REGION_NAME)) {
setRegionName(getDefaultRegionName());
- } else if (this.propertyList.get(PR_REGION_NAME).getString().equals("")) {
+ } else if (getPropString(PR_REGION_NAME).equals("")) {
setRegionName(getDefaultRegionName());
} else {
- setRegionName(this.propertyList.get(PR_REGION_NAME).getString());
+ setRegionName(getPropString(PR_REGION_NAME));
// check that name is OK. Not very pretty.
if (isReserved(getRegionName())
&& !getRegionName().equals(getDefaultRegionName())) {
throw new SAXParseException("region-name '" + regionName
+ "' for " + this.getName()
- + " not permitted.", locator);
+ + " is not permitted.", locator);
}
}
- if (parent instanceof SimplePageMaster) {
- layoutMaster = (SimplePageMaster)parent;
- } else {
- throw new SAXParseException(this.getName() + " must be child "
- + "of simple-page-master, not "
- + parent.getName(), locator);
- }
- this.wm = this.propertyList.get(PR_WRITING_MODE).getEnum();
-
- // this.propertyList.get("clip");
- // this.propertyList.get("display-align");
- this.overflow = this.propertyList.get(PR_OVERFLOW).getEnum();
+ this.wm = getPropEnum(PR_WRITING_MODE);
+ this.overflow = getPropEnum(PR_OVERFLOW);
}
/**
this.regionName = name;
}
- /**
- * Returns the page master associated with this region.
- * @return a simple-page-master
- */
- protected SimplePageMaster getPageMaster() {
- return this.layoutMaster;
- }
-
/**
* Checks to see if a given region name is one of the reserved names
*
*/
protected Region getSiblingRegion(int regionId) {
// Ask parent for region
- return layoutMaster.getRegion(regionId);
- }
-
- /**
- * Indicates if this region gets precedence.
- * @return True if it gets precedence
- */
- public boolean getPrecedence() {
- return false;
- }
-
- public int getExtent() {
- return extent;
+ return layoutMaster.getRegion(regionId);
}
}
// Java
import java.awt.Rectangle;
+// XML
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXParseException;
+
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.datatypes.FODimension;
*/
public class RegionAfter extends RegionBA {
+ private int extent = 0;
+ private boolean precedence = false;
+
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
super(parent);
}
+ /**
+ * @see org.apache.fop.fo.FObj#addProperties
+ */
+ protected void addProperties(Attributes attlist) throws SAXParseException {
+ super.addProperties(attlist);
+ extent = getPropLength(PR_EXTENT);
+ precedence = (getPropEnum(PR_PRECEDENCE) == Precedence.TRUE);
+ }
+
+ /**
+ * Indicates if this region gets precedence.
+ * @return True if it gets precedence
+ */
+ public boolean getPrecedence() {
+ return precedence;
+ }
+
/**
* @see org.apache.fop.fo.pagination.Region#getViewportRectangle(FODimension)
*/
// Depends on extent, precedence ans writing mode
Rectangle vpRect;
if (this.wm == WritingMode.LR_TB || this.wm == WritingMode.RL_TB) {
- vpRect = new Rectangle(0, reldims.bpd - getExtent(), reldims.ipd, getExtent());
+ vpRect = new Rectangle(0, reldims.bpd - extent, reldims.ipd, extent);
} else {
- vpRect = new Rectangle(0, reldims.bpd - getExtent(), getExtent(), reldims.ipd);
+ vpRect = new Rectangle(0, reldims.bpd - extent, extent, reldims.ipd);
}
- if (getPrecedence() == false) {
+ if (precedence == false) {
adjustIPD(vpRect, this.wm);
}
return vpRect;
*/
public abstract class RegionBA extends Region {
- private boolean bPrecedence;
-
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
super(parent);
}
- protected void addProperties(Attributes attlist) throws SAXParseException {
- super.addProperties(attlist);
-
- bPrecedence =
- (this.propertyList.get(PR_PRECEDENCE).getEnum() == Precedence.TRUE);
-
- this.extent = getPropLength(PR_EXTENT);
- }
-
/**
- * @see org.apache.fop.fo.pagination.Region#getPrecedence()
+ * @see org.apache.fop.fo.FObj#addProperties
*/
- public boolean getPrecedence() {
- return bPrecedence;
+ protected void addProperties(Attributes attlist) throws SAXParseException {
+ super.addProperties(attlist);
}
/**
int offset = 0;
Region start = getSiblingRegion(FO_REGION_START);
if (start != null) {
- offset = start.getExtent();
+ offset = start.getPropLength(PR_EXTENT);
vpRefRect.translate(offset, 0);
}
Region end = getSiblingRegion(FO_REGION_END);
if (end != null) {
- offset += end.getExtent();
+ offset += end.getPropLength(PR_EXTENT);
}
if (offset > 0) {
if (wm == WritingMode.LR_TB || wm == WritingMode.RL_TB) {
// Java
import java.awt.Rectangle;
+// XML
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXParseException;
+
// FOP
import org.apache.fop.datatypes.FODimension;
import org.apache.fop.fo.FONode;
*/
public class RegionBefore extends RegionBA {
+ private int extent = 0;
+ private boolean precedence = false;
+
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
super(parent);
}
+ /**
+ * @see org.apache.fop.fo.FObj#addProperties
+ */
+ protected void addProperties(Attributes attlist) throws SAXParseException {
+ super.addProperties(attlist);
+ extent = getPropLength(PR_EXTENT);
+ precedence = (getPropEnum(PR_PRECEDENCE) == Precedence.TRUE);
+ }
+
+ /**
+ * Indicates if this region gets precedence.
+ * @return True if it gets precedence
+ */
+ public boolean getPrecedence() {
+ return precedence;
+ }
+
/**
* @see org.apache.fop.fo.pagination.Region#getDefaultRegionName()
*/
// ipd depends on precedence, bpd=extent
Rectangle vpRect;
if (this.wm == WritingMode.LR_TB || this.wm == WritingMode.RL_TB) {
- vpRect = new Rectangle(0, 0, reldims.ipd, getExtent());
+ vpRect = new Rectangle(0, 0, reldims.ipd, extent);
} else {
- vpRect = new Rectangle(0, 0, getExtent(), reldims.ipd);
+ vpRect = new Rectangle(0, 0, extent, reldims.ipd);
}
- if (getPrecedence() == false) {
+ if (precedence == false) {
adjustIPD(vpRect, this.wm);
}
return vpRect;
// Java
import java.awt.Rectangle;
+// XML
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXParseException;
+
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.datatypes.FODimension;
*/
public class RegionEnd extends RegionSE {
+ private int extent = 0;
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
super(parent);
}
+ /**
+ * @see org.apache.fop.fo.FObj#addProperties
+ */
+ protected void addProperties(Attributes attlist) throws SAXParseException {
+ super.addProperties(attlist);
+ extent = getPropLength(PR_EXTENT);
+ }
+
/**
* @see org.apache.fop.fo.pagination.Region#getViewportRectangle(FODimension)
*/
// Depends on extent, precedence and writing mode
Rectangle vpRect;
if (this.wm == WritingMode.LR_TB || this.wm == WritingMode.RL_TB) {
- vpRect = new Rectangle(reldims.ipd - getExtent(), 0,
- getExtent(), reldims.bpd);
+ vpRect = new Rectangle(reldims.ipd - extent, 0,
+ extent, reldims.bpd);
} else {
- vpRect = new Rectangle(reldims.ipd - getExtent(), 0,
- reldims.bpd, getExtent());
+ vpRect = new Rectangle(reldims.ipd - extent, 0,
+ reldims.bpd, extent);
}
adjustIPD(vpRect, this.wm);
return vpRect;
super(parent);
}
+ /**
+ * @see org.apache.fop.fo.FObj#addProperties
+ */
protected void addProperties(Attributes attlist) throws SAXParseException {
super.addProperties(attlist);
-
- this.extent = getPropLength(PR_EXTENT);
}
/**
*/
protected void adjustIPD(Rectangle vpRefRect, int wm) {
int offset = 0;
- Region before = getSiblingRegion(FO_REGION_BEFORE);
+ RegionBefore before = (RegionBefore) getSiblingRegion(FO_REGION_BEFORE);
if (before != null && before.getPrecedence()) {
- offset = before.getExtent();
+ offset = before.getPropLength(PR_EXTENT);
vpRefRect.translate(0, offset);
}
- Region after = getSiblingRegion(FO_REGION_AFTER);
+ RegionAfter after = (RegionAfter) getSiblingRegion(FO_REGION_AFTER);
if (after != null && after.getPrecedence()) {
- offset += after.getExtent();
+ offset += after.getPropLength(PR_EXTENT);
}
if (offset > 0) {
if (wm == WritingMode.LR_TB || wm == WritingMode.RL_TB) {
// Java
import java.awt.Rectangle;
+// XML
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXParseException;
+
// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.datatypes.FODimension;
*/
public class RegionStart extends RegionSE {
+ private int extent = 0;
+
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
super(parent);
}
+ /**
+ * @see org.apache.fop.fo.FObj#addProperties
+ */
+ protected void addProperties(Attributes attlist) throws SAXParseException {
+ super.addProperties(attlist);
+ extent = getPropLength(PR_EXTENT);
+ }
+
/**
* @see org.apache.fop.fo.pagination.Region#getViewportRectangle(FODimension)
*/
// writing-mode relative coordinates
Rectangle vpRect;
if (this.wm == WritingMode.LR_TB || this.wm == WritingMode.RL_TB) {
- vpRect = new Rectangle(0, 0, getExtent(), reldims.bpd);
+ vpRect = new Rectangle(0, 0, extent, reldims.bpd);
} else {
- vpRect = new Rectangle(0, 0, reldims.bpd, getExtent());
+ vpRect = new Rectangle(0, 0, reldims.bpd, extent);
}
adjustIPD(vpRect, this.wm);
return vpRect;
setup();
InlineArea area = getExternalGraphicInlineArea();
setCurrentArea(area);
- setAlignment(graphic.getProperty(PR_VERTICAL_ALIGN).getEnum());
+ setAlignment(graphic.getPropEnum(PR_VERTICAL_ALIGN));
setLead(viewHeight);
}
cwidth = cw.getValue();
}
- int scaling = graphic.getPropertyList().get(PR_SCALING).getEnum();
+ int scaling = graphic.getPropEnum(PR_SCALING);
if ((scaling == Scaling.UNIFORM) || (cwidth == -1) || cheight == -1) {
ImageFactory fact = ImageFactory.getInstance();
fopimage = fact.getImage(url, graphic.getUserAgent());
}
if (cwidth > viewWidth || cheight > viewHeight) {
- int overflow = graphic.getPropertyList().get(PR_OVERFLOW).getEnum();
+ int overflow = graphic.getPropEnum(PR_OVERFLOW);
if (overflow == Overflow.HIDDEN) {
clip = true;
} else if (overflow == Overflow.ERROR_IF_OVERFLOW) {
int xoffset = 0;
int yoffset = 0;
- int da = graphic.getPropertyList().get(PR_DISPLAY_ALIGN).getEnum();
+ int da = graphic.getPropEnum(PR_DISPLAY_ALIGN);
switch(da) {
case DisplayAlign.BEFORE:
break;
break;
}
- int ta = graphic.getPropertyList().get(PR_TEXT_ALIGN).getEnum();
+ int ta = graphic.getPropEnum(PR_TEXT_ALIGN);
switch(ta) {
case TextAlign.CENTER:
xoffset = (viewWidth - cwidth) / 2;
ifoNode = node;
Viewport areaCurrent = getInlineArea();
setCurrentArea(areaCurrent);
- setAlignment(node.getProperty(PR_VERTICAL_ALIGN).getEnum());
+ setAlignment(node.getPropEnum(PR_VERTICAL_ALIGN));
setLead(areaCurrent.getHeight());
}
if (cheight == -1) {
cheight = (int)size.getY() * 1000;
}
- int scaling = ifoNode.getProperty(PR_SCALING).getEnum();
+ int scaling = ifoNode.getPropEnum(PR_SCALING);
if (scaling == Scaling.UNIFORM) {
// adjust the larger
double rat1 = cwidth / (size.getX() * 1000f);
boolean clip = false;
if (cwidth > ipd || cheight > bpd) {
- int overflow = ifoNode.getProperty(PR_OVERFLOW).getEnum();
+ int overflow = ifoNode.getPropEnum(PR_OVERFLOW);
if (overflow == Overflow.HIDDEN) {
clip = true;
} else if (overflow == Overflow.ERROR_IF_OVERFLOW) {
super(node);
ldrNode = node;
font = node.getFontState();
- setAlignment(node.getProperty(PR_LEADER_ALIGNMENT).getEnum());
+ setAlignment(node.getPropEnum(PR_LEADER_ALIGNMENT));
}
public InlineArea get(LayoutContext context) {
private static void attrBlockTextAlign(FObj fobj, RtfAttributes rtfAttr) {
- int fopValue = fobj.getProperty(Constants.PR_TEXT_ALIGN).getEnum();
+ int fopValue = fobj.getPropEnum(Constants.PR_TEXT_ALIGN);
String rtfValue = null;
switch (fopValue) {
case Constants.CENTER: