mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 07:57:22 +00:00
fe87869cb7
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4289 a592a061-630c-0410-9148-cb99ea01b6c8
54 lines
890 B
C++
54 lines
890 B
C++
// -*- C++ -*-
|
|
#ifndef MATH_XYARROWINSET_H
|
|
#define MATH_ARROWINSET_H
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
// for the \ar stuff in \xymatrix
|
|
|
|
class MathXYMatrixInset;
|
|
|
|
class MathXYArrowInset : public MathNestInset {
|
|
public:
|
|
///
|
|
MathXYArrowInset();
|
|
///
|
|
MathInset * clone() const;
|
|
///
|
|
void metrics(MathMetricsInfo & st) const;
|
|
///
|
|
void draw(MathPainterInfo & pain, int x, int y) const;
|
|
///
|
|
MathXYArrowInset * asXYArrowInset() { return this; }
|
|
|
|
///
|
|
void normalize();
|
|
///
|
|
void write(WriteStream & os) const;
|
|
///
|
|
void normalize(NormalStream &) const;
|
|
|
|
public:
|
|
///
|
|
MathXYMatrixInset const * targetMatrix() const;
|
|
///
|
|
MathXArray const & targetCell() const;
|
|
///
|
|
MathXArray const & sourceCell() const;
|
|
|
|
///
|
|
bool up_;
|
|
///
|
|
mutable MathMetricsInfo mi_;
|
|
///
|
|
mutable LyXFont font_;
|
|
///
|
|
mutable MathXYMatrixInset const * target_;
|
|
};
|
|
|
|
#endif
|