X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FLyXAction.cpp;h=a9789ad29037467c94d4ea959fe06c618a77134b;hb=62af7ee772f16f154225d2d0b65d77f4376b6001;hp=c2738f9363336b0d4c11b61c81dcf573bd1201a4;hpb=e0f5641089b5d2498b0e25303c5c86ed5a136e76;p=lyx.git diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index c2738f9363..a9789ad290 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -332,6 +332,20 @@ void LyXAction::init() { LFUN_BIBTEX_DATABASE_DEL, "bibtex-database-del", Noop, Edit }, +/*! + * \var lyx::FuncCode lyx::LFUN_BIDI + * \li Action: Helper function for bidirectional toolbar icons + * \li Notion: In a text, the function is marked as `unknown' when the + current direction does not correspond to DIRECTION (ltr + or rtl). Otherwise the function behaves exactly as + ACTION. The result is that ACTION will be associated to + a different icon depending on text direction. + * \li Syntax: bidi + * \li Origin: JMarc, 21 July 2019 + * \endvar + */ + { LFUN_BIDI, "bidi", Noop, System }, + /*! * \var lyx::FuncCode lyx::LFUN_BOOKMARK_CLEAR * \li Action: Clears the list of saved bookmarks. @@ -763,6 +777,15 @@ void LyXAction::init() */ { LFUN_BUFFER_RELOAD, "buffer-reload", ReadOnly, Buffer }, +/*! + * \var lyx::FuncCode lyx::LFUN_BUFFER_RESET_EXPORT + * \li Action: Removes the auxiliary file before next export to assure export is done afresh. + * \li Syntax: buffer-reset-export + * \li Origin: spitz, 27 Dec 2019 + * \endvar + */ + { LFUN_BUFFER_RESET_EXPORT, "buffer-reset-export", ReadOnly, Buffer }, + /*! * \var lyx::FuncCode lyx::LFUN_BUFFER_SAVE_AS_DEFAULT * \li Action: Save the current document settings as default. @@ -1517,8 +1540,7 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_DROP_LAYOUTS_CHOICE * \li Action: Displays list of layout choices. - * \li Notion: In the current (as of 2007) Qt4 frontend, this LFUN opens the - dropbox allowing for choice of layout. + * \li Notion: This LFUN opens the dropbox allowing for choice of layout. * \li Syntax: drop-layouts-choice * \endvar */ @@ -1901,6 +1923,19 @@ void LyXAction::init() */ { LFUN_ICON_SIZE, "icon-size", NoBuffer, Buffer }, + +/*! + * \var lyx::FuncCode lyx::LFUN_IF_RELATIVES + * \li Action: Helper function for master-related actions + * \li Notion: In a buffer, the function will be disabled if the buffer + * has no master or children. It thus allows to enable + * actions only in documents with master/children + * \li Syntax: ifrelatives + * \li Origin: spitz, 2 January 2020 + * \endvar + */ + { LFUN_IF_RELATIVES, "ifrelatives", Noop, Buffer }, + /*! * \var lyx::FuncCode lyx::LFUN_INDEX_INSERT * \li Action: Inserts Index entry. @@ -2565,6 +2600,26 @@ void LyXAction::init() * \endvar */ { LFUN_MASTER_BUFFER_EXPORT, "master-buffer-export", ReadOnly, Buffer }, + +/*! + * \var lyx::FuncCode lyx::LFUN_MASTER_BUFFER_FORALL + * \li Action: Applies a command to a buffer and all it children, starting from the master. + * \li Syntax: master-buffer-forall + * \li Params: : The command to be applied to the buffers. + * \li Sample: Close all Notes in buffers: \n + master-buffer-forall inset-forall Note inset-toggle close \n + Toggle change tracking on buffers: \n + master-buffer-forall changes-track \n + Toggle read-only for buffers: \n + master-buffer-forall buffer-toggle-read-only \n + Show statistics for individual buffers: \n + master-buffer-forall statistics \n + Activate the branch named "Solutions" in buffers: \n + master-buffer-forall branch-activate Solutions \n + * \li Origin: spitz, 31 Dec 2019 + * \endvar + */ + { LFUN_MASTER_BUFFER_FORALL, "master-buffer-forall", ReadOnly | Argument, Buffer }, /*! * \var lyx::FuncCode lyx::LFUN_MASTER_BUFFER_UPDATE @@ -2602,7 +2657,7 @@ void LyXAction::init() * \li Syntax: math-matrix [] * \li Params: : Decoration determines the LaTeX name of the matrix that should be created. Possible values include - pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix and + pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix, smallmatrix, and matrix. The default is 'matrix'. * \li Sample: math-ams-matrix 3 3 bmatrix * \endvar @@ -3255,6 +3310,7 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_PARAGRAPH_SELECT * \li Action: Move cursor to beginning of current paragraph and select to the end in downward direction + * \li Notion: This function is by default bound to triple mouse click * \li Syntax: paragraph-select * \li Origin: Kornel, 16 Apr 2019 * \endvar