* Created: January 1999
* Description: Root math object
*
- * Copyright: (c) 1999 Alejandro Aguilar Sierra
+ * 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.
#include "symbol_def.h"
#include "LString.h"
-
///
class MathRootInset: public MathSqrtInset {
- public:
+public:
///
+ explicit
MathRootInset(short st = LM_ST_TEXT);
///
- // MathRootInset(MathSqrtInset &);
- ///
~MathRootInset();
///
MathedInset * Clone();
///
void draw(Painter &, int x, int baseline);
///
- void Write(ostream &);
-
-#ifndef USE_OSTREAM_ONLY
- ///
- void Write(string & file);
-#endif
-
+ void Write(std::ostream &, bool fragile);
///
void Metrics();
///
///
void SetData(LyxArrayBase *);
///
- void GetXY(int& x, int& y) const;
+ void GetXY(int & x, int & y) const;
///
LyxArrayBase * GetData();
///
///
void SetStyle(short);
- protected:
+protected:
///
int idx;
///