mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
2b8ef58dc0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3804 a592a061-630c-0410-9148-cb99ea01b6c8
54 lines
888 B
C++
54 lines
888 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 const & st) const;
|
|
///
|
|
void draw(Painter & 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
|