mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
5f1427b648
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1061 a592a061-630c-0410-9148-cb99ea01b6c8
71 lines
1.4 KiB
C++
71 lines
1.4 KiB
C++
// -*- C++ -*-
|
|
/*
|
|
* File: math_root.h
|
|
* Purpose: Declaration of the root object
|
|
* Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
|
|
* Created: January 1999
|
|
* Description: Root math object
|
|
*
|
|
* Copyright: 1999 Alejandro Aguilar Sierra
|
|
*
|
|
* You are free to use and modify this code under the terms of
|
|
* the GNU General Public Licence version 2 or later.
|
|
*/
|
|
|
|
#ifndef MATH_ROOT
|
|
#define MATH_ROOT
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "math_defs.h"
|
|
#include "math_inset.h"
|
|
#include "symbol_def.h"
|
|
#include "LString.h"
|
|
|
|
///
|
|
class MathRootInset: public MathSqrtInset {
|
|
public:
|
|
///
|
|
explicit
|
|
MathRootInset(short st = LM_ST_TEXT);
|
|
///
|
|
~MathRootInset();
|
|
///
|
|
MathedInset * Clone();
|
|
///
|
|
void draw(Painter &, int x, int baseline);
|
|
///
|
|
void Write(std::ostream &, bool fragile);
|
|
///
|
|
void Metrics();
|
|
///
|
|
bool Inside(int, int);
|
|
///
|
|
void SetFocus(int, int);
|
|
///
|
|
void SetData(LyxArrayBase *);
|
|
///
|
|
void GetXY(int & x, int & y) const;
|
|
///
|
|
LyxArrayBase * GetData();
|
|
///
|
|
bool setArgumentIdx(int i);
|
|
///
|
|
int getArgumentIdx() const { return idx; }
|
|
///
|
|
int getMaxArgumentIdx() const { return 1; }
|
|
///
|
|
void SetStyle(short);
|
|
|
|
protected:
|
|
///
|
|
int idx;
|
|
///
|
|
MathParInset * uroot;
|
|
///
|
|
int wroot, dh;
|
|
};
|
|
#endif
|