]> 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 63703383c4e7faea81a0cddb13b25bceba1cb714..dbeaf0823aa8c9b6b154a50ae20760414bd1a0fe 100644 (file)
@@ -125,14 +125,14 @@ public:
        ///
        void boundary(bool b) { boundary_ = b; }
 
+       // the two methods below have been inlined out because of
+       // profiling results under linux when opening a document.
        /// are we in mathed?.
-       /// inlined out because of profiling results under linux when
-       /// opening a document.
-       inline bool inMathed() const;
+       bool inMathed() const
+       { return !empty() && inset().inMathed(); }
        /// are we in texted?.
-       /// inlined out because of profiling results under linux when
-       /// opening a document.
-       inline bool inTexted() const;
+       bool inTexted() const
+       { return !empty() && !inset().inMathed(); }
 
        //
        // math-specific part
@@ -197,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;