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:
Pavel Sanda 2008-07-07 19:09:06 +00:00
parent 6033b020f3
commit 8823b29cd5
4 changed files with 13 additions and 4 deletions

View File

@ -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:

View File

@ -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,

View File

@ -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.

View 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["