2002-02-08 08:03:38 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-19 13:00:56 +00:00
|
|
|
|
/**
|
2006-09-17 09:14:18 +00:00
|
|
|
|
* \file InsetMathXYArrow.h
|
2003-08-19 13:00:56 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
2002-02-08 08:03:38 +00:00
|
|
|
|
#ifndef MATH_XYARROWINSET_H
|
|
|
|
|
#define MATH_ARROWINSET_H
|
|
|
|
|
|
2006-09-17 09:14:18 +00:00
|
|
|
|
#include "InsetMathNest.h"
|
2007-04-26 04:41:58 +00:00
|
|
|
|
#include "MetricsInfo.h"
|
2002-02-08 08:03:38 +00:00
|
|
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
|
|
2002-02-11 08:19:02 +00:00
|
|
|
|
// for the \ar stuff in \xymatrix
|
|
|
|
|
|
2006-09-16 18:11:38 +00:00
|
|
|
|
class InsetMathXYMatrix;
|
2002-02-08 08:03:38 +00:00
|
|
|
|
|
2006-09-16 18:11:38 +00:00
|
|
|
|
class InsetMathXYArrow : public InsetMathNest {
|
2002-03-21 17:42:56 +00:00
|
|
|
|
public:
|
2002-02-08 08:03:38 +00:00
|
|
|
|
///
|
2006-09-16 18:11:38 +00:00
|
|
|
|
InsetMathXYArrow();
|
2002-02-08 08:03:38 +00:00
|
|
|
|
///
|
2007-08-30 18:03:17 +00:00
|
|
|
|
virtual Inset * clone() const;
|
2002-02-08 08:03:38 +00:00
|
|
|
|
///
|
2006-11-28 15:15:49 +00:00
|
|
|
|
bool metrics(MetricsInfo & mi) const;
|
2002-02-08 08:03:38 +00:00
|
|
|
|
///
|
2003-03-21 14:20:48 +00:00
|
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
2002-02-11 08:19:02 +00:00
|
|
|
|
///
|
2006-09-16 18:11:38 +00:00
|
|
|
|
InsetMathXYArrow * asXYArrowInset() { return this; }
|
2002-02-08 08:03:38 +00:00
|
|
|
|
|
2002-02-11 08:19:02 +00:00
|
|
|
|
///
|
|
|
|
|
void normalize();
|
2002-02-08 08:03:38 +00:00
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
|
///
|
|
|
|
|
void normalize(NormalStream &) const;
|
2002-02-11 08:19:02 +00:00
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
///
|
2006-09-16 18:11:38 +00:00
|
|
|
|
InsetMathXYMatrix const * targetMatrix() const;
|
2002-02-11 08:19:02 +00:00
|
|
|
|
///
|
2007-04-26 16:05:57 +00:00
|
|
|
|
MathData const & targetCell() const;
|
2002-02-11 08:19:02 +00:00
|
|
|
|
///
|
2007-04-26 16:05:57 +00:00
|
|
|
|
MathData const & sourceCell() const;
|
2002-02-11 08:19:02 +00:00
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
bool up_;
|
|
|
|
|
///
|
2003-03-21 14:20:48 +00:00
|
|
|
|
mutable MetricsInfo mi_;
|
2002-03-19 16:55:58 +00:00
|
|
|
|
///
|
2007-04-29 18:17:15 +00:00
|
|
|
|
mutable Font font_;
|
2002-03-19 16:55:58 +00:00
|
|
|
|
///
|
2006-09-16 18:11:38 +00:00
|
|
|
|
mutable InsetMathXYMatrix const * target_;
|
2002-02-08 08:03:38 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
2002-02-08 08:03:38 +00:00
|
|
|
|
#endif
|