public class Footnote extends InlineStory
The Footnote class is used to represent both footnotes and endnotes in a Word document.
Footnote is an inline-level node and can only be a child of Paragraph.
Footnote can contain Paragraph and Table child nodes.
getFootnoteType(),
FootnoteOptions,
EndnoteOptions| Constructor and Description |
|---|
Footnote(DocumentBase doc,
int footnoteType)
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DocumentVisitor visitor)
Accepts a visitor.
|
int |
getFootnoteType()
Returns a value that specifies whether this is a footnote or endnote.
|
int |
getNodeType()
Returns NodeType.Footnote.
|
java.lang.String |
getReferenceMark()
Gets/sets custom reference mark to be used for this footnote.
|
int |
getStoryType()
Returns StoryType.Footnotes or StoryType.Endnotes.
|
boolean |
isAuto()
Holds a value that specifies whether this is a auto-numbered footnote or footnote with user defined custom reference mark.
|
void |
isAuto(boolean value)
Holds a value that specifies whether this is a auto-numbered footnote or footnote with user defined custom reference mark.
|
void |
removeMoveRevisions() |
void |
setReferenceMark(java.lang.String value)
Gets/sets custom reference mark to be used for this footnote.
|
clearRunAttrs, ensureMinimum, fetchInheritedRunAttr, getDirectRunAttr, getDocument_IInline, getFirstParagraph, getFont, getLastParagraph, getParagraphs, getParentParagraph_IInline, getParentParagraph, getTables, isDeleteRevision, isInsertRevision, isMoveFromRevision, isMoveToRevision, removeRunAttr, setRunAttracceptChildren, acceptCore, appendChild, coreRemoveSelfOnly, getChild, getChildNodes, getChildNodes, getContainer, getCount, getCurrentNode, getFirstChild, getLastChild, getNextMatchingNode, getText, hasChildNodes, indexOf, insertAfter, insertBefore, isComposite, iterator, prependChild, removeAllChildren, removeChild, removeSmartTags, selectNodes, selectSingleNodedd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getParentNode, getPreviousSibling, getRange, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolpublic Footnote(DocumentBase doc, int footnoteType)
public int getNodeType()
getNodeType in class NodeNodeType constants.public int getStoryType()
getStoryType in class InlineStoryStoryType constants.public int getFootnoteType()
FootnoteType constants.public boolean isAuto()
getReferenceMark() / setReferenceMark(java.lang.String) initialized with empty string if IsAuto set to false.boolean value.public void isAuto(boolean value)
getReferenceMark() / setReferenceMark(java.lang.String) initialized with empty string if IsAuto set to false.value - The corresponding boolean value.public java.lang.String getReferenceMark()
If this property is set to empty string or null, then isAuto() / isAuto(boolean) property will automatically be set to true, if set to anything else then isAuto() / isAuto(boolean) will be set to false.
RTF-format can only store 1 symbol as custom reference mark, so upon export only the first symbol will be written others will be discard.
String value.public void setReferenceMark(java.lang.String value)
If this property is set to empty string or null, then isAuto() / isAuto(boolean) property will automatically be set to true, if set to anything else then isAuto() / isAuto(boolean) will be set to false.
RTF-format can only store 1 symbol as custom reference mark, so upon export only the first symbol will be written others will be discard.
value - The corresponding String value.public boolean accept(DocumentVisitor visitor) throws java.lang.Exception
Enumerates over this node and all of its children. Each node calls a corresponding method on DocumentVisitor.
For more info see the Visitor design pattern.
public void removeMoveRevisions()