X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXFunc.cpp;h=ee4702067d5cc75a9b817a00af64c086c2f48b0b;hb=027563eec2d2a1b81391b221f9ca40d823713235;hp=7536a0f44104c5ca73940beeb22a395cdea7b213;hpb=a98f82c292c7047478e3362449ab21aa35e03375;p=lyx.git diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 7536a0f441..ee4702067d 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -66,6 +66,7 @@ #include "insets/InsetGraphics.h" #include "insets/InsetInclude.h" #include "insets/InsetNote.h" +#include "insets/InsetSpace.h" #include "insets/InsetTabular.h" #include "insets/InsetVSpace.h" #include "insets/InsetWrap.h" @@ -445,6 +446,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const // FIXME: these cases should be hidden in GuiView::getStatus(). case LFUN_DIALOG_TOGGLE: case LFUN_DIALOG_SHOW: + case LFUN_UI_TOGGLE: case LFUN_DIALOG_UPDATE: // FIXME: add special handling for about and prefs dialogs here // which do not depend on GuiView. @@ -608,7 +610,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const case LFUN_DIALOG_HIDE: case LFUN_DIALOG_DISCONNECT_INSET: case LFUN_BUFFER_CHILD_OPEN: - case LFUN_UI_TOGGLE: case LFUN_CURSOR_FOLLOWS_SCROLLBAR_TOGGLE: case LFUN_KEYMAP_OFF: case LFUN_KEYMAP_PRIMARY: @@ -720,7 +721,7 @@ bool loadLayoutFile(string const & name, string const & buf_path) LayoutFile & tc = LayoutFileList::get()[name]; if (!tc.load(buf_path)) { - docstring s = bformat(_("The document class %1$s." + docstring s = bformat(_("The document class %1$s " "could not be loaded."), from_utf8(name)); Alert::error(_("Could not load class"), s); return false; @@ -1235,6 +1236,11 @@ void LyXFunc::dispatch(FuncRequest const & cmd) data = InsetNoteMailer::params2string(p); break; } + case SPACE_CODE: { + InsetSpaceParams p; + data = InsetSpaceMailer::params2string(p); + break; + } case VSPACE_CODE: { VSpace space; data = InsetVSpaceMailer::params2string(space); @@ -1882,6 +1888,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new) case LyXRC::RC_BIBTEX_COMMAND: case LyXRC::RC_BINDFILE: case LyXRC::RC_CHECKLASTFILES: + case LyXRC::RC_COMPLETION_CURSOR_TEXT: case LyXRC::RC_COMPLETION_INLINE_DELAY: case LyXRC::RC_COMPLETION_INLINE_DOTS: case LyXRC::RC_COMPLETION_INLINE_MATH: