CVS: jfor/src/org/jfor/jfor/rtflib/rtfdoc RtfParagraph.java,1.14,1.15
Marra Roberto <[email protected]> Mon, 23 Sep 2002 06:15:55 -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-serv11520
Modified Files:
RtfParagraph.java
Log Message:
Reset paragraph properties added
Index: RtfParagraph.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/rtflib/rtfdoc/RtfParagraph.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** RtfParagraph.java 17 Sep 2002 12:21:23 -0000 1.14
--- RtfParagraph.java 23 Sep 2002 13:15:52 -0000 1.15
***************
*** 64,67 ****
--- 64,70 ----
// $Id$
// $Log$
+ // Revision 1.15 2002/09/23 13:15:52 rmarra
+ // Reset paragraph properties added
+ //
// Revision 1.14 2002/09/17 12:21:23 bdelacretaz
// V0.7.2dev-c - extraneous stdout/stderr output removed
***************
*** 146,150 ****
private RtfPageNumberCitation m_pageNumberCitation; // Line added by Boris POUDEROUS on 2002/07/09
private boolean m_keepn=false;
!
/* needed for importing Rtf into FrameMaker
--- 149,153 ----
private RtfPageNumberCitation m_pageNumberCitation; // Line added by Boris POUDEROUS on 2002/07/09
private boolean m_keepn=false;
! private boolean m_resetProperties=false;
/* needed for importing Rtf into FrameMaker
***************
*** 178,181 ****
--- 181,189 ----
}
+ /** Force reset properties */
+ public void setResetProperties() {
+ this.m_resetProperties=true;
+ }
+
/** IRtfTextContainer requirement: return a copy of our attributes */
public RtfAttributes getTextContainerAttributes() {
***************
*** 194,204 ****
}
// do not write text attributes here, they are handled
// by RtfText
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);
--- 202,217 ----
}
+ //Reset paragraph properties if needed
+ if(m_resetProperties) {
+ writeControlWord("pard");
+ }
+
// do not write text attributes here, they are handled
// by RtfText
writeAttributes(m_attrib,PARA_ATTRIBUTES);
!
! //Set keepn if needed (Keep paragraph with the next paragraph)
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf