mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
1eb8155fa0
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
66 lines
1.1 KiB
C
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);
|
|
}
|