Пример #1
0
 /**
 * Create a new <code>RtfCell</code>.
 *
 * @param writer The <code>RtfWriter</code> that this <code>RtfCell</code> belongs to
 * @param mainTable The <code>RtfTable</code> that created the
 * <code>RtfRow</code> that created the <code>RtfCell</code> :-)
 */
 public RtfCell(RtfWriter writer, RtfTable mainTable)
     : base()
 {
     this.writer = writer;
     this.mainTable = mainTable;
 }
Пример #2
0
 /**
  * Create a new <code>RtfRow</code>.
  *
  * @param writer The <code>RtfWriter</code> that this <code>RtfRow</code> belongs to
  * @param mainTable The <code>RtfTable</code> that created this
  * <code>RtfRow</code>
  */
 public RtfRow(RtfWriter writer, RtfTable mainTable) : base()
 {
     this.writer    = writer;
     this.mainTable = mainTable;
 }
Пример #3
0
 /**
 * Write a <code>Table</code>.
 *
 * @param table The <code>table</code> to be written
 * @param outp The <code>MemoryStream</code> to write to
 *
 * Currently no nesting of tables is supported. If a cell contains anything but a Cell Object it is ignored.
 *
 * @throws IOException
 * @throws DocumentException
 */
 private void WriteTable(Table table, MemoryStream outp)
 {
     inTable = true;
     table.Complete();
     RtfTable rtfTable = new RtfTable(this);
     rtfTable.ImportTable(table, pageWidth - marginLeft - marginRight);
     rtfTable.WriteTable(outp);
     inTable = false;
 }