X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXAction.cpp;h=a9307c3bc63181ba55bf09a4064d2a64da9b9952;hb=51db94b350a7a777329f20d0ea99f273df7bd164;hp=d2e92b1c949f60cc2d76d14b04679e305a44bf5a;hpb=bcb002039b1a0e4893f18a032e02b6f6368924f9;p=lyx.git diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index d2e92b1c94..a9307c3bc6 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -1517,9 +1517,9 @@ void LyXAction::init() * \li Params: outer: If this is given, LyX will split the outermost environment in the current nesting hierarchy.\n previous: If this is given, LyX will split the environment in the previous - paragraph (is there is one).\n - before: If this is given, the new environment will be appended rather than - prepended. + paragraph (if there is one).\n + before: If this is given, the new environment will be appended rather than + prepended. * \li Origin: spitz, 23 Dec 2012 * \endvar */ @@ -2014,6 +2014,11 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_INSET_EDIT * \li Action: Edit the inset at cursor with an external application, if one is attributed. + If the inset is file based, the referenced file is edited. + Otherwise, the inset contents is written to a temporary file, + 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 [] * \li Params: : Parameters for the inset. \n Currently only the filename will be considered. @@ -2023,6 +2028,17 @@ void LyXAction::init() { LFUN_INSET_EDIT, "inset-edit", ReadOnly | AtPoint, Edit }, + /*! + * \var lyx::FuncCode lyx::LFUN_INSET_END_EDIT + * \li Action: End editing the inset at cursor with an external application. + * This replaces the inset contents with the contents of the + * temporary file, deletes the file and unlocks the inset. + * \li Syntax: inset-end-edit + * \li Origin: gb, 11 Oct 2015 + * \endvar + */ + { LFUN_INSET_END_EDIT, "inset-end-edit", ReadOnly | AtPoint, Edit }, + /*! * \var lyx::FuncCode lyx::LFUN_INSET_END * \li Action: Move the cursor to the end of the current inset if it @@ -2493,6 +2509,25 @@ void LyXAction::init() { LFUN_MARK_TOGGLE, "mark-toggle", ReadOnly, Edit }, +/*! + * \var lyx::FuncCode lyx::LFUN_MASTER_BUFFER_EXPORT + * \li Action: Exports the master buffer (document) to the given format. + * \li Syntax: master-buffer-export [] [] + * \li Params: is one of the formats which you can find in + Tools->Preferences->File formats->Format. + Usual format you will enter is "pdf2" (pdflatex), + "pdflatex" (plain tex for pdflatex) or "ps" for postscript.\n + Note that "custom" is not allowed in this case.\n + If absent or "default", then the default output format of the + document is used.\n + If present, this argument provides the export destination + filename. Its containing folder will also be the destination + folder, where all the needed external files will be copied. + * \li Origin: rkh, 18 April 2018 + * \endvar + */ + { LFUN_MASTER_BUFFER_EXPORT, "master-buffer-export", ReadOnly, Buffer }, + /*! * \var lyx::FuncCode lyx::LFUN_MASTER_BUFFER_UPDATE * \li Action: Update (export) the document built from the master buffer, @@ -3841,10 +3876,10 @@ void LyXAction::init() /*! * \var lyx::FuncCode lyx::LFUN_UNICODE_INSERT * \li Action: Inserts a single unicode character. - * \li Syntax: unicode-insert - * \li Params: : The character to insert, given as its code + * \li Syntax: unicode-insert ... + * \li Params: : The character to insert, given as its code point, in hexadecimal. - * \li Sample: unicode-insert 0x0100 + * \li Sample: unicode-insert 0x0100 0x0259 * \li Origin: Lgb, 22 Oct 2006 * \endvar */