lyx_mirror/src/insets/mailinset.C
Angus Leeming 7668244a77 The inset mailers' inset2string function now requires a Buffer const & arg.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7351 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-23 09:54:21 +00:00

45 lines
906 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"
using namespace lyx::support;
void MailInset::showDialog(BufferView * bv) const
{
Assert(bv);
bv->owner()->getDialogs().show(name(), inset2string(*bv->buffer()),
&inset());
}
void MailInset::updateDialog(BufferView * bv) const
{
Assert(bv);
if(bv->owner()->getDialogs().visible(name()))
bv->owner()->getDialogs().update(name(),
inset2string(*bv->buffer()));
}
void MailInset::hideDialog() const
{
Dialogs::hide(name(), &inset());
}