]> git.lyx.org Git - lyx.git/blobdiff - src/dociterator.h
Scons: update_po target, part one: language_l10n.pot
[lyx.git] / src / dociterator.h
index a452494d68dbed32d616ee2abf87eb9f911e5c36..dbeaf0823aa8c9b6b154a50ae20760414bd1a0fe 100644 (file)
@@ -23,7 +23,6 @@ namespace lyx {
 class LyXText;
 class MathAtom;
 class Paragraph;
-class Row;
 
 
 // only needed for gcc 2.95, remove when support terminated
@@ -126,10 +125,14 @@ public:
        ///
        void boundary(bool b) { boundary_ = b; }
 
-       /// are we in mathed?
-       bool inMathed() const;
-       /// are we in texted?
-       bool inTexted() const;
+       // the two methods below have been inlined out because of
+       // profiling results under linux when opening a document.
+       /// are we in mathed?.
+       bool inMathed() const
+       { return !empty() && inset().inMathed(); }
+       /// are we in texted?.
+       bool inTexted() const
+       { return !empty() && !inset().inMathed(); }
 
        //
        // math-specific part
@@ -194,7 +197,8 @@ public:
        /// move backward one cell
        void backwardIdx();
        /// move backward one inset
-       void backwardInset();
+       /// FIXME: This is not implemented!
+       //void backwardInset();
 
        /// are we some 'extension' (i.e. deeper nested) of the given iterator
        bool hasPart(DocIterator const & it) const;
@@ -263,7 +267,7 @@ bool operator!=(DocIterator const & di1, DocIterator const & di2)
 
 
 // The difference to a ('non stable') DocIterator is the removed
-// (overwritte by 0...) part of the CursorSlice data items. So this thing
+// (overwritten by 0...) part of the CursorSlice data items. So this thing
 // is suitable for external storage, but not for iteration as such.
 
 class StableDocIterator {