#include "debug.h"
#include "frontends/Dialogs.h"
-#include "frontends/LyXView.h"
+
+
+namespace lyx {
using std::string;
void MailInset::showDialog(BufferView * bv) const
{
BOOST_ASSERT(bv);
- bv->owner()->getDialogs().show(name(), inset2string(*bv->buffer()),
+ bv->showInsetDialog(name(), inset2string(*bv->buffer()),
&inset());
}
void MailInset::updateDialog(BufferView * bv) const
{
BOOST_ASSERT(bv);
- if (bv->owner()->getDialogs().visible(name()))
- bv->owner()->getDialogs().update(name(),
- inset2string(*bv->buffer()));
+ bv->updateDialog(name(), inset2string(*bv->buffer()));
}
<< "Expected arg " << arg_id << " to be \"" << arg << "\"\n"
<< std::endl;
}
+
+
+} // namespace lyx