#include "debug.h"
#include "gettext.h"
#include "LaTeXFeatures.h"
-#include "LyXView.h"
+#include "frontends/LyXView.h"
#include "frontends/Dialogs.h"
#include "lyxfunc.h"
#include "BufferView.h"
: InsetCommand(p), isLatex(buf.isLatex())
{}
-void InsetRef::edit(BufferView * bv, int, int, unsigned int button)
+void InsetRef::edit(BufferView * bv, int, int, mouse_button::state button)
{
// Eventually trigger dialog with button 3 not 1
- if (button == 3)
- bv->owner()->getLyXFunc()->
+ if (button == mouse_button::button3)
+ bv->owner()->getLyXFunc()->
dispatch(LFUN_REF_GOTO, getContents());
- else if (button == 1)
+ else if (button == mouse_button::button1)
bv->owner()->getDialogs()->showRef(this);
}