mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
7668244a77
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7351 a592a061-630c-0410-9148-cb99ea01b6c8
45 lines
906 B
C
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());
|
|
}
|