]> git.lyx.org Git - lyx.git/blobdiff - src/insets/mailinset.C
* BufferParams:
[lyx.git] / src / insets / mailinset.C
index 48b2cf2b48958dca397b604f6948cef883fabc74..22db2e8171c1520ce17cd5e161cf6e92b9e011de 100644 (file)
@@ -16,7 +16,9 @@
 #include "debug.h"
 
 #include "frontends/Dialogs.h"
-#include "frontends/LyXView.h"
+
+
+namespace lyx {
 
 using std::string;
 
@@ -24,7 +26,7 @@ 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());
 }
 
@@ -32,9 +34,7 @@ void MailInset::showDialog(BufferView * bv) const
 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()));
 }
 
 
@@ -47,7 +47,10 @@ void MailInset::hideDialog() const
 void print_mailer_error(string const & class_name,
                        string const & data, int arg_id, string const & arg)
 {
-       lyxerr << class_name << "::string2params(" << data << ")\n"
-              << "Expected arg " << arg_id << "to be \"" << arg << '"'
+       lyxerr << '\n' << class_name << "::string2params(" << data << ")\n"
+              << "Expected arg " << arg_id << " to be \"" << arg << "\"\n"
               << std::endl;
 }
+
+
+} // namespace lyx