X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXAction.cpp;h=47aa147efb0d37820b1904c84ce006ab4c4b06f6;hb=6e25ae327284ac52b8337ea969322d6fb304f1b5;hp=92c3ba30a8aba209da45e938956771b997ceef9d;hpb=f5a03ab60186e9c53d50946d859c7c99d6566bb5;p=lyx.git diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 92c3ba30a8..47aa147efb 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -319,7 +319,8 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_ARGUMENT_INSERT * \li Action: Inserts an argument (short title) inset. - * \li Syntax: argument-insert + * \li Syntax: argument-insert + * \li Params: : see layout declarations * \li Origin: vermeer, 12 Aug 2002 * \endvar */ @@ -478,6 +479,7 @@ void LyXAction::init() * \li Params: : normal, protected, visible, thin, quad, qquad, enspace, enskip, negthinspace, negmedspace, negthickspace, hfill, hfill*, dotfill, hrulefill, hspace, hspace* \n + Only in math mode: med and thick.\n : length for custom spaces (hspace, hspace* for protected) * \li Origin: JSpitzm, 20 May 2003, Mar 17 2008 * \endvar @@ -526,7 +528,7 @@ void LyXAction::init() * \li Notion: It automatically takes the word on the cursor position. * \li Syntax: index-insert [] * \li Params: : name of the index, if multiple indices are defined. - with an empty argument, the default index is selected. + With an empty argument, the default index is selected. * \li Origin: leeming, 3 Aug 2000 * \endvar */ @@ -536,12 +538,40 @@ void LyXAction::init() * \li Action: Inserts list of Index entries on a new page. * \li Syntax: index-print [] * \li Params: : name of the index, if multiple indices are defined. - with an empty argument, the default index is selected. + With an empty argument, the default index is selected. * \li Origin: Lgb, 27 Feb 1997 * \endvar */ { LFUN_INDEX_PRINT, "index-print", Noop, Edit }, - +/*! + * \var lyx::FuncCode lyx::LFUN_IPA_INSERT + * \li Action: Inserts an IPA inset. + * \li Syntax: ipa-insert + * \li Origin: spitz, 05 Mar 2012 + * \endvar + */ + { LFUN_IPA_INSERT, "ipa-insert", Noop, Edit }, +/*! + * \var lyx::FuncCode lyx::LFUN_IN_IPA + * \li Action: Only active in IPA inset. + * \li Notion: Dummy function which is only active in a IPA inset. + It's used to toggle the IPA toolbar if the cursor moves + into an IPA inset. + * \li Syntax: in-ipa + * \li Origin: spitz, 20 May 2012 + * \endvar + */ + { LFUN_IN_IPA, "in-ipa", Noop, Edit }, +/*! + * \var lyx::FuncCode lyx::LFUN_IPAMACRO_INSERT + * \li Action: Inserts special IPA macros into the document. + * \li Syntax: ipamacro-insert + * \li Params: : tone-falling, tone-rising, tone-high-rising, tone-low-rising, + * tone-high-rising-falling, deco bottomtiebar, deco toptiebar. + * \li Origin: JSpitzm, 22 Aug 2012 + * \endvar + */ + { LFUN_IPAMACRO_INSERT, "ipamacro-insert", Noop, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_NOMENCL_INSERT * \li Action: Inserts Nomenclature entry. @@ -562,7 +592,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_NOTE_INSERT - * \li Action: Inserts Note on the current cursor postion, + * \li Action: Inserts Note on the current cursor position, move selection inside the inset. * \li Syntax: note-insert [] * \li Params: : default: Note @@ -571,14 +601,14 @@ void LyXAction::init() { LFUN_NOTE_INSERT, "note-insert", Noop, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_NOTE_NEXT - * \li Action: Moves the cursor to the begining of next Note inset. + * \li Action: Moves the cursor to the beginning of next Note inset. * \li Syntax: note-next * \endvar */ { LFUN_NOTE_NEXT, "note-next", ReadOnly, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_PHANTOM_INSERT - * \li Action: Inserts phantom on the current cursor postion, + * \li Action: Inserts phantom on the current cursor position, move selection inside the inset. * \li Syntax: phantom-insert [] * \li Params: : default: Phantom @@ -815,7 +845,7 @@ void LyXAction::init() { LFUN_WORD_BACKWARD_SELECT, "word-backward-select", ReadOnly | SingleParUpdate, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_WORD_DELETE_BACKWARD - * \li Action: Deletes characters to the begining of the word (usually the "C+BackSpace" key). + * \li Action: Deletes characters to the beginning of the word (usually the "C+BackSpace" key). * \li Syntax: word-delete-backward * \endvar */ @@ -847,7 +877,7 @@ void LyXAction::init() { LFUN_WORD_FIND_BACKWARD, "word-find-backward", ReadOnly, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_WORD_FIND - * \li Action: Search for next occurence of a string. + * \li Action: Search for next occurrence of a string. * \li Syntax: word-find [] * \li Params: : data encoded from Find dialog (see #lyx::find2string()). If no parameter is given, search with last find-dialog @@ -870,7 +900,7 @@ void LyXAction::init() { LFUN_WORD_REPLACE, "word-replace", Noop, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_WORD_FINDADV - * \li Action: Search for next occurence of a pattern. + * \li Action: Search for next occurrence of a pattern. * \li Syntax: word-findadv [] * \li Params: : data encoded from FindAdv dialog (see #lyx::findadv2string()). If no parameter is given, search with last find-dialog @@ -1015,6 +1045,16 @@ void LyXAction::init() * \endvar */ { LFUN_SPELLING_REMOVE, "spelling-remove", ReadOnly, Edit }, + +/*! + * \var lyx::FuncCode lyx::LFUN_SPELLING_CONTINUOUSLY + * \li Action: Toggle continuous spell checking. + * \li Syntax: spelling-continuously + * \li Origin: vfr, 24 March 2013 + * \endvar + */ + { LFUN_SPELLING_CONTINUOUSLY, "spelling-continuously", ReadOnly, Edit }, + /*! * \var lyx::FuncCode lyx::LFUN_THESAURUS_ENTRY * \li Action: Look up thesaurus entries with respect to the word under the cursor. @@ -1121,7 +1161,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_LINE_BEGIN - * \li Action: Move the cursor to the begining of the (screen) line. + * \li Action: Move the cursor to the beginning of the (screen) line. * \li Syntax: line-begin * \endvar */ @@ -1159,7 +1199,7 @@ void LyXAction::init() { LFUN_LINE_DELETE, "line-delete-forward", Noop, Edit }, // there is no line-delete-backward /*! * \var lyx::FuncCode lyx::LFUN_COPY - * \li Action: Copies to the clipboard the last edit. + * \li Action: Copies the current selection to the clipboard. * \li Syntax: copy * \endvar */ @@ -1175,7 +1215,7 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_PASTE * \li Action: Pastes material (text or picture) from the active clipboard. * \li Syntax: paste [|] - * \li Params: : emf|pdf|png|jpeg|linkback|wmf \n + * \li Params: : emf|pdf|png|jpeg|linkback|wmf|latex|html \n : number of the selection in the internal clipboard stack to be pasted. * \endvar */ @@ -1200,7 +1240,7 @@ void LyXAction::init() { LFUN_PRIMARY_SELECTION_PASTE, "primary-selection-paste", Noop, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_SELECTION_PASTE - * \li Action: Pastes the the internal selection text in permanent selection. + * \li Action: Pastes the internal selection text in permanent selection. * \li Notion: Created in order to have middle mouse button pasting correct (bound to command-alternatives selection-paste ; primary-selection-paste paragraph). * \li Syntax: selection-paste @@ -1208,6 +1248,14 @@ void LyXAction::init() * \endvar */ { LFUN_SELECTION_PASTE, "selection-paste", Noop, Edit }, +/*! + * \var lyx::FuncCode lyx::LFUN_CLIPBOARD_PASTE_SIMPLE + * \li Action: Pastes simple unformatted text from the active clipboard. + * \li Syntax: clipboard-paste-simple [] + * \li Params: : "paragraph" will cause pasting as one paragraph, i.e. "Join lines". + * \endvar + */ + { LFUN_CLIPBOARD_PASTE_SIMPLE, "clipboard-paste-simple", Noop, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_UNDO * \li Action: Undoes the last edit. @@ -1373,7 +1421,7 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_TEXTSTYLE_APPLY * \li Action: Toggle user-defined (=last-time used) text style. * \li Notion: This style is set via #LFUN_TEXTSTYLE_UPDATE, which is - automatically trigerred when using Text Style dialog. + automatically triggered when using Text Style dialog. * \li Syntax: textstyle-apply * \li Origin: leeming, 12 Mar 2003 * \endvar @@ -1423,7 +1471,7 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_BIBTEX_DATABASE_ADD * \li Action: Adds database, which will be used for bibtex citations. * \li Notion: Databases are added to the first BibTeX inset - (Inset->List/TOC->BibTeX bibliography) found from the cursor postion. + (Inset->List/TOC->BibTeX bibliography) found from the cursor position. * \li Syntax: bibtex-database-add * \li Origin: Ale, 30 May 1997 * \endvar @@ -1433,7 +1481,7 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_BIBTEX_DATABASE_DEL * \li Action: Adds database, which will be used for bibtex citations. * \li Notion: Databases are deleted from the first BibTeX inset - (Inset->List/TOC->BibTeX bibliography) found from the cursor postion. + (Inset->List/TOC->BibTeX bibliography) found from the cursor position. * \li Syntax: bibtex-database-del * \li Origin: Ale, 30 May 1997 * \endvar @@ -1731,7 +1779,7 @@ void LyXAction::init() * \li Notion: Selection can be used to determine the input for the external program. * \li Syntax: math-extern [] * \li Params: : octave|maxima|maple|mathematica|script \n - where "script" stands fot the external script (normalized + where "script" stands for the external script (normalized expression will be passed) * \li Origin: Andre, 24 Apr 2001 * \li Sample: math-extern maple simplify @@ -1901,6 +1949,8 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_PARAGRAPH_MOVE_UP * \li Action: Moves the current paragraph upwards in the document. + * \li Notion: Movement through the document will possibly break the paragraph-depth + (e.g. itemize structure). * \li Syntax: paragraph-move-up * \li Origin: Edwin, 8 Apr 2006 * \endvar @@ -1909,7 +1959,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_PARAGRAPH_UP - * \li Action: Move the cursor to the next paragraph (or begining of the current one) + * \li Action: Move the cursor to the next paragraph (or beginning of the current one) in upward direction. * \li Syntax: paragraph-up * \li Origin: Asger, 1 Oct 1996 @@ -1919,7 +1969,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_PARAGRAPH_UP_SELECT * \li Action: Move the cursor and select the text to the next paragraph (or - begining of the current one) in upward direction. + beginning of the current one) in upward direction. * \li Syntax: paragraph-up-select * \li Origin: Asger, 1 Oct 1996 * \endvar @@ -1927,7 +1977,7 @@ void LyXAction::init() { LFUN_PARAGRAPH_UP_SELECT, "paragraph-up-select", ReadOnly, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_PARAGRAPH_DOWN - * \li Action: Move the cursor to the next paragraph (or begining of the current one) + * \li Action: Move the cursor to the next paragraph (or beginning of the current one) in downward direction. * \li Syntax: paragraph-down * \li Origin: Asger, 1 Oct 1996 @@ -1937,7 +1987,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_PARAGRAPH_DOWN_SELECT * \li Action: Move the cursor and select the text to the next paragraph (or - begining of the current one) in downward direction. + beginning of the current one) in downward direction. * \li Syntax: paragraph-down-select * \li Origin: Asger, 1 Oct 1996 * \endvar @@ -1957,16 +2007,16 @@ void LyXAction::init() */ { LFUN_PARAGRAPH_GOTO, "paragraph-goto", ReadOnly | NoInternal, Edit }, /*! - * \var lyx::FuncCode lyx::LFUN_BREAK_PARAGRAPH + * \var lyx::FuncCode lyx::LFUN_PARAGRAPH_BREAK * \li Action: Breaks the current paragraph at the current location. * \li Notion: Removes the selection. - * \li Syntax: break-paragraph [] + * \li Syntax: paragraph-break [] * \li Params: : "inverse" - decreases depth by one (or change layout to default layout) when the cursor is at the end of the line. * \endvar */ - { LFUN_BREAK_PARAGRAPH, "break-paragraph", Noop, Edit }, + { LFUN_PARAGRAPH_BREAK, "paragraph-break", Noop, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_PARAGRAPH_PARAMS * \li Action: Change paragraph settings. @@ -1996,7 +2046,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_PARAGRAPH_UPDATE * \li Action: Updates the values inside the paragraph dialog from the paragraph. - * \li Notion: This is internal LFUN, not to be used by users. Called internally + * \li Notion: This is an internal LFUN, not to be used by users. Called internally by #LFUN_DIALOG_UPDATE. * \li Origin: leeming, 13 Mar 2003 * \endvar @@ -2106,6 +2156,34 @@ void LyXAction::init() * \endvar */ { LFUN_VC_REGISTER, "vc-register", ReadOnly, System }, +/*! + * \var lyx::FuncCode lyx::LFUN_VC_RENAME + * \li Action: Renames the document to another name. + * \li Notion: Renaming with revision history is only supported by SVN. + For CVS it is simulated by adding the document under a new + name and deleting the old one. For RCS it is not supported. + Disabled if uncommitted changes exist. + * \li Syntax: vc-rename + * \li Params: : New name of the document.\n + * A file dialog is opened if no filename is given. + * \li Origin: gb, 05 Feb 2013 + * \endvar + */ + { LFUN_VC_RENAME, "vc-rename", ReadOnly, System }, +/*! + * \var lyx::FuncCode lyx::LFUN_VC_COPY + * \li Action: Copies the document to another name. + * \li Notion: Copying with revision history is only supported by SVN. + For RCS and CVS it is simulated by adding the document + under a new name. + Disabled if uncommitted changes exist. + * \li Syntax: vc-copy + * \li Params: : New name of the document.\n + * A file dialog is opened if no filename is given. + * \li Origin: gb, 05 Feb 2013 + * \endvar + */ + { LFUN_VC_COPY, "vc-copy", ReadOnly, System }, /*! * \var lyx::FuncCode lyx::LFUN_VC_CHECK_IN * \li Action: Checks-in/commits the changes of the registered file to the repository. @@ -2304,7 +2382,7 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_INSET_INSERT * \li Action: Insert new inset (type given by the parameters). * \li Syntax: inset-insert - * \li Params: : : \n : depends on the given inset. Use "lyx -dbg action" to explore. * \li Sample: inset-insert ref LatexCommand reference "