public class RtfBookmark extends RtfElement
Modifier and Type | Field and Description |
---|---|
static int |
maxBookmarkLength
Word 2000 supports a length of 40 characters only
|
static char |
replaceCharacter
Word 2000 converts '.' in bookmarks to "_", thats why we control this replacement.
|
m_attrib, m_parent, m_writer
Constructor and Description |
---|
RtfBookmark(IRtfBookmarkContainer parent,
java.io.Writer w,
java.lang.String bookmark)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
true if this element would generate no "useful" RTF content
|
void |
writeRtfContent()
Writes the RTF content to m_writer.
|
void |
writeRtfPrefix()
Is called before writing the Rtf content.
|
void |
writeRtfSuffix()
Is called after writing the Rtf content.
|
close, dump, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
public static int maxBookmarkLength
public static char replaceCharacter
RtfBookmark(IRtfBookmarkContainer parent, java.io.Writer w, java.lang.String bookmark) throws java.io.IOException
parent
- a RtfBookmarkContainer
valuewriter
- a Writer
valuebookmark
- Name of the bookmarkjava.io.IOException
public void writeRtfPrefix() throws java.io.IOException
writeRtfPrefix
in class RtfElement
java.io.IOException
- On Errorpublic void writeRtfContent() throws java.io.IOException
writeRtfContent
in class RtfElement
java.io.IOException
- On errorpublic void writeRtfSuffix() throws java.io.IOException
writeRtfSuffix
in class RtfElement
java.io.IOException
- On Errorpublic boolean isEmpty()
isEmpty
in class RtfElement