]> git.lyx.org Git - lyx.git/blobdiff - src/LyXAction.cpp
Limit the nopassthurchars case in beamer to URL
[lyx.git] / src / LyXAction.cpp
index 96060f80fed0758d27e4d673751cc6a8ca741b5c..3c524549b0e22ecae635f4cfc1070ada296c4b61 100644 (file)
@@ -331,6 +331,16 @@ void LyXAction::init()
  */
                { LFUN_BIBTEX_DATABASE_DEL, "bibtex-database-del", Noop, Edit },
 
+/*!
+ * \var lyx::FuncCode lyx::LFUN_BIBTEX_DATABASE_LIST
+ * \li Action: Lists the available databases (separated by path separator common
+ *             on the used OS).
+ * \li Notion: Used by bibliographic managers
+ * \li Syntax: bibtex-database-list
+ * \li Origin: bpiwowar, 18 December 2022
+ * \endvar
+ */
+               { LFUN_BIBTEX_DATABASE_LIST, "bibtex-database-list", ReadOnly, System },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_BOOKMARK_CLEAR
@@ -725,7 +735,7 @@ void LyXAction::init()
                Template will be asked for via Open-dialog.
  * \li Syntax: buffer-new-template [<FILE>] [<TEMPLATE FILE>]
  * \li Params: <FILE>: filename of created file with absolute path. If empty
- *                     or "newfile", a file with appropriate name is generated.
+ *                     or "newfile", a file with appropriate name is generated.\n
  *             <TEMPLATE FILE>: filename of template with absolute path. If empty,
  *                              a dialog is opened to select the new file.
  * \endvar
@@ -844,7 +854,7 @@ void LyXAction::init()
  * \li Syntax: buffer-update [<FORMAT>]
  * \li Params: <FORMAT>: The format to display, where this is one of the
                          formats defined in the Tools>Preferences>File Formats dialog,
-                        use the "Short name" field.
+                         use the "Short name" field.
                          If no format is given, the default format as
                          specified in the same dialog is used.
  * \li Origin: Dekel, 5 Aug 2000
@@ -888,7 +898,7 @@ void LyXAction::init()
                is already associated with the buffer, asking for one if
                none is yet assigned.
  * \li Syntax: buffer-write [force]
- * \li Params: force: write even if buffer is clean.
+ * \li Params: force: write even if buffer is not marked as modified.
  * \endvar
  */
                { LFUN_BUFFER_WRITE, "buffer-write", ReadOnly, Buffer },
@@ -917,7 +927,7 @@ void LyXAction::init()
  * \li Action: Rename and save current buffer in the local templates directory.
  * \li Syntax: buffer-write-as-template <FILENAME>
  * \li Params: <FILENAME>: New name of the buffer/file. A relative path
-              is with respect to the original location of the buffer/file.
+               is with respect to the original location of the buffer/file.
  * \endvar
  */
                { LFUN_BUFFER_WRITE_AS_TEMPLATE, "buffer-write-as-template", ReadOnly, Buffer },
@@ -1645,7 +1655,7 @@ void LyXAction::init()
  * \li Notion: See also #LFUN_FINISHED_FORWARD.
  * \endvar
  */
-               { LFUN_FINISHED_BACKWARD, "", ReadOnly, Hidden },
+               { LFUN_FINISHED_BACKWARD, "", ReadOnly | NoUpdate, Hidden },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_FINISHED_FORWARD
@@ -1658,7 +1668,7 @@ void LyXAction::init()
                back into the surrounding text.
  * \endvar
  */
-               { LFUN_FINISHED_FORWARD, "", ReadOnly, Hidden },
+               { LFUN_FINISHED_FORWARD, "", ReadOnly | NoUpdate, Hidden },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_FINISHED_LEFT
@@ -1666,7 +1676,7 @@ void LyXAction::init()
  * \li Notion: See also #LFUN_FINISHED_FORWARD.
  * \endvar
  */
