import org.apache.fop.layoutmgr.TextLayoutManager;
/**
- * A text node in the formatting object tree.
+ * A text node (PCDATA) in the formatting object tree.
*
* Unfortunately the BufferManager implementatation holds
* onto references to the character data in this object
}
- /**
- * @todo rename somehow, there isn't an fo:text.
- * @todo see if should still be a subclass of FObj
- */
- public String getName() {
- return "fo:text";
- }
-
/**
* @see org.apache.fop.fo.FONode#addLayoutManager(List)
*/
*/
private boolean isOutOfLineFODescendant = false;
- /** Id of this fo element or null if no id. */
- protected String id = null;
-
/** Markers added to this element. */
protected Map markers = null;
* fo and sets the id attribute of this object.
*/
private void setupID() throws SAXParseException {
- Property prop = this.propertyList.get(PR_ID);
- if (prop != null) {
- String str = prop.getString();
- if (str != null && !str.equals("")) {
- Set idrefs = getFOEventHandler().getIDReferences();
- if (!idrefs.contains(str)) {
- id = str;
- idrefs.add(id);
- } else {
- throw new SAXParseException("Property id \"" + str +
- "\" previously used; id values must be unique" +
- " in document.", locator);
- }
+ String str = getPropString(PR_ID);
+ if (str != null && !str.equals("")) {
+ Set idrefs = getFOEventHandler().getIDReferences();
+ if (!idrefs.contains(str)) {
+ idrefs.add(str);
+ } else {
+ throw new SAXParseException("Property id \"" + str +
+ "\" previously used; id values must be unique" +
+ " in document.", locator);
}
}
}
return new Integer(0);
}
- /**
- * Get the id string for this formatting object.
- * This will be unique for the fo document.
- *
- * @return the id string or null if not set
- */
- public String getID() {
- return id;
- }
-
/**
* Check if this formatting object generates reference areas.
* @return true if generates reference areas
/**
* Base class for representation of mixed content formatting objects
- * and their processing
- * @todo define what a "mixed content formatting object" is
+ * (i.e., those that can contain both child FO's and text nodes/PCDATA)
*/
public class FObjMixed extends FObj {
/** TextInfo for this object */