LM_TC_MAX
};
+///
std::ostream & operator<<(std::ostream &, MathedTextCodes mtc);
///
///
short size;
/// Default metrics
- static int df_asc, df_des, df_width;
-
+ static int df_asc;
+ ///
+ static int df_des;
+ ///
+ static int df_width;
/// In a near future maybe we use a better fonts renderer than X
void drawStr(Painter &, short, int, int, int, byte const *, int);
///
// virtual void SetLabel(char const *) {}
///
virtual void SetStyle(short);
- ///
+ ///
virtual MathedRowSt * getRowSt() const { return 0; }
- ///
+ ///
virtual void setRowSt(MathedRowSt *) {}
- ///
+ ///
virtual bool Permit(short f) { return bool(f & flag); }
protected:
/// Paragraph data is stored here
LyxArrayBase * array;
/// Cursor start position
- int xo, yo;
+ int xo;
+ ///
+ int yo;
///
short flag;
private:
///
virtual void setFlag(MathedParFlag f) { flag |= f; }
- ///
+ ///
friend class InsetFormula;
- ///
+ ///
friend class MathedXIter;
- ///
+ ///
friend class MathedCursor;
- ///
+ ///
friend LyxArrayBase * mathed_parse(unsigned flags = 0,
LyxArrayBase * a = 0,
MathParInset ** p = 0);
};
-/* The physical structure of a row and aditional information is stored here.
+/** The physical structure of a row and aditional information is stored here.
It allows to manage the extra info independently of the paragraph data.
Only used for multiline paragraphs.
*/
bool numbered;
///
MathedRowSt * next;
- ///
+ ///
friend class MathMatrixInset;
- ///
+ ///
friend class MathedXIter;
};
/// Use this to manage the extra information independently of paragraph
MathedRowSt * getRowSt() const { return row; }
- ///
+ ///
void setRowSt(MathedRowSt * r) { row = r; }
protected:
/// Number of columns & rows
- int nc, nr;
+ int nc;
+ ///
+ int nr;
/// tab sizes
int * ws;
///
int MathedLookupBOP(short);
/************************ Inline functions ********************************/
+
///
inline
bool MathIsInset(short x)
return MathedLookupBOP(x) > LMB_NONE;
}
-
///
inline
bool MathIsBinary(short x)
width = ascent = descent = 0;
}
+
inline
bool MathParInset::Inside(int x, int y)
{