-               { LFUN_FINISHED_LEFT, "", ReadOnly, Hidden },
+               { LFUN_FINISHED_LEFT, "", ReadOnly | NoUpdate, Hidden },
 
 
 /*!
@@ -1675,7 +1685,7 @@ void LyXAction::init()
  * \li Notion: See also #LFUN_FINISHED_FORWARD
  * \endvar
  */
-               { LFUN_FINISHED_RIGHT, "", ReadOnly, Hidden },
+               { LFUN_FINISHED_RIGHT, "", ReadOnly | NoUpdate, Hidden },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_FLEX_INSERT
@@ -2124,9 +2134,11 @@ void LyXAction::init()
                the inset is locked, and the temporary file is edited.
                In this case, #LFUN_INSET_END_EDIT must be called to overtake
                the changes and unlock the inset after editing is finished.
- * \li Syntax: inset-edit [<INSET_PARAMS>]
+ * \li Syntax: inset-edit [nogui] [<INSET_PARAMS>]
  * \li Params: <INSET_PARAMS>: Parameters for the inset. \n
-                               Currently only the filename will be considered.
+                               Currently only the filename will be considered.\n
+               nogui: does not launch external editor, only returns filename
+                      to be processed.
  * \li Origin: spitz, 27 Apr 2006
  * \endvar
  */
@@ -2279,14 +2291,14 @@ void LyXAction::init()
  * \li Action: Splits the current inset into two at current position.
  * \li Syntax: inset-split [<INSET>]
  * \li Params: <INSET>: this can be used to make sure the right kind of inset
-                       is dissolved. For example "split" entry in the charstyles
-                       sub-menu should only dissolve the charstyle inset, even if the
-                       cursor is inside several nested insets of different type.\n
-                       For values see #lyx::InsetLayout::lyxtype_ .
+                        is dissolved. For example "split" entry in the charstyles
+                        sub-menu should only dissolve the charstyle inset, even if the
+                        cursor is inside several nested insets of different type.\n
+                        For values see #lyx::InsetLayout::lyxtype_ .
  * \li Origin: spitz, 22 Dec 2020
  * \endvar
  */
-               { LFUN_INSET_SPLIT, "inset-split", AtPoint, Edit },
+               { LFUN_INSET_SPLIT, "inset-split", Noop, Edit },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_INSET_TOGGLE
@@ -3109,7 +3121,7 @@ void LyXAction::init()
  * \li Origin: Andre, 9 Aug 2002
  * \endvar
  */
-               { LFUN_MOUSE_DOUBLE, "", ReadOnly, Hidden },
+               { LFUN_MOUSE_DOUBLE, "", ReadOnly | NoUpdate, Hidden },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_MOUSE_MOTION
@@ -3119,7 +3131,7 @@ void LyXAction::init()
  * \li Origin: Andre, 9 Aug 2002
  * \endvar
  */
-               { LFUN_MOUSE_MOTION, "", ReadOnly | SingleParUpdate, Hidden },
+               { LFUN_MOUSE_MOTION, "", ReadOnly | NoUpdate, Hidden },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_MOUSE_PRESS
@@ -3129,7 +3141,7 @@ void LyXAction::init()
  * \li Origin: Andre, 9 Aug 2002
  * \endvar
  */
-               { LFUN_MOUSE_PRESS, "", ReadOnly, Hidden },
+               { LFUN_MOUSE_PRESS, "", ReadOnly | NoUpdate, Hidden },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_MOUSE_RELEASE
@@ -3139,7 +3151,7 @@ void LyXAction::init()
  * \li Origin: Andre, 9 Aug 2002
  * \endvar
  */
-               { LFUN_MOUSE_RELEASE, "", ReadOnly, Hidden },
+               { LFUN_MOUSE_RELEASE, "", ReadOnly | NoUpdate, Hidden },
 
 
 /*!
@@ -3150,7 +3162,7 @@ void LyXAction::init()
  * \li Origin: Andre, 9 Aug 2002
  * \endvar
  */
