]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_funcinset.C
new hierarchy for frac-like things
[features.git] / src / mathed / math_funcinset.C
index 26f95fc3efd513a64ac7237fcd54ba53f6361d19..d34245db74a9195d093a09ee2de9579637690cca 100644 (file)
@@ -15,9 +15,8 @@ extern LyXFont WhichFont(short type, int size);
 
 
 MathFuncInset::MathFuncInset(string const & nm)
-{
-       name_ = nm;
-}
+       : name_(nm)
+{}
 
 
 MathInset * MathFuncInset::clone() const
@@ -26,6 +25,18 @@ MathInset * MathFuncInset::clone() const
 }
 
 
+string const & MathFuncInset::name() const
+{
+       return name_;
+}
+
+
+void MathFuncInset::setName(string const & n)
+{
+       name_ = n;
+}
+
+
 void MathFuncInset::write(std::ostream & os, bool /* fragile */) const
 {
        os << "\\" << name_ << ' ';