|Top Previous Next|
TrvActionInsertEndnote inserts a new endnote in the document.
TrvActionInsertEndnote = class(TrvActionInsertNote)
ScaleRichView note: it's not recommended to use this action for TSRichViewEdit. Use TsrvActionInsertEndnote instead.
TrvActionInsertEndnote inserts a new endnote in the document, then executes ActionEditNote to open an editor for this note.
If TrvActionEditNote's editor is active when this action is executed, this action inserts a reference to the parent endnote (TRVNoteReferenceItemInfo item).
When inserting an endnote, this action adds in its Document the following items:
•reference to this endnote;
Attributes of inserted items depend on the target editor's UseStyleTemplates property.
If style templates are used, the endnote and the endnote reference characters are formatted using "endnote reference" style template. Otherwise, or if this style template does not exist, they are formatted as superscript text. In the both cases, rvprDoNotAutoSwitch is included in its Protection.
If style templates are used, endnote paragraph and text are formatted using "endnote text" style template. Otherwise, or if this style template does not exist, endnote text is formatted using Font property.
Note: "endnote reference" and "endnote text" style templates are added by default to TrvActionNew.StyleTemplates, so they are included in new documents.
RichViewActions © trichview.com