lyx_mirror/src/insets/MailInset.cpp

57 lines
1.0 KiB
C++
Raw Normal View History

/**
* \file MailInset.cpp
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Angus Leeming
*
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "MailInset.h"
#include "BufferView.h"
#include "debug.h"
#include "LyX.h"
#include <boost/assert.hpp>
namespace lyx {
using std::string;
void MailInset::showDialog(BufferView * bv) const
{
BOOST_ASSERT(bv);
bv->showInsetDialog(name(), inset2string(bv->buffer()), &inset());
}
void MailInset::updateDialog(BufferView * bv) const
{
BOOST_ASSERT(bv);
bv->updateDialog(name(), inset2string(bv->buffer()));
}
void MailInset::hideDialog() const
{
LyX::cref().hideDialogs(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;
}
} // namespace lyx