CVS: jfor/src/org/jfor/jfor/rtflib/rtfdoc RtfParagraph.java,1.12,1.13

Marra Roberto <[email protected]> Thu, 22 Aug 2002 12:22:28 -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-serv28911

Modified Files:
	RtfParagraph.java 
Log Message:
setKeepn added

Index: RtfParagraph.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/rtflib/rtfdoc/RtfParagraph.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** RtfParagraph.java	30 Jul 2002 14:48:05 -0000	1.12
--- RtfParagraph.java	22 Aug 2002 19:22:25 -0000	1.13
***************
*** 64,67 ****
--- 64,70 ----
  // $Id$
  // $Log$
+ // Revision 1.13  2002/08/22 19:22:25  rmarra
+ // setKeepn added
+ //
  // Revision 1.12  2002/07/30 14:48:05  bdelacretaz
  // V0.7.1dev-d, page-number-citation attributes bug corrected
***************
*** 139,142 ****
--- 142,146 ----
      private RtfPageNumber m_pageNumber;
      private RtfPageNumberCitation m_pageNumberCitation; // Line added by Boris POUDEROUS on 2002/07/09
+     private boolean m_keepn=false;
  
      
***************
*** 166,169 ****
--- 170,178 ----
      }
      
+     /** Set the keepn attribute for this paragraph */
+     public void setKeepn() {
+     	this.m_keepn=true;	
+     }
+     
      /** IRtfTextContainer requirement: return a copy of our attributes */
      public RtfAttributes getTextContainerAttributes() {
***************
*** 182,185 ****
--- 191,197 ----
          }
          
+         
+         System.out.println (m_attrib.toString());
+         
             
          // do not write text attributes here, they are handled
***************
*** 187,192 ****
          writeAttributes(m_attrib,PARA_ATTRIBUTES);
          
!         // start a group for this paragraph and write our own attributes if needed
          
          if(mustWriteGroupMark()) writeGroupMark(true);
           
--- 199,206 ----
          writeAttributes(m_attrib,PARA_ATTRIBUTES);
          
!         //if keepn set?
!         if(m_keepn) writeControlWord("keepn");     
          
+         // start a group for this paragraph and write our own attributes if needed
          if(mustWriteGroupMark()) writeGroupMark(true);
           



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390