X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_inset.C;h=9bc23390677907a362a73df3f06b728794f56084;hb=2da8fcabdc695b8bb139d7252b923ef6b9aa29dd;hp=c086bb9b504508db591b3f72d208e01b08080b8d;hpb=244d75e9422f046ec150412e0e43a479f9abed90;p=lyx.git diff --git a/src/mathed/math_inset.C b/src/mathed/math_inset.C index c086bb9b50..9bc2339067 100644 --- a/src/mathed/math_inset.C +++ b/src/mathed/math_inset.C @@ -26,8 +26,8 @@ int MathInset::workwidth; -MathInset::MathInset(string const & name) - : name_(name), size_(LM_ST_DISPLAY), code_(LM_TC_MIN), xo_(0), yo_(0) +MathInset::MathInset() + : size_(LM_ST_DISPLAY), xo_(0), yo_(0) {} @@ -37,25 +37,13 @@ int MathInset::height() const } -string const & MathInset::name() const -{ - return name_; -} - - -void MathInset::setName(string const & n) -{ - name_ = n; -} - - MathStyles MathInset::size() const { return size_; } -void MathInset::size(MathStyles s) +void MathInset::size(MathStyles s) const { size_ = s; } @@ -80,13 +68,13 @@ int MathInset::yo() const } -void MathInset::xo(int x) +void MathInset::xo(int x) const { xo_ = x; } -void MathInset::yo(int y) +void MathInset::yo(int y) const { yo_ = y; } @@ -248,7 +236,7 @@ void MathInset::userSetSize(MathStyles sz) void MathInset::writeNormal(std::ostream & os) const { - os << "[" << name_ << "] "; + os << "[unknown] "; } @@ -295,19 +283,20 @@ std::vector MathInset::idxBetween(int from, int to) const } -MathTextCodes MathInset::code() const +void MathInset::metrics(MathStyles st) const { - return code_; + lyxerr << "MathInset::metrics() called directly!\n"; + size_ = st; } -void MathInset::code(MathTextCodes t) +void MathInset::draw(Painter &, int, int) const { - code_ = t; + lyxerr << "MathInset::draw() called directly!\n"; } -void MathInset::metrics(MathStyles st) +void MathInset::write(std::ostream &, bool) const { - size_ = st; + lyxerr << "MathInset::write() called directly!\n"; }