Class RtfBookmark
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfBookmark
RTF Bookmark. Create an RTF bookmark as a child of given container with default attributes. This class belongs to the "id" attribute processing.
This work was authored by Andreas Putz (a.putz@skynamics.com).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intWord 2000 supports a length of 40 characters onlystatic final charWord 2000 converts '.' in bookmarks to "_", thats why we control this replacement.Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()voidWrites the RTF content to m_writer.voidIs called before writing the Rtf content.voidIs called after writing the Rtf content.Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
MAX_BOOKMARK_LENGTH
public static final int MAX_BOOKMARK_LENGTHWord 2000 supports a length of 40 characters only- See Also:
-
REPLACE_CHARACTER
public static final char REPLACE_CHARACTERWord 2000 converts '.' in bookmarks to "_", thats why we control this replacement.- See Also:
-
-
Method Details
-
writeRtfPrefix
Is called before writing the Rtf content.- Overrides:
writeRtfPrefixin classRtfElement- Throws:
IOException- On Error
-
writeRtfContent
Writes the RTF content to m_writer.- Specified by:
writeRtfContentin classRtfElement- Throws:
IOException- On error
-
writeRtfSuffix
Is called after writing the Rtf content.- Overrides:
writeRtfSuffixin classRtfElement- Throws:
IOException- On Error
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classRtfElement- Returns:
- true if this element would generate no "useful" RTF content
-