import org.apache.fop.fo.FObj;
import org.apache.fop.fo.FOTreeVisitor;
import org.apache.fop.fo.properties.CommonAccessibility;
-import org.apache.fop.layoutmgr.list.Item;
-import org.apache.fop.apps.*;
/**
* Class modelling the fo:list-item-body object. See Sec. 6.8.4 of the XSL-FO
super(parent);
}
- /**
- * @return Item layout manager
- */
- public Item getItemLayoutManager() {
- Item item = new Item();
- item.setUserAgent(getUserAgent());
- item.setFObj(this);
- return item;
- }
-
private void setup() {
// Common Accessibility Properties
import org.apache.fop.fo.flow.BlockContainer;
import org.apache.fop.fo.flow.Footnote;
import org.apache.fop.fo.flow.ListBlock;
+import org.apache.fop.fo.flow.ListItemBody;
import org.apache.fop.fo.flow.InstreamForeignObject;
import org.apache.fop.fo.flow.InlineContainer;
import org.apache.fop.fo.flow.ListItem;
import org.apache.fop.layoutmgr.table.Body;
import org.apache.fop.layoutmgr.table.Row;
import org.apache.fop.layoutmgr.table.TableLayoutManager;
+import org.apache.fop.layoutmgr.list.Item;
import org.apache.fop.layoutmgr.list.ListBlockLayoutManager;
import org.apache.fop.layoutmgr.list.ListItemLayoutManager;
import org.apache.fop.util.CharUtilities;
blm.setUserAgent(node.getUserAgent());
blm.setFObj(node);
blm.setLabel(node.getLabel().getItemLayoutManager());
- blm.setBody(node.getBody().getItemLayoutManager());
+ blm.setBody(getListItemBodyLayoutManager(node.getBody()));
currentLMList.add(blm);
} else {
node.getLogger().error("list-item requires list-item-label and list-item-body");
}
}
+ /**
+ * @return Item layout manager
+ */
+ public Item getListItemBodyLayoutManager(ListItemBody node) {
+ Item item = new Item();
+ item.setUserAgent(node.getUserAgent());
+ item.setFObj(node);
+ return item;
+ }
+
/**
* Overridden from FObj
* @param lms the list to which the layout manager(s) should be added