]> git.lyx.org Git - lyx.git/blobdiff - src/insets/mailinset.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / mailinset.C
index ff9e07727c253c011cc767c86270869b3cd5a6a8..6c63619af52f51b1e16eec042263f3d715268c1d 100644 (file)
 #include "mailinset.h"
 
 #include "BufferView.h"
+#include "debug.h"
 
 #include "frontends/Dialogs.h"
 #include "frontends/LyXView.h"
 
-#include "support/LAssert.h"
-
-using namespace lyx::support;
+using std::string;
 
 
 void MailInset::showDialog(BufferView * bv) const
 {
-       Assert(bv);
+       BOOST_ASSERT(bv);
        bv->owner()->getDialogs().show(name(), inset2string(*bv->buffer()),
                                       &inset());
 }
@@ -32,8 +31,8 @@ void MailInset::showDialog(BufferView * bv) const
 
 void MailInset::updateDialog(BufferView * bv) const
 {
-       Assert(bv);
-       if(bv->owner()->getDialogs().visible(name()))
+       BOOST_ASSERT(bv);
+       if (bv->owner()->getDialogs().visible(name()))
                bv->owner()->getDialogs().update(name(),
                                                 inset2string(*bv->buffer()));
 }
@@ -43,3 +42,12 @@ void MailInset::hideDialog() const
 {
        Dialogs::hide(name(), &inset());
 }
+
+
+void print_mailer_error(string const & class_name,
+                       string const & data, int arg_id, string const & arg)
+{
+       lyxerr << '\n' << class_name << "::string2params(" << data << ")\n"
+              << "Expected arg " << arg_id << " to be \"" << arg << "\"\n"
+              << std::endl;
+}