]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.C
Final touch 'inset display()'; fix 'is a bit silly' bug
[lyx.git] / src / insets / insetref.C
index c4affe9143683c3378234f064257c5691d60b0fb..959f3e903ce9182c52bba1e7e9b114db7253e30c 100644 (file)
@@ -9,22 +9,25 @@
  */
 #include <config.h>
 
-
 #include "insetref.h"
+
 #include "buffer.h"
+#include "BufferView.h"
 #include "funcrequest.h"
-#include "debug.h"
 #include "gettext.h"
 #include "LaTeXFeatures.h"
+
 #include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-#include "BufferView.h"
+
 #include "support/lstrings.h"
 
-using namespace lyx::support;
 
+using lyx::support::escape;
+
+using std::string;
 using std::ostream;
 
+
 InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf)
        : InsetCommand(p), isLatex(buf.isLatex())
 {}
@@ -42,7 +45,8 @@ InsetRef::~InsetRef()
 }
 
 
-dispatch_result InsetRef::localDispatch(FuncRequest const & cmd)
+dispatch_result
+InsetRef::priv_dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
 {
        switch (cmd.action) {
        case LFUN_INSET_EDIT:
@@ -55,7 +59,7 @@ dispatch_result InsetRef::localDispatch(FuncRequest const & cmd)
                return DISPATCHED;
 
        default:
-               return InsetCommand::localDispatch(cmd);
+               return InsetCommand::priv_dispatch(cmd, idx, pos);
        }
 }