#include "outputparams.h"
#include "sgml.h"
-#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-
using std::string;
using std::auto_ptr;
using std::endl;
-
RefInset::RefInset()
: CommandInset("ref")
{}
case LFUN_INSET_DIALOG_UPDATE: {
string const data = createDialogStr("ref");
- if (cur.bv().owner()->getDialogs().visible("ref"))
- cur.bv().owner()->getDialogs().update("ref", data);
+ cur.bv().updateDialog("ref", data);
break;
}
if (cmd.button() == mouse_button::button1) {
// Eventually trigger dialog with button 3, not 1
string const data = createDialogStr("ref");
- cur.bv().owner()->getDialogs().show("ref", data, this);
+ cur.bv().showInsetDialog("ref", data, this);
break;
}
cur.undispatched();