]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlCommand.C
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlCommand.C
index d95c53bf2e1166b5f7b3baa5dac018477cd14194..9a81d08cc6d7f4dff15cc78542a0191af835801a 100644 (file)
 
 #include <config.h>
 
+#include "ViewBase.h"
+#include "ButtonControllerBase.h"
 #include "ControlCommand.h"
 #include "buffer.h"
 #include "Dialogs.h"
-#include "lyxfunc.h"
 #include "LyXView.h"
+#include "lyxfunc.h"
+#include "BufferView.h"
 
 ControlCommand::ControlCommand(LyXView & lv, Dialogs & d, kb_action ac)
        : ControlInset<InsetCommand, InsetCommandParams>(lv, d),
@@ -36,21 +39,23 @@ InsetCommandParams const ControlCommand::getParams(string const & arg)
        return params;
 }
 
+
 InsetCommandParams const ControlCommand::getParams(InsetCommand const & inset)
 {
        return inset.params();
 }
 
+
 void ControlCommand::applyParamsToInset()
 {
        inset()->setParams(params());
        lv_.view()->updateInset(inset(), true);
 }
 
+
 void ControlCommand::applyParamsNoInset()
 {
        if (action_ == LFUN_NOACTION) return;
-
-       lv_.getLyXFunc()->Dispatch(action_, params().getAsString());
+       lv_.getLyXFunc()->dispatch(action_, params().getAsString());
 }