lyx_mirror/src/insets/mailinset.C

43 lines
862 B
C++
Raw Normal View History

// -*- 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(), &inset());
}
void MailInset::updateDialog(BufferView * bv) const
{
Assert(bv);
if(bv->owner()->getDialogs().visible(name()))
bv->owner()->getDialogs().update(name(), inset2string());
}
void MailInset::hideDialog() const
{
Dialogs::hide(name(), &inset());
}