mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
LFUN_SERVER_GET_NAME -> LFUN_SERVER_GET_FILENAME.
Make the naming unambiguous. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25491 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6033b020f3
commit
8823b29cd5
@ -74,6 +74,9 @@ Some of the LyX functions have changed names:
|
||||
- The functions LFUN_FONT_FREE_APPLY/UPDATE has been renamed to
|
||||
LFUN_TEXTSTYLE_APPLY/UPDATE.
|
||||
|
||||
- The functions LFUN_SERVER_GET_NAME has been renamed to
|
||||
LFUN_SERVER_GET_FILENAME.
|
||||
|
||||
|
||||
The following new LyX functions have been introduced:
|
||||
|
||||
|
@ -136,7 +136,7 @@ enum FuncCode
|
||||
LFUN_SERVER_CHAR_AFTER,
|
||||
LFUN_LINEATCURSOR,
|
||||
LFUN_SERVER_GET_LAYOUT,
|
||||
LFUN_SERVER_GET_NAME,
|
||||
LFUN_SERVER_GET_FILENAME,
|
||||
// 90
|
||||
LFUN_SERVER_NOTIFY,
|
||||
LFUN_SERVER_GOTO_FILE_ROW,
|
||||
|
@ -2314,7 +2314,13 @@ void LyXAction::init()
|
||||
|
||||
{ LFUN_SERVER_CHAR_AFTER, "server-char-after", ReadOnly, System },
|
||||
{ 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.
|
||||
|
@ -564,7 +564,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
||||
case LFUN_HELP_OPEN:
|
||||
case LFUN_DROP_LAYOUTS_CHOICE:
|
||||
case LFUN_MENU_OPEN:
|
||||
case LFUN_SERVER_GET_NAME:
|
||||
case LFUN_SERVER_GET_FILENAME:
|
||||
case LFUN_SERVER_NOTIFY:
|
||||
case LFUN_SERVER_GOTO_FILE_ROW:
|
||||
case LFUN_DIALOG_HIDE:
|
||||
@ -1079,7 +1079,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
|
||||
break;
|
||||
|
||||
// --- lyxserver commands ----------------------------
|
||||
case LFUN_SERVER_GET_NAME:
|
||||
case LFUN_SERVER_GET_FILENAME:
|
||||
LASSERT(lyx_view_ && lyx_view_->buffer(), /**/);
|
||||
setMessage(from_utf8(lyx_view_->buffer()->absFileName()));
|
||||
LYXERR(Debug::INFO, "FNAME["
|
||||
|
Loading…
Reference in New Issue
Block a user