]> git.lyx.org Git - lyx.git/blobdiff - src/LyXAction.cpp
Fix the rest of bug 5010.
[lyx.git] / src / LyXAction.cpp
index df4004021dc9826981ab948ffded0700154c8914..5dd8e195ef44ae8a5beaaf5ab35fce0a747692f7 100644 (file)
@@ -409,6 +409,10 @@ void LyXAction::init()
  * \li Action: Inserts CharStyle, Custom inset or XML short element.
  * \li Notion: Look into the Customization manual for more information about
                these elements.\n
+               To make this command enabled the layout file for the document
+               class you're using has to load the character styles. There are
+               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
@@ -417,7 +421,7 @@ void LyXAction::init()
                     sub-menu this flex inset is in on the LyX menu tree. 
                     If Standard (currently unused): none of these.
               Name: This name must be defined either in your layout file
-                    or imported by some module. The definition is\n
+                    or imported by some module. The definition is \n
                     InsetLayout <TYPE:Name>
  * \li Sample: flex-insert CharStyle:Code
  * \endvar
@@ -1071,7 +1075,6 @@ void LyXAction::init()
  * \endvar
  */
                { LFUN_DEPTH_INCREMENT, "depth-increment", Noop, Edit },
-               { LFUN_ENVIRONMENT_INSERT, "environment-insert", Noop, Edit },
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_FONT_BOLD
@@ -1787,6 +1790,28 @@ void LyXAction::init()
  * \endvar
  */
                { LFUN_TABULAR_INSERT, "tabular-insert", Noop, Edit },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_TABULAR_FEATURE
+ * \li Action: Sets various features to the table/cell on the current cursor position.
+ * \li Notion: Various math-environment features are handled here as well, e.g.
+               add-vline-left/right for Grid/Cases environment
+ * \li Syntax: tabular-feature <FEATURE> [<ARG>]
+ * \li Params: <FEATURE>: append-row|append-column|delete-row|delete-column|copy-row|copy-column|
+                       toggle-line-top|toggle-line-bottom|toggle-line-left|toggle-line-right|
+                       align-left|align-right|align-center|align-block|valign-top|valign-bottom|
+                       valign-middle|m-align-left|m-align-right|m-align-center|m-valign-top|
+                       m-valign-bottom|m-valign-middle|multicolumn|set-all-lines|unset-all-lines|
+                       set-longtabular|unset-longtabular|set-pwidth|set-mpwidth|
+                       set-rotate-tabular|unset-rotate-tabular|toggle-rotate-tabular|
+                       set-rotate-cell|unset-rotate-cell|toggle-rotate-cell|set-usebox|set-lthead|
+                       unset-lthead|set-ltfirsthead|unset-ltfirsthead|set-ltfoot|unset-ltfoot|
+                       set-ltlastfoot|unset-ltlastfoot|set-ltnewpage|toggle-ltcaption|
+                       set-special-column|set-special-multi|set-booktabs|unset-booktabs|
+                       set-top-space|set-bottom-space|set-interline-space|set-border-lines \n
+               <ARG>: additional argument for some commands, use debug mode to explore its values.
+ * \li Origin: Jug, 28 Jul 2000
+ * \endvar
+ */
                { LFUN_TABULAR_FEATURE, "tabular-feature", Noop, Edit },
 /*!
  * \var lyx::FuncCode lyx::LFUN_CELL_BACKWARD
@@ -1818,7 +1843,21 @@ void LyXAction::init()
                { LFUN_VC_REVERT, "vc-revert", ReadOnly, System },
                { LFUN_VC_UNDO_LAST, "vc-undo-last", ReadOnly, System },
 
+/*!
+ * \var lyx::FuncCode lyx::LFUN_CHANGES_TRACK
+ * \li Action: Toggles change tracking to on/off.
+ * \li Syntax: changes-track
+ * \li Origin: levon, 1 Oct 2002
+ * \endvar
+ */
                { LFUN_CHANGES_TRACK, "changes-track", Noop, Edit },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_CHANGES_OUTPUT
+ * \li Action: Toggles showing of change tracking in typesetted output.
+ * \li Syntax: changes-output
+ * \li Origin: jspitzm, 21 Jan 2005
+ * \endvar
+ */
                { LFUN_CHANGES_OUTPUT, "changes-output", Noop, Edit },
                { LFUN_CHANGE_NEXT, "change-next", ReadOnly, Edit },
                { LFUN_CHANGES_MERGE, "changes-merge", Noop, Edit },
