]> git.lyx.org Git - lyx.git/blobdiff - src/LyXAction.cpp
Do not overwrite read-only files. We now move the file to the backup directory and...
[lyx.git] / src / LyXAction.cpp
index 58c0bacabcc89367de7c59907d01a4079289e206..7a63a9001d67f3360f2f784e9703c5c092a1720c 100644 (file)
@@ -453,16 +453,12 @@ void LyXAction::init()
                a few contained in the Logical Markup module. You can also of
                course create some yourself. \n
                For dissolving the element see #LFUN_INSET_DISSOLVE.
- * \li Syntax: flex-insert <TYPE:Name>
- * \li Params: TYPE: CharStyle|Custom|Element|Standard \n
-                     Identifies whether this is a Character Style, a
-                     Custom Inset or an XML Element, and which dynamical 
-                     sub-menu this flex inset is in on the LyX menu tree. 
-                     If Standard (currently unused): none of these.\n
-               Name: This name must be defined either in your layout file
+ * \li Syntax: flex-insert Name
+ * \li Params: Name: This name must be defined either in your layout file
                      or imported by some module. The definition is 
-                     InsetLayout <TYPE:Name>
- * \li Sample: flex-insert CharStyle:Code
+                     InsetLayout Name or InsetLayout <Flex:Name>. The Flex:
+                     prefix is optional.
+ * \li Sample: flex-insert Code
  * \endvar
  */
                { LFUN_FLEX_INSERT, "flex-insert", Noop, Edit },
@@ -506,6 +502,15 @@ void LyXAction::init()
  * \endvar
  */
                { LFUN_SPECIALCHAR_INSERT, "specialchar-insert", Noop, Edit },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_SCRIPT_INSERT
+ * \li Action: Inserts a subscript or superscript inset.
+ * \li Syntax: script-insert <TYPE>
+ * \li Params: <TYPE>: subscript|superscript
+ * \li Origin: Georg, 23 Nov 2010
+ * \endvar
+ */
+               { LFUN_SCRIPT_INSERT, "script-insert", Noop, Edit },
 /*!
  * \var lyx::FuncCode lyx::LFUN_APPENDIX
  * \li Action: Start (or remove) Appendix on the given cursor position.
@@ -1180,7 +1185,7 @@ void LyXAction::init()
  * \li Action: Pastes text from the active clipboard.
  * \li Syntax: clipboard-paste [<ARG>]
  * \li Params: <ARG>: "paragraph" will cause pasting as one paragraph, i.e. "Join lines".
- * \li Origin: baum, 10 Jul 2006
+ * \li Origin: Georg, 10 Jul 2006
  * \endvar
  */
                { LFUN_CLIPBOARD_PASTE, "clipboard-paste", Noop, Edit },
@@ -1598,7 +1603,7 @@ void LyXAction::init()
                { LFUN_MATH_SUBSCRIPT, "math-subscript", Noop, Math },
 /*!
  * \var lyx::FuncCode lyx::LFUN_MATH_SUPERSCRIPT
- * \li Action: Enters subscript expression in math expression.
+ * \li Action: Enters superscript expression in math expression.
  * \li Syntax: math-superscript
  * \li Origin: vermeer, 12 Dec 2001
  * \endvar
@@ -2089,7 +2094,7 @@ void LyXAction::init()
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_VC_REGISTER
- * \li Action: Register the document as an file inside version control system (RCS, CVS).
+ * \li Action: Register the document as an file inside version control system.
  * \li Notion: File is registered inside cvs, svn or rcs repository acording to the existence
                of cvs/svn/rcs entries in the document's directory. \n
                See LyX Additional Features Manual (Version Control Chapter) for additional
@@ -2110,8 +2115,7 @@ void LyXAction::init()
                { LFUN_VC_CHECK_IN, "vc-check-in", ReadOnly, System },
 /*!
  * \var lyx::FuncCode lyx::LFUN_VC_CHECK_OUT
- * \li Action: Checks-out the document for edit (and locks it for RCS).
- * \li Notion: This is implemented only for RCS and SVN, not CVS.
+ * \li Action: Checks-out the document for edit (and locks it in some cases).
  * \li Syntax: vc-check-out
  * \li Origin: Lgb, 1 Jul 1997
  * \endvar
@@ -2166,7 +2170,6 @@ void LyXAction::init()
  * \var lyx::FuncCode lyx::LFUN_VC_REPO_UPDATE
  * \li Action: Update the local archive directory in which resides
                the current document with the remote repository.
- * \li Notion: This is currently implemented only for SVN.
  * \li Syntax: vc-repo-update
  * \li Origin: sanda, 16 Oct 2009
  * \endvar
@@ -2175,7 +2178,6 @@ void LyXAction::init()
 /*!
  * \var lyx::FuncCode lyx::LFUN_VC_COMPARE
  * \li Action: Compares two revisions of the same file under version control.
- * \li Notion: This is currently implemented only for SVN and RCS.
  * \li Syntax: vc-compare [<REV1>] [<REV2>]
  * \li Params: Revision number either points directly to commit in history
                or if negative number -x it points to (last commit - x).\n
@@ -2300,8 +2302,8 @@ void LyXAction::init()
  * \var lyx::FuncCode lyx::LFUN_INSET_INSERT
  * \li Action: Insert new inset (type given by the parameters).
  * \li Syntax: inset-insert <INSET> <ARGS>
- * \li Params: <INSET>: <bibitem|bibtex|cite|ert|listings|external|graphics|tabular
-                         hyperlink|include|index|label|line|nomencl|vspace|ref|toc>\n
+ * \li Params: <INSET>: <bibitem|bibtex|cite|ert|listings|external|graphics|tabular|
+                         hyperlink|include|index|label|line|nomencl|vspace|ref|toc|script>\n
                <ARGS>: depends on the given inset. Use "lyx -dbg action" to explore.
  * \li Sample: inset-insert ref LatexCommand <Format> reference "<label name>"\end_inset \n
                where <label name> is the name of the referenced label and