+
+
+void MathParInset::clear()
+{
+ array.clear();
+}
+
+bool MathParInset::Inside(int x, int y)
+{
+ return (x >= xo() && x <= xo() + width
+ && y <= yo() + descent && y >= yo() - ascent);
+}
+
+
+void MathParInset::GetXY(int & x, int & y) const
+{
+ x = xo();
+ y = yo();
+}
+
+
+void MathParInset::UserSetSize(short sz)
+{
+ if (sz >= 0) {
+ size(sz);
+ flag = flag & ~LMPF_FIXED_SIZE;
+ }
+}
+
+
+void MathParInset::SetStyle(short sz)
+{
+ if (Permit(LMPF_FIXED_SIZE)) {
+ if (Permit(LMPF_SCRIPT))
+ sz = (sz < LM_ST_SCRIPT) ? LM_ST_SCRIPT: LM_ST_SCRIPTSCRIPT;
+ if (Permit(LMPF_SMALLER) && sz < LM_ST_SCRIPTSCRIPT) {
+ ++sz;
+ }
+ MathedInset::SetStyle(sz);
+ }
+}
+
+
+bool MathParInset::Permit(short f) const
+{
+ return bool(f & flag);
+}
+
+
+MathedArray * MathParInset::GetData()
+{
+ return &array;
+}
+
+
+void MathParInset::setXY(int x, int y)
+{
+ xo_ = x;
+ yo_ = y;
+}