mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
43 lines
650 B
C++
43 lines
650 B
C++
|
#include <config.h>
|
||
|
|
||
|
#ifdef __GNUG__
|
||
|
#pragma implementation
|
||
|
#endif
|
||
|
|
||
|
#include "math_xyarrowinset.h"
|
||
|
#include "math_mathmlstream.h"
|
||
|
#include "math_streamstr.h"
|
||
|
|
||
|
|
||
|
MathXYArrowInset::MathXYArrowInset()
|
||
|
: MathNestInset(1)
|
||
|
{}
|
||
|
|
||
|
|
||
|
MathInset * MathXYArrowInset::clone() const
|
||
|
{
|
||
|
return new MathXYArrowInset(*this);
|
||
|
}
|
||
|
|
||
|
|
||
|
void MathXYArrowInset::metrics(MathMetricsInfo const & mi) const
|
||
|
{
|
||
|
MathNestInset::metrics(mi);
|
||
|
}
|
||
|
|
||
|
|
||
|
void MathXYArrowInset::write(WriteStream & os) const
|
||
|
{
|
||
|
os << "\\ar{";
|
||
|
MathNestInset::write(os);
|
||
|
os << "}\n";
|
||
|
}
|
||
|
|
||
|
|
||
|
void MathXYArrowInset::normalize(NormalStream & os) const
|
||
|
{
|
||
|
os << "[xyarrow ";
|
||
|
MathNestInset::normalize(os);
|
||
|
os << "]";
|
||
|
}
|