]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_rowst.h
small cleanup, doxygen, formatting changes
[lyx.git] / src / mathed / math_rowst.h
index 891f7656b95cd2e3abc42a1c219436d516d93f19..d282e86b0fe62c3f441696e8661bbacb95c9c898 100644 (file)
@@ -8,8 +8,9 @@
     It allows to manage the extra info independently of the paragraph data.  
     Only used for multiline paragraphs.
  */
-struct MathedRowSt
+class MathedRowSt
 {
+public:
        ///
        typedef std::vector<int> Widths;
        
@@ -20,37 +21,39 @@ struct MathedRowSt
                  numbered_(true), next_(0)
                {}
        /// Should be const but...
-       MathedRowSt * getNext() const  { return next_; }
+       MathedRowSt * getNext() const;
        /// ...we couldn't use this.
-       void setNext(MathedRowSt * n) { next_ = n; }
+       void setNext(MathedRowSt * n);
        ///
-       string const & getLabel() const { return label_; }
+       string const & getLabel() const;
        ///
-       bool isNumbered() const { return numbered_; }
+       bool isNumbered() const;
        ///
-       int  getBaseline() const { return y_; }
+       int  getBaseline() const;
        ///
-       void setBaseline(int b) { y_ = b; }
+       void setBaseline(int b);
        ///
-       int ascent() const { return asc_; }
+       int ascent() const;
        ///
-       int descent() const { return desc_; }
+       int descent() const;
        ///
-       void ascent(int a) { asc_ = a; }
+       void ascent(int a);
        ///
-       void descent(int d) { desc_ = d; }
+       void descent(int d);
        ///
-       int  getTab(int i) const { return widths_[i]; }
+       int  getTab(int i) const;
        /// 
-       void setLabel(string const & l) { label_ = l; }
+       void setLabel(string const & l);
        ///
-       void setNumbered(bool nf) { numbered_ = nf; }
+       void setNumbered(bool nf);
        ///
-       void setTab(int i, int t) { widths_[i] = t; }
+       void setTab(int i, int t);
 private:
        /// Vericals 
        int asc_;
+       ///
        int desc_;
+       ///
        int y_;
        /// widths 
        Widths widths_;
@@ -61,4 +64,102 @@ private:
        ///
        MathedRowSt * next_;
 };
+
+
+inline
+MathedRowSt * MathedRowSt::getNext() const
+{
+       return next_;
+}
+
+
+inline
+void MathedRowSt::setNext(MathedRowSt * n)
+{
+       next_ = n;
+}
+
+
+inline
+string const & MathedRowSt::getLabel() const
+{
+       return label_;
+}
+
+
+inline
+bool MathedRowSt::isNumbered() const
+{
+       return numbered_;
+}
+
+
+inline
+int MathedRowSt::getBaseline() const
+{
+       return y_;
+}
+
+
+inline
+void MathedRowSt::setBaseline(int b)
+{
+       y_ = b;
+}
+
+
+inline
+int MathedRowSt::ascent() const
+{
+       return asc_;
+}
+
+
+inline
+int MathedRowSt::descent() const
+{
+       return desc_;
+}
+
+
+inline
+void MathedRowSt::ascent(int a)
+{
+       asc_ = a;
+}
+
+
+inline
+void MathedRowSt::descent(int d)
+{
+       desc_ = d;
+}
+
+
+inline
+int MathedRowSt::getTab(int i) const
+{
+       return widths_[i];
+}
+
+
+inline
+void MathedRowSt::setLabel(string const & l)
+{
+       label_ = l;
+}
+
+
+inline
+void MathedRowSt::setNumbered(bool nf)
+{
+       numbered_ = nf;
+}
+
+
+inline
+void MathedRowSt::setTab(int i, int t)
+{
+       widths_[i] = t;
+}
 #endif