/** * Constructs a new RtfWriter that listens to the specified Document and * writes its output to the Stream. * * @param doc The Document that this RtfWriter listens to * @param os The Stream to write to */ protected RtfWriter2(Legacy.Text.Document doc, Stream os) : base(doc, os) { doc.AddDocListener(this); rtfDoc = new RtfDocument(); }