lyx_mirror/src/mathed/math_xyarrowinset.h
André Pönitz fe87869cb7 fonts as insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4289 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-30 07:09:54 +00:00

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