*/
#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())
{}
}
-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:
return DISPATCHED;
default:
- return InsetCommand::localDispatch(cmd);
+ return InsetCommand::priv_dispatch(cmd, idx, pos);
}
}