Class RtfParagraphBreak
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfParagraphBreak
Class which represents a paragraph break.
-
Field Summary
FieldsFields inherited from class RtfElement
attrib, parent, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHide()Whether or not the break can be skipped.booleanisEmpty()voidswitchControlWord(String controlWord) Sets a different control word for this paragraph.protected voidwrite RTF code of all our childrenMethods inherited from class RtfElement
close, dump, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
DEFAULT_PARAGRAPH
- See Also:
-
controlWord
-
-
Constructor Details
-
RtfParagraphBreak
RtfParagraphBreak(RtfContainer parent, Writer w) throws IOException - Throws:
IOException
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classRtfElement- Returns:
- true if this element would generate no "useful" RTF content
-
writeRtfContent
write RTF code of all our children- Specified by:
writeRtfContentin classRtfElement- Throws:
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
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
-