public class RtfBookmark extends RtfElement
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).
Modifier and Type | Field and Description |
---|---|
static int |
MAX_BOOKMARK_LENGTH
Word 2000 supports a length of 40 characters only
|
static char |
REPLACE_CHARACTER
Word 2000 converts '.' in bookmarks to "_", thats why we control this replacement.
|
attrib, parent, writer
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
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, getParentOfClass, getRtfAttributes, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
public static final int MAX_BOOKMARK_LENGTH
public static final char REPLACE_CHARACTER
public void writeRtfPrefix() throws IOException
writeRtfPrefix
in class RtfElement
IOException
- On Errorpublic void writeRtfContent() throws IOException
writeRtfContent
in class RtfElement
IOException
- On errorpublic void writeRtfSuffix() throws IOException
writeRtfSuffix
in class RtfElement
IOException
- On Errorpublic boolean isEmpty()
isEmpty
in class RtfElement
Copyright © 2025 Apache Software Foundation. All rights reserved.