1 17 18 19 20 package org.apache.fop.render.rtf; 21 22 import org.apache.fop.apps.FOPException; 24 import org.apache.fop.fo.flow.ListBlock; 25 import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfAttributes; 26 import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfListTable; 27 import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfText; 28 29 36 37 40 public final class ListAttributesConverter { 41 42 45 private ListAttributesConverter() { 46 } 47 48 54 static RtfAttributes convertAttributes(ListBlock fobj) 55 throws FOPException { 56 57 FOPRtfAttributes attrib = new FOPRtfAttributes(); 58 59 attrib.setTwips(RtfListTable.LIST_INDENT, fobj.getCommonMarginBlock().startIndent); 60 attrib.setTwips(RtfText.LEFT_INDENT_BODY, fobj.getCommonMarginBlock().endIndent); 61 62 65 66 attrib.set(RtfListTable.LIST, "simple"); 68 attrib.set(RtfListTable.LIST_FOLLOWING_CHAR, 0); 70 71 return attrib; 72 } 73 } | Popular Tags |