CVS: jfor/src/org/jfor/jfor/rtflib/rtfdoc RtfTable.java,1.4,1.5
Marra Roberto <[email protected]> Tue, 25 Jun 2002 06:26:57 -0700
| Newsgroups | gmane.text.xml.jfor.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jfor/jfor/src/org/jfor/jfor/rtflib/rtfdoc
In directory usw-pr-cvs1:/tmp/cvs-serv26184
Modified Files:
RtfTable.java
Log Message:
Keep paragraph with the next paragraph implemented.
Index: RtfTable.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/rtflib/rtfdoc/RtfTable.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** RtfTable.java 28 Dec 2001 17:08:50 -0000 1.4
--- RtfTable.java 25 Jun 2002 13:26:55 -0000 1.5
***************
*** 36,39 ****
--- 36,42 ----
// $Id$
// $Log$
+ // Revision 1.5 2002/06/25 13:26:55 rmarra
+ // Keep paragraph with the next paragraph implemented.
+ //
// Revision 1.4 2001/12/28 17:08:50 bdelacretaz
// V0.5.2 - first integration of Chris Scott's changes
***************
*** 77,81 ****
{
if(m_row != null) m_row.close();
! highestRow++;
m_row = new RtfTableRow(this,m_writer,m_attrib,highestRow);
return m_row;
--- 80,86 ----
{
if(m_row != null) m_row.close();
!
! highestRow++;
! newRtfTableRowKeepWith(m_attrib);
m_row = new RtfTableRow(this,m_writer,m_attrib,highestRow);
return m_row;
***************
*** 96,102 ****
--- 101,122 ----
if(m_row != null) m_row.close();
highestRow++;
+
+
+ newRtfTableRowKeepWith(attr);
m_row = new RtfTableRow(this,m_writer,attr,highestRow);
return m_row;
}
+
+
+ /**
+ * Added as child of this table container before a new table row.
+ * The RtfTableRowKeepWith class create a new RtfParagraphKeepWithNext oobject with the RTF option "Keep paragraph with the next paragraph"
+ * This class process the fo:keep-with-next and fo:keep-with-previous.
+ * Because the paragraph can include the next rows, it must be written before the row.
+ * The paragraph stay open until a fo:keep-with-previous is reached.
+ */
+ private void newRtfTableRowKeepWith(RtfAttributes attrs) throws IOException {
+ new RtfTableRowKeepWith(this,m_writer,attrs);
+ }
/** overridden to write RTF prefix code, what comes before our children */
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/