1 17 18 19 20 package org.apache.fop.render.rtf.rtflib.rtfdoc; 21 22 28 29 import java.io.Writer ; 30 import java.io.IOException ; 31 32 38 public class RtfBookmarkContainerImpl extends RtfContainer implements IRtfBookmarkContainer { 39 43 44 private RtfBookmark mBookmark = null; 45 46 47 51 60 RtfBookmarkContainerImpl (RtfContainer parent, Writer w) throws IOException { 61 super (parent, w, null); 62 } 63 64 74 RtfBookmarkContainerImpl (RtfContainer parent, Writer w, RtfAttributes attr) throws IOException 75 { 76 super (parent, w, attr); 77 } 78 79 80 84 93 public RtfBookmark newBookmark (String bookmark) throws IOException { 94 if (mBookmark != null) { 95 mBookmark.close (); 96 } 97 98 mBookmark = new RtfBookmark (this, writer, bookmark); 99 100 return mBookmark; 101 } 102 } | Popular Tags |