]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_scriptinset.h
whichFont down to 5.3%
[lyx.git] / src / mathed / math_scriptinset.h
index 669e0e9bfd99f0dcbe424a088bc5bc9004babca7..f09f7154a86fa4f8f329196ecff1f25bb44fffdb 100644 (file)
@@ -34,24 +34,16 @@ public:
        ///
        void draw(MathInset const * nuc, Painter &, int x, int y) const;
        ///
-       int ascent(MathInset const * nuc) const;
+       int ascent2(MathInset const * nuc) const;
        ///
-       int descent(MathInset const * nuc) const;
+       int descent2(MathInset const * nuc) const;
        ///
-       int width(MathInset const * nuc) const;
+       int width2(MathInset const * nuc) const;
 
        ///
        bool idxLeft(idx_type &, pos_type &) const;
        ///
        bool idxRight(idx_type &, pos_type &) const;
-       ///
-       bool idxFirstUp(idx_type &, pos_type &) const;
-       ///
-       bool idxFirstDown(idx_type &, pos_type &) const;
-       ///
-       bool idxLastUp(idx_type &, pos_type &) const;
-       ///
-       bool idxLastDown(idx_type &, pos_type &) const;
 
        /// identifies scriptinsets
        MathScriptInset const * asScriptInset() const;
@@ -76,6 +68,8 @@ public:
        bool hasDown() const;
        /// do we have a script?
        bool has(bool up) const;
+       /// do we have a anything?
+       bool empty() const;
        /// remove script
        void removeScript(bool up);
        /// remove script