Class RtfParagraphBreak
- java.lang.Object
-
- org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
-
- org.apache.fop.render.rtf.rtflib.rtfdoc.RtfParagraphBreak
-
public class RtfParagraphBreak extends RtfElement
Class which represents a paragraph break.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
controlWord
private static java.lang.String
DEFAULT_PARAGRAPH
-
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
-
Constructor Summary
Constructors Constructor Description RtfParagraphBreak(RtfContainer parent, java.io.Writer w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHide()
Whether or not the break can be skipped.boolean
isEmpty()
void
switchControlWord(java.lang.String controlWord)
Sets a different control word for this paragraph.protected void
writeRtfContent()
write RTF code of all our children-
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, dump, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
-
-
-
Field Detail
-
DEFAULT_PARAGRAPH
private static final java.lang.String DEFAULT_PARAGRAPH
- See Also:
- Constant Field Values
-
controlWord
private java.lang.String controlWord
-
-
Constructor Detail
-
RtfParagraphBreak
RtfParagraphBreak(RtfContainer parent, java.io.Writer w) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in classRtfElement
- Returns:
- true if this element would generate no "useful" RTF content
-
writeRtfContent
protected void writeRtfContent() throws java.io.IOException
write RTF code of all our children- Specified by:
writeRtfContent
in classRtfElement
- Throws:
java.io.IOException
- for I/O problems
-
canHide
public boolean canHide()
Whether or not the break can be skipped. If the paragraph marks a table cell end it is not possible- Returns:
- boolean
-
switchControlWord
public void switchControlWord(java.lang.String controlWord)
Sets a different control word for this paragraph. If this method is used the paragraph will always be displayed (@see canHide))- Parameters:
controlWord
- the new control word
-
-