1 17 18 19 20 package org.apache.fop.render.rtf.rtflib.rtfdoc; 21 22 28 29 import java.io.IOException ; 31 32 import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement; 34 35 38 public class RtfListStyleBullet extends RtfListStyle { 39 40 46 public void writeListPrefix(RtfListItem item) throws IOException { 47 item.writeControlWord("pnlvlblt"); 49 item.writeControlWord("ilvl0"); 50 item.writeOneAttribute(RtfListTable.LIST_NUMBER, new Integer (item.getNumber())); 51 item.writeOneAttribute("pnindent", 52 item.getParentList().attrib.getValue(RtfListTable.LIST_INDENT)); 53 item.writeControlWord("pnf1"); 54 item.writeGroupMark(true); 55 item.writeControlWord("pndec"); 56 item.writeOneAttribute(RtfListTable.LIST_FONT_TYPE, "2"); 57 item.writeControlWord("pntxtb"); 58 item.writeControlWord("'b7"); 59 item.writeGroupMark(false); 60 } 61 62 68 public void writeParagraphPrefix(RtfElement element) throws IOException { 69 element.writeGroupMark(true); 70 element.writeControlWord("pntext"); 71 element.writeGroupMark(false); 72 } 73 74 81 public void writeLevelGroup(RtfElement element) throws IOException { 82 element.attrib.set(RtfListTable.LIST_NUMBER_TYPE, 23); 83 element.writeGroupMark(true); 84 element.writeOneAttributeNS(RtfListTable.LIST_TEXT_FORM, "\\'01\\'b7"); 85 element.writeGroupMark(false); 86 87 element.writeGroupMark(true); 88 element.writeOneAttributeNS(RtfListTable.LIST_NUM_POSITION, null); 89 element.writeGroupMark(false); 90 91 element.attrib.set(RtfListTable.LIST_FONT_TYPE, 2); 92 } 93 94 } 95 | Popular Tags |