1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-11 08:26:02 +00:00
|
|
|
/**
|
1999-09-27 18:44:28 +00:00
|
|
|
* File: math_root.h
|
2002-03-21 17:42:56 +00:00
|
|
|
* Purpose: Declaration of the root object
|
|
|
|
* Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
|
1999-09-27 18:44:28 +00:00
|
|
|
* Created: January 1999
|
|
|
|
* Description: Root math object
|
|
|
|
*
|
2000-03-09 03:36:48 +00:00
|
|
|
* Copyright: 1999 Alejandro Aguilar Sierra
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
|
|
|
* You are free to use and modify this code under the terms of
|
|
|
|
* the GNU General Public Licence version 2 or later.
|
|
|
|
*/
|
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
#ifndef MATH_ROOT_H
|
|
|
|
#define MATH_ROOT_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2001-08-03 17:10:22 +00:00
|
|
|
#include "math_nestinset.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
2001-02-16 09:25:43 +00:00
|
|
|
/** The general n-th root inset.
|
2002-09-11 08:26:02 +00:00
|
|
|
* \author Alejandro Aguilar Sierra
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-02-16 09:25:43 +00:00
|
|
|
\version January 1999
|
|
|
|
*/
|
2001-08-03 17:10:22 +00:00
|
|
|
class MathRootInset : public MathNestInset {
|
2001-02-16 09:25:43 +00:00
|
|
|
public:
|
|
|
|
///
|
2001-06-25 00:06:33 +00:00
|
|
|
MathRootInset();
|
2001-02-16 09:25:43 +00:00
|
|
|
///
|
2003-06-16 11:49:38 +00:00
|
|
|
InsetBase * clone() const;
|
2001-02-16 09:25:43 +00:00
|
|
|
///
|
2002-07-30 13:56:02 +00:00
|
|
|
bool idxUpDown(idx_type & idx, pos_type & pos, bool up, int targetx) const;
|
2001-04-25 15:43:57 +00:00
|
|
|
///
|
2003-06-02 10:03:27 +00:00
|
|
|
void metrics(MetricsInfo & mi, Dimension & dim) const;
|
2001-02-16 09:25:43 +00:00
|
|
|
///
|
2003-03-21 14:20:48 +00:00
|
|
|
void draw(PainterInfo & pi, int x, int y) const;
|
2001-11-09 08:35:57 +00:00
|
|
|
|
2001-02-16 09:25:43 +00:00
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
void write(WriteStream & os) const;
|
|
|
|
///
|
|
|
|
void normalize(NormalStream &) const;
|
2001-11-07 13:15:59 +00:00
|
|
|
///
|
2001-11-07 17:30:26 +00:00
|
|
|
void mathmlize(MathMLStream &) const;
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
void maple(MapleStream &) const;
|
2002-10-28 17:15:19 +00:00
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
void octave(OctaveStream &) const;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
2001-02-16 09:25:43 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
#endif
|