@@ -2240,20 +2279,72 @@ void LyXAction::init()
  */
                { LFUN_DIALOG_DISCONNECT_INSET, "dialog-disconnect-inset", Noop, Edit },
 
+/*!
+ * \var lyx::FuncCode lyx::LFUN_MOUSE_PRESS
+ * \li Action: This function is called when mouse button is pressed (inside workarea).
+               Action depends on the context.
+ * \li Notion: This is internal LFUN, not to be used by users.
+ * \li Origin: André, 9 Aug 2002
+ * \endvar
+ */
                { LFUN_MOUSE_PRESS, "", ReadOnly, Hidden },
-               { LFUN_MOUSE_MOTION, "", ReadOnly | SingleParUpdate, Hidden },
-               { LFUN_MOUSE_RELEASE, "", ReadOnly, Hidden },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_MOUSE_DOUBLE
+ * \li Action: This function is called when double click on mouse button is
+               pressed (inside workarea). Action depends on the context.
+ * \li Notion: This is internal LFUN, not to be used by users.
+ * \li Origin: André, 9 Aug 2002
+ * \endvar
+ */
                { LFUN_MOUSE_DOUBLE, "", ReadOnly, Hidden },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_MOUSE_TRIPLE
+ * \li Action: This function is called when triple click on mouse button is
+               pressed (inside workarea). Action depends on the context.
+ * \li Notion: This is internal LFUN, not to be used by users.
+ * \li Origin: André, 9 Aug 2002
+ * \endvar
+ */
                { LFUN_MOUSE_TRIPLE, "", ReadOnly, Hidden },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_MOUSE_MOTION
+ * \li Action: This function is called when mouse cursor is moving over the text.
+               Action depends on the context.
+ * \li Notion: This is internal LFUN, not to be used by users.
+ * \li Origin: André, 9 Aug 2002
+ * \endvar
+ */
+               { LFUN_MOUSE_MOTION, "", ReadOnly | SingleParUpdate, Hidden },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_MOUSE_RELEASE
+ * \li Action: This function is called when mouse button is released (inside workarea).
+               Action depends on the context.
+ * \li Notion: This is internal LFUN, not to be used by users.
+ * \li Origin: André, 9 Aug 2002
+ * \endvar
+ */
+               { LFUN_MOUSE_RELEASE, "", ReadOnly, Hidden },
 
                { LFUN_KEYMAP_OFF, "keymap-off", ReadOnly, Edit },
                { LFUN_KEYMAP_PRIMARY, "keymap-primary", ReadOnly, Edit },
                { LFUN_KEYMAP_SECONDARY, "keymap-secondary", ReadOnly, Edit },
                { LFUN_KEYMAP_TOGGLE, "keymap-toggle", ReadOnly, Edit },
 
-               { LFUN_SERVER_CHAR_AFTER, "server-char-after", ReadOnly, System },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_SERVER_GET_LAYOUT
+ * \li Action: Returns the current layout (that is environment) name
+               on the cursor position.
+ * \li Syntax: server-get-layout
+ * \endvar
+ */
                { LFUN_SERVER_GET_LAYOUT, "server-get-layout", ReadOnly, System },
-               { LFUN_SERVER_GET_NAME, "server-get-name", ReadOnly, System },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_SERVER_GET_FILENAME
+ * \li Action: Returns path and file name of the currently edited document.
+ * \li Syntax: server-get-filename
+ * \endvar
+ */
+               { LFUN_SERVER_GET_FILENAME, "server-get-filename", ReadOnly, System },
 /*!
  * \var lyx::FuncCode lyx::LFUN_SERVER_GOTO_FILE_ROW
  * \li Action: Sets the cursor position based on the row number of generated TeX file.
@@ -2262,6 +2353,13 @@ void LyXAction::init()
  * \endvar
  */
                { LFUN_SERVER_GOTO_FILE_ROW, "server-goto-file-row", ReadOnly, System },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_SERVER_NOTIFY
+ * \li Action: Sends notify message about the last key-sequence to client.
+ * \li Notion: This can be used to grab last key-sequence used inside the LyX window.
+ * \li Syntax: server-notify
+ * \endvar
+ */
                { LFUN_SERVER_NOTIFY, "server-notify", ReadOnly, System },
 /*!
  * \var lyx::FuncCode lyx::LFUN_SERVER_SET_XY