]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
fix #1073
[lyx.git] / src / mathed / math_inset.C
index 48f644d71a13f4ec02b7f903a0ddcc08523cda80..7b4fd1fdb80ec61bb65d08048e06a3178b900042 100644 (file)
@@ -17,9 +17,6 @@
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_inset.h"
 #include "Lsstream.h"
 using std::ostream;
 
 
+BufferView * MathInset::view() const
+{
+       if (!mathcursor)
+               return 0;
+       return mathcursor->formula()->view();
+}
+
+
 int MathInset::height() const
 {
        return ascent() + descent();
@@ -115,6 +120,12 @@ bool MathInset::idxUpDown(idx_type &, pos_type &, bool, int) const
 }
 
 
+bool MathInset::idxUpDown2(idx_type &, pos_type &, bool, int) const
+{
+       return false;
+}
+
+
 bool MathInset::idxFirst(idx_type &, pos_type &) const
 {
        return false;
@@ -161,19 +172,19 @@ bool MathInset::idxBetween(idx_type idx, idx_type from, idx_type to) const
 }
 
 
-void MathInset::metrics(MathMetricsInfo &) const
+void MathInset::metrics(MetricsInfo &) const
 {
        lyxerr << "MathInset::metrics() called directly!\n";
 }
 
 
-void MathInset::draw(MathPainterInfo &, int, int) const
+void MathInset::draw(PainterInfo &, int, int) const
 {
        lyxerr << "MathInset::draw() called directly!\n";
 }
 
 
-void MathInset::drawSelection(MathPainterInfo &,
+void MathInset::drawSelection(PainterInfo &,
        idx_type, pos_type, idx_type, pos_type) const
 {
        lyxerr << "MathInset::drawSelection() called directly!\n";
@@ -210,28 +221,28 @@ void MathInset::normalize(NormalStream & os) const
 }
 
 
-void MathInset::octavize(OctaveStream & os) const
+void MathInset::octave(OctaveStream & os) const
 {
        NormalStream ns(os.os());
        normalize(ns);
 }
 
 
-void MathInset::maplize(MapleStream & os) const
+void MathInset::maple(MapleStream & os) const
 {
        NormalStream ns(os.os());
        normalize(ns);
 }
 
 
-void MathInset::maximize(MaximaStream & os) const
+void MathInset::maxima(MaximaStream & os) const
 {
        MapleStream ns(os.os());
-       maplize(ns);
+       maple(ns);
 }
 
 
-void MathInset::mathematicize(MathematicaStream & os) const
+void MathInset::mathematica(MathematicaStream & os) const
 {
        NormalStream ns(os.os());
        normalize(ns);
@@ -263,13 +274,6 @@ int MathInset::docbook(std::ostream &, bool) const
 }
 
 
-MathInset::result_type
-       MathInset::dispatch(FuncRequest const &, idx_type &, pos_type &)
-{
-       return UNDISPATCHED;
-}
-
-
 string const & MathInset::getType() const
 {
        static string t("none");
@@ -307,8 +311,3 @@ ostream & operator<<(ostream & os, MathAtom const & at)
        return os;
 }
 
-
-Dialogs & getDialogs()
-{
-       return mathcursor->formula()->view()->owner()->getDialogs();
-}