]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_defs.h
make doc++ able to generate the source documentation for lyx
[features.git] / src / mathed / math_defs.h
index 747addcd70c23cf43f9876c8aea53402a9bb2c67..bebf604dafddadf50199ebf0953b803004ef3767 100644 (file)
@@ -142,6 +142,7 @@ enum MathedTextCodes  {
        LM_TC_MAX
 };
 
+///
 std::ostream & operator<<(std::ostream &, MathedTextCodes mtc);
 
 ///
@@ -280,8 +281,11 @@ class MathedInset  {
     ///
     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);
     ///
@@ -380,38 +384,40 @@ class MathParInset: public MathedInset  {
 //    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.
  */
@@ -462,9 +468,9 @@ struct MathedRowSt {
     bool numbered;
     ///
     MathedRowSt * next;
-       ///
+    ///
     friend class MathMatrixInset;
-       ///
+    ///
     friend class MathedXIter;
 };
 
@@ -511,12 +517,14 @@ class MathMatrixInset: public MathParInset {
 
     /// 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;   
     /// 
@@ -546,6 +554,7 @@ int mathed_parser_lineno();
 int MathedLookupBOP(short);
 
 /************************ Inline functions ********************************/
+
 ///
 inline
 bool MathIsInset(short x)
@@ -602,7 +611,6 @@ bool MathIsBOPS(short x)
        return MathedLookupBOP(x) > LMB_NONE;
 }
 
-
 ///
 inline
 bool MathIsBinary(short x)
@@ -624,6 +632,7 @@ MathedInset::MathedInset(char const * nm, short ot, short st):
    width = ascent = descent = 0;
 }
 
+
 inline
 bool MathParInset::Inside(int x, int y) 
 {