lyx_mirror/src/insets/mailinset.C
Angus Leeming 7ac850e36d Rewrite the MailInset as suggested to Andr��.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6438 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-10 22:12:07 +00:00

41 lines
796 B
C

// -*- C++ -*-
/**
* \file mailinset.C
* 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 "inset.h"
#include "BufferView.h"
#include "frontends/LyXView.h"
#include "frontends/Dialogs.h"
#include "support/LAssert.h"
#include "Lsstream.h"
void MailInset::showDialog(BufferView * bv) const
{
lyx::Assert(bv);
bv->owner()->getDialogs().show(name(), inset2string(), &inset());
}
void MailInset::updateDialog(BufferView * bv) const
{
lyx::Assert(bv);
bv->owner()->getDialogs().update(name(), inset2string());
}
void MailInset::hideDialog() const
{
Dialogs::hide()(name(), &inset());
}