mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
54 lines
874 B
C++
54 lines
874 B
C++
|
#include <config.h>
|
||
|
|
||
|
#ifdef __GNUG__
|
||
|
#pragma implementation
|
||
|
#endif
|
||
|
|
||
|
#include "math_xymatrixinset.h"
|
||
|
#include "math_mathmlstream.h"
|
||
|
#include "math_streamstr.h"
|
||
|
|
||
|
|
||
|
MathXYMatrixInset::MathXYMatrixInset()
|
||
|
: MathGridInset(1, 1)
|
||
|
{}
|
||
|
|
||
|
|
||
|
MathInset * MathXYMatrixInset::clone() const
|
||
|
{
|
||
|
return new MathXYMatrixInset(*this);
|
||
|
}
|
||
|
|
||
|
|
||
|
void MathXYMatrixInset::metrics(MathMetricsInfo const & st) const
|
||
|
{
|
||
|
MathMetricsInfo mi = st;
|
||
|
if (mi.style == LM_ST_DISPLAY)
|
||
|
mi.style = LM_ST_TEXT;
|
||
|
MathGridInset::metrics(mi);
|
||
|
}
|
||
|
|
||
|
|
||
|
void MathXYMatrixInset::write(WriteStream & os) const
|
||
|
{
|
||
|
os << "\\xymatrix{";
|
||
|
MathGridInset::write(os);
|
||
|
os << "}\n";
|
||
|
}
|
||
|
|
||
|
|
||
|
void MathXYMatrixInset::normalize(NormalStream & os) const
|
||
|
{
|
||
|
os << "[xymatrix ";
|
||
|
MathGridInset::normalize(os);
|
||
|
os << "]";
|
||
|
}
|
||
|
|
||
|
|
||
|
void MathXYMatrixInset::maplize(MapleStream & os) const
|
||
|
{
|
||
|
os << "xymatrix(";
|
||
|
MathGridInset::maplize(os);
|
||
|
os << ")";
|
||
|
}
|