mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
4029fc8836
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9670 a592a061-630c-0410-9148-cb99ea01b6c8
60 lines
1.1 KiB
C
60 lines
1.1 KiB
C
/**
|
|
* \file math_parinset.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author André Pönitz
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "math_parinset.h"
|
|
#include "math_data.h"
|
|
#include "math_mathmlstream.h"
|
|
#include "support/std_ostream.h"
|
|
|
|
|
|
using std::auto_ptr;
|
|
|
|
|
|
MathParInset::MathParInset(MathArray const & ar)
|
|
{
|
|
cells_[0] = ar;
|
|
}
|
|
|
|
|
|
void MathParInset::metrics(MetricsInfo & mi, Dimension & dim) const
|
|
{
|
|
FontSetChanger dummy1(mi.base, "textnormal");
|
|
MathGridInset::metrics(mi);
|
|
dim = dim_;
|
|
}
|
|
|
|
|
|
void MathParInset::draw(PainterInfo & pi, int x, int y) const
|
|
{
|
|
FontSetChanger dummy1(pi.base, "textnormal");
|
|
MathGridInset::draw(pi, x, y);
|
|
}
|
|
|
|
|
|
void MathParInset::write(WriteStream & os) const
|
|
{
|
|
for (idx_type i = 0; i < nargs(); ++i)
|
|
os << cell(i) << "\n";
|
|
}
|
|
|
|
|
|
void MathParInset::infoize(std::ostream & os) const
|
|
{
|
|
os << "Type: Paragraph ";
|
|
}
|
|
|
|
|
|
auto_ptr<InsetBase> MathParInset::doClone() const
|
|
{
|
|
return auto_ptr<InsetBase>(new MathParInset(*this));
|
|
}
|