#include "BufferView.h"
#include "debug.h"
-
-#include "frontends/Dialogs.h"
+#include "LyX.h"
namespace lyx {
void MailInset::showDialog(BufferView * bv) const
{
BOOST_ASSERT(bv);
- bv->showInsetDialog(name(), inset2string(*bv->buffer()),
+ bv->showInsetDialog(name(), inset2string(bv->buffer()),
&inset());
}
void MailInset::updateDialog(BufferView * bv) const
{
BOOST_ASSERT(bv);
- bv->updateDialog(name(), inset2string(*bv->buffer()));
+ bv->updateDialog(name(), inset2string(bv->buffer()));
}
void MailInset::hideDialog() const
{
- Dialogs::hide(name(), &inset());
+ LyX::cref().hideDialogs(name(), &inset());
}