footnote TrvActionInsertFootnote

Properties   Methods

<< Click to display table of contents >>

footnote TrvActionInsertFootnote

Properties   Methods

TrvActionInsertFootnote inserts a new footnote in the document.

Unit RichViewActions;

Syntax

TrvActionInsertFootnote = class(TrvActionInsertNote)

hmtoggle_arrow1Hierarchy

Description

srv_icon ScaleRichView note: it's not recommended to use this action for TSRichViewEdit. Use TsrvActionInsertFootnote instead.

TrvActionInsertFootnote inserts a new footnote 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 footnote (TRVNoteReferenceItemInfo item).

When inserting a footnote, this action adds in its Document the following items:

reference to this footnote;

space character.

Attributes of inserted items depend on the target editor's UseStyleTemplates property.

If style templates are used, the footnote and the footnote reference characters are formatted using "footnote 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, footnote paragraph and text are formatted using "footnote text" style template. Otherwise, or if this style template does not exist, footnote text is formatted using Font property.

Note: "footnote reference" and "footnote text" style templates are added by default to TrvActionNew.StyleTemplates, so they are included in new documents.