-               { LFUN_MOUSE_TRIPLE, "", ReadOnly, Hidden },
+               { LFUN_MOUSE_TRIPLE, "", ReadOnly | NoUpdate, Hidden },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_NEWLINE_INSERT
@@ -3227,7 +3239,8 @@ void LyXAction::init()
  * \li Action: Moves the current group in the downward direction in the
                hierarchy of the document structure.
  * \li Notion: Part -> Chapter -> Section -> etc.
- * \li Syntax: outline-in
+ * \li Syntax: outline-in [local]
+ * \li Params: local: if given, only the current paragraph will be affected.
  * \li Origin: Vermeer, 23 Mar 2006
  * \endvar
  */
@@ -3238,7 +3251,8 @@ void LyXAction::init()
  * \li Action: Moves the current group in the upward direction in the
                hierarchy of the document structure.
  * \li Notion: Part <- Chapter <- Section <- etc.
- * \li Syntax: outline-out
+ * \li Syntax: outline-out [local]
+ * \li Params: local: if given, only the current paragraph will be affected.
  * \li Origin: Vermeer, 23 Mar 2006
  * \endvar
  */
@@ -3452,11 +3466,13 @@ void LyXAction::init()
  * \var lyx::FuncCode lyx::LFUN_QUOTE_INSERT
  * \li Action: Inserts quotes according to the type and quote-language preference.
  * \li Notion: Currently 15 different quote styles are distinguished (see params).
- * \li Syntax: quote-insert [<LEVEL>] [<SIDE>] [<STYLE>]
+ * \li Syntax: quote-insert [<LEVEL>] [<SIDE> <STYLE>]
  * \li Params: <LEVEL>: 'inner' for (i.e., secondary, usually single) quotes, otherwise
  *                       outer (i.e., primary, usually double) quotes will be used.\n
  *             <SIDE>:  'opening' for opening quotes, 'closing' for closing quotes,
- *                       otherwise the side will be guessed from the context.\n
+ *                       otherwise the side will be guessed from the context. Use 'auto'
+ *                       to force this default. (You will need to give this argument if
+ *                       you also want to give <STYLE>.)\n
  *             <STYLE>: 'british' for `British' quote style (with ``inner quotation'')\n
  *                      'cjk' for Chinese/Japanese/Korean corner bracket quotation marks\n
  *                      'cjk-angle' for Chinese/Japanese/Korean angle bracket quotation marks\n
@@ -3465,6 +3481,7 @@ void LyXAction::init()
  *                      'french' for <<french>> quote style (with ``inner quotation'')\n
  *                      'frenchin' for <<frenchin>> quote style (with <<inner quotation>>) ["in" = Imprimerie Nationale]\n
  *                      'german' for ,,German`` quote style (with ,inner quotation`)\n
