a_endnote TsrvActionInsertEndnote

Properties  | Actions overview

Top  Previous  Next

TsrvActionInsertEndnote inserts an endnote in the caret position.

Unit SRVActions;


TsrvActionInsertEndnote = class(TsrvActionInsertNote)



If TSRichViewEdit.RichViewEdit is active, this action inserts an endnote (TRVEndnoteItemInfo item).

If TSRichViewEdit.RVNote is active (editing a endnote.Document), this action inserts a reference to the parent endnote (TRVNoteReferenceItemInfo item).

Otherwise, this action is disabled.

When inserting an endnote, this action adds in its Document the following items:

reference to this endnote;

space character.

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.

Use this action instead of TrvActionInsertEndnote.

ScaleRichView © trichview.com