Source Code (Use browser search to find items of interest.)

Class Index

klyx'MathSpaceInset (./klyx/src/math_inset.h:122)

class MathSpaceInset: public MathedInset  {
 public:
	///
   MathSpaceInset(int sp, short ot=LM_OT_SPACE, short st=LM_ST_TEXT);
	///
   ~MathSpaceInset() { };
	///
   MathedInset *Clone();
	///
  void Draw(int, int);
	///
   void Write(FILE *file);
	///
   void Write(LString &file);
	///
   inline void Metrics();
	///
   inline void SetSpace(int sp);
	///
   int GetSpace() { return space; }
 protected:
	///
   int space;
};


/// big operators

klyx'MathSpaceInset::Draw() (./klyx/src/math_draw.C:36)

MathSpaceInset::Draw(int x, int y)
{ 

// XPoint p[4] = {{++x, y-3}, {x, y}, {x+width-2, y}, {x+width-2, y-3}};

// Sadly, HP-UX CC can't handle that kind of initialization.

   XPoint p[4];
   p[0].x = ++x;	p[0].y = y-3;
   p[1].x = x;		p[1].y = y;
   p[2].x = x+width-2;	p[2].y = y;
   p[3].x = x+width-2;	p[3].y = y-3;

   XDrawLines(qt_display,pm,(space) ? latexGC: mathGC,p,4,CoordModeOrigin);
   QApplication::flushX();
}

void 

klyx'MathSpaceInset::MathSpaceInset() (./klyx/src/math_inset.C:71)

MathSpaceInset::MathSpaceInset(int sp, short ot, short st):
    MathedInset("", ot, st), space(sp)
{
}


klyx'MathSpaceInset::Clone() (./klyx/src/math_inset.C:76)

MathedInset *MathSpaceInset::Clone()
{ 
   MathedInset *l = new MathSpaceInset(space, GetType(), GetStyle());
   return l;
}


klyx'MathSpaceInset::Metrics() (./klyx/src/math_inset.h:340)

void MathSpaceInset::Metrics()
{
   width = (space) ? space*2: 2;
   if (space>3) width *= 2;
   if (space==5) width *= 2;
   width += 4;
   ascent = 4; descent = 0;
}

inline

klyx'MathSpaceInset::SetSpace() (./klyx/src/math_inset.h:350)

void MathSpaceInset::SetSpace(int sp)
{ 
   space = sp;
   Metrics();
}    

inline

klyx'MathSpaceInset::Write() (./klyx/src/math_write.C:43)

MathSpaceInset::Write(FILE *outf)
{ 
   if (space>=0 && space<6) {
       LString output;
       MathSpaceInset::Write(output);
       fprintf(outf, "%s", output.c_str());
   }
}

void

klyx'MathSpaceInset::Write() (./klyx/src/math_write.C:53)

MathSpaceInset::Write(LString &outf)
{ 
   if (space>=0 && space<6) {
       outf += '\\';
       outf += latex_mathspace[space];
       outf += ' ';
   }
}


void