lyx_mirror/src/frontends/controllers/ControlERT.C
Angus Leeming 1eb8155fa0 This file is part of LyX, the document processor.
Licence details can be found in the file COPYING.

and thank God for sed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5211 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-05 15:14:23 +00:00

66 lines
1.1 KiB
C

/**
* \file ControlERT.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Jürgen Vigna
* \author Angus Leeming
*
* Full author contact details are available in file CREDITS
*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "ControlERT.h"
// sorry this is just a temporary hack we should include vspace.h! (Jug)
extern const char * stringFromUnit(int);
ControlERT::ControlERT(LyXView & lv, Dialogs & d)
: ControlInset<InsetERT, ERTParams>(lv, d)
{}
void ControlERT::applyParamsToInset()
{
inset()->status(bufferview(), params().status);
}
void ControlERT::applyParamsNoInset()
{
}
ERTParams const ControlERT::getParams(InsetERT const & inset)
{
return ERTParams(inset);
}
ERTParams::ERTParams()
: status(InsetERT::Collapsed)
{}
ERTParams::ERTParams(InsetERT const & inset)
: status(inset.status())
{}
bool operator==(ERTParams const & p1, ERTParams const & p2)
{
return (p1.status == p2.status);
}
bool operator!=(ERTParams const & p1, ERTParams const & p2)
{
return !(p1 == p2);
}