class MathFuncInset: public MathedInset {
public:
///
- MathFuncInset(char const *nm, short ot= LM_OT_FUNC, short st= LM_ST_TEXT);
+ MathFuncInset(char const * nm, short ot= LM_OT_FUNC, short st= LM_ST_TEXT);
///
~MathFuncInset();
///
- MathedInset *Clone();
+ MathFuncInset * Clone();
///
void Draw(int, int);
///
- void Write(FILE *file);
+ void Write(FILE * file);
///
- void Write(string &file);
+ void Write(string & file);
///
void Metrics();
///
///
bool lims;
///
- char *fname;
+ char * fname;
};
///
~MathAccentInset();
///
- MathedInset *Clone();
+ MathAccentInset * Clone();
///
void Draw(int, int);
///
- void Write(FILE *file);
+ void Write(FILE * file);
///
- void Write(string &file);
+ void Write(string & file);
///
void Metrics();
///
///
int code;
///
- MathedInset *inset;
+ MathedInset * inset;
///
int dh, dy;
};
class MathDotsInset: public MathedInset {
public:
///
- MathDotsInset(char const*, int, short st= LM_ST_TEXT);
+ MathDotsInset(char const *, int, short st= LM_ST_TEXT);
///
- ~MathDotsInset() { };
+ ~MathDotsInset() {}
///
- MathedInset *Clone();
+ MathDotsInset * Clone();
///
void Draw(int, int);
///
- void Write(FILE *file);
+ void Write(FILE * file);
///
void Write(string &file);
///
class MathSpaceInset: public MathedInset {
public:
///
- MathSpaceInset(int sp, short ot= LM_OT_SPACE, short st= LM_ST_TEXT);
+ MathSpaceInset(int sp, short ot = LM_OT_SPACE, short st = LM_ST_TEXT);
///
- ~MathSpaceInset() { };
+ ~MathSpaceInset() {}
///
- MathedInset *Clone();
+ MathSpaceInset * Clone();
///
void Draw(int, int);
///
- void Write(FILE *file);
+ void Write(FILE * file);
///
- void Write(string &file);
+ void Write(string & file);
///
inline void Metrics();
///
class MathBigopInset: public MathedInset {
public:
///
- MathBigopInset(char const*, int, short st= LM_ST_TEXT);
+ MathBigopInset(char const *, int, short st = LM_ST_TEXT);
///
- ~MathBigopInset() { };
+ ~MathBigopInset() {}
///
- MathedInset *Clone();
+ MathBigopInset * Clone();
///
void Draw(int, int);
///
- void Write(FILE *file);
+ void Write(FILE * file);
///
- void Write(string &file);
+ void Write(string & file);
///
void Metrics();
///
///
MathSqrtInset(short st= LM_ST_TEXT);
///
- ~MathSqrtInset() { };
+ ~MathSqrtInset() {}
///
- MathedInset *Clone();
+ MathSqrtInset * Clone();
///
void Draw(int x, int baseline);
///
///
~MathFracInset();
///
- MathedInset *Clone();
+ MathFracInset * Clone();
///
void Draw(int x, int baseline);
///
- void Write(FILE *file);
+ void Write(FILE * file);
///
- void Write(string &file);
+ void Write(string & file);
///
void Metrics();
/** This does the same that SetData(LyxArrayBase*) but for both
numerator and denominator at once.
*/
- void SetData(LyxArrayBase*, LyxArrayBase*);
+ void SetData(LyxArrayBase *, LyxArrayBase *);
///
- void SetData(LyxArrayBase*);
+ void SetData(LyxArrayBase *);
///
- void GetXY(int& x, int& y) const;
+ void GetXY(int & x, int & y) const;
///
void SetFocus(int, int);
///
///
bool setArgumentIdx(int i); // was bool Up/down(void);
///
- int getArgumentIdx() { return (int)idx; }
+ int getArgumentIdx() { return int(idx); }
///
int getMaxArgumentIdx() { return 1; }
///
///
short idx;
///
- MathParInset *den;
+ MathParInset * den;
///
int w0, w1, des0, dh;
};
///
MathDelimInset(int, int, short st= LM_ST_TEXT);
///
- ~MathDelimInset() { };
+ ~MathDelimInset() {}
///
- MathedInset *Clone();
+ MathDelimInset * Clone();
///
void Draw(int, int);
///
- void Write(FILE *file);
+ void Write(FILE * file);
///
- void Write(string &file);
+ void Write(string & file);
///
void Metrics();
protected:
///
MathDecorationInset(int, short st= LM_ST_TEXT);
///
- ~MathDecorationInset() { };
+ ~MathDecorationInset() {}
///
- MathedInset *Clone();
+ MathDecorationInset * Clone();
///
void Draw(int, int);
///
- void Write(FILE *file);
+ void Write(FILE * file);
///
- void Write(string &file);
+ void Write(string & file);
///
void Metrics();
///
inline
bool MathFuncInset::GetLimits() const
{
- return (bool)(lims && (GetStyle() == LM_ST_DISPLAY));
+ return bool(lims && (GetStyle() == LM_ST_DISPLAY));
}
inline
-void MathFuncInset::Write(FILE *file)
+void MathFuncInset::Write(FILE * file)
{
fprintf(file, "\\%s ", name);
}
inline
-void MathFuncInset::Write(string &file)
+void MathFuncInset::Write(string & file)
{
file += '\\';
file += name;
inline
void MathSpaceInset::Metrics()
{
- width = (space) ? space*2: 2;
+ width = (space) ? space * 2 : 2;
if (space>3) width *= 2;
if (space == 5) width *= 2;
width += 4;
bool MathBigopInset::GetLimits() const
{
// Default case
- if (lims<0) {
- return (bool)(sym!= LM_int && sym!= LM_oint && (GetStyle() == LM_ST_DISPLAY));
+ if (lims < 0) {
+ return sym != LM_int && sym != LM_oint && GetStyle() == LM_ST_DISPLAY;
}
// Custom
- return (bool)(lims>0);
+ return lims > 0;
}
inline
void MathBigopInset::SetLimits(bool ls)
{
- lims = (ls) ? 1: 0;
+ lims = ls ? 1 : 0;
}
inline
bool MathDecorationInset::GetLimits() const
{
- return (bool)(deco == LM_underbrace||deco == LM_overbrace);
+ return deco == LM_underbrace || deco == LM_overbrace;
}
-
#endif
-