+ *                     'hebrew' for ''hebrew,, quote style (with 'inner quotation,)\n
  *                      'plain' for "Plain" quote style (with 'inner quotation')\n
  *                      'polish' for ,,Polish'' quote style (with ,inner quotation')\n
  *                      'swedish' for ''Swedish'' quote style (with 'inner quotation')\n
@@ -3826,7 +3843,7 @@ void LyXAction::init()
  *             spell checker dictionary.
  *             The default for the language is retrieved from the cursor position.
  * \li Syntax: spelling-add [<STRING>] [<LANG>]
- * \li Params: <WORD>: word to add
+ * \li Params: <WORD>: word to add\n
                <LANG>: language name (see file languages)
  * \li Origin: spitz, 18 Jan 2010
  * \endvar
@@ -3839,8 +3856,8 @@ void LyXAction::init()
  *             spell checker dictionary.
  *             The default for the language is retrieved from the cursor position.
  * \li Syntax: spelling-add-local [<STRING>] [<LANG>]
- * \li Params: <WORD>: word to add
-              <LANG>: language name (see file languages)
+ * \li Params: <WORD>: word to add\n
+               <LANG>: language name (see file languages)
  * \li Origin: spitz, 6 Mar 2021
  * \endvar
  */
@@ -3852,8 +3869,8 @@ void LyXAction::init()
  *             spell checker dictionary.
  *             The default for the language is retrieved from the cursor position.
  * \li Syntax: spelling-remove-local [<STRING>] [<LANG>]
- * \li Params: <WORD>: word to remove
-              <LANG>: language name (see file languages)
+ * \li Params: <WORD>: word to remove\n
+               <LANG>: language name (see file languages)
  * \li Origin: spitz, 7 Mar 2021
  * \endvar
  */
@@ -3875,7 +3892,7 @@ void LyXAction::init()
  *             in the current session for the given language.
  *             The default for the language is retrieved from the cursor position.
  * \li Syntax: spelling-ignore [<WORD>] [<LANG>]
- * \li Params: <WORD>: word to ignore
+ * \li Params: <WORD>: word to ignore\n
                <LANG>: language name (see file languages)
  * \li Origin: spitz, 18 Jan 2010
  * \endvar
@@ -3888,8 +3905,8 @@ void LyXAction::init()
  *             spell checker dictionary.
  *             The default for the language is retrieved from the cursor position.
  * \li Syntax: spelling-remove [<STRING>] [<LANG>]
- * \li Params: <WORD>: word to remove
*             <LANG>: language name (see file languages)
+ * \li Params: <WORD>: word to remove\n
              <LANG>: language name (see file languages)
  * \li Origin: SWitt, 28 July 2010
  * \endvar
  */
@@ -3908,6 +3925,16 @@ void LyXAction::init()
  * \endvar
  */
                { LFUN_STATISTICS, "statistics", ReadOnly, System },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_STATISTICS_REFERENCE_CLAMP
+ * \li Action: Count statistics relative to the current value.
+               In other words all future values will be subtracted by this value.
+ * \li Syntax: statistics-reference-clamp [reset]
+ * \li Params: reset: remove the clamp, i.e. count in the absolute numbers again
+ * \li Origin: sanda, Mar 28 2024
+ * \endvar
+ */
+               { LFUN_STATISTICS_REFERENCE_CLAMP, "statistics-reference-clamp", ReadOnly, System },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_TABULAR_FEATURE
@@ -4071,7 +4098,7 @@ void LyXAction::init()
  * \var lyx::FuncCode lyx::LFUN_THESAURUS_ENTRY
  * \li Action: Look up thesaurus entries with respect to the word under the cursor.
  * \li Syntax: thesaurus-entry [<STRING>] [lang=<LANG>]
- * \li Params: <STRING>: word to look up
+ * \li Params: <STRING>: word to look up\n
                <LANG>: language (see file languages)
  * \li Origin: Levon, 20 Jul 2001
  * \endvar
@@ -4096,8 +4123,8 @@ void LyXAction::init()
  * \li Notion: Skipping "auto" when allowauto is false.
  * \li Syntax: toolbar-set <NAME> [on|off|auto]
  * \li Params: <NAME>: standard|extra|table|math|mathmacrotemplate|\n
-                      minibuffer|review|view/update|math_panels|vcs|
-                      view-others|update-others
+                       minibuffer|review|view/update|math_panels|vcs|\n
+                       view-others|update-others
  * \li Origin: spitz, 17 Dec 2020
  * \endvar
  */
@@ -4109,7 +4136,7 @@ void LyXAction::init()
  * \li Notion: Skipping "auto" when allowauto is false.
  * \li Syntax: toolbar-toggle <NAME> [allowauto]
  * \li Params: <NAME>: standard|extra|table|math|mathmacrotemplate|\n
-                       minibuffer|review|view/update|math_panels|vcs|
+                       minibuffer|review|view/update|math_panels|vcs|\n
                        view-others|update-others
  * \li Origin: Edwin, 21 May 2007
  * \endvar