]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.h
BufferParams.cpp: fix bug 3568:
[lyx.git] / src / DocIterator.h
index 117e92383fe71fd5f035aa2ecbd9c80b719f6cf0..5d6c8442356f157eabbcb360a908712c2fcbc870 100644 (file)
@@ -20,7 +20,7 @@
 
 namespace lyx {
 
-class LyXText;
+class Text;
 class MathAtom;
 class Paragraph;
 
@@ -155,20 +155,25 @@ public:
        //
        /// the paragraph we're in
        Paragraph & paragraph();
-       /// the paragraph we're in
+       /// the paragraph we're in in text mode.
+       /// \warning only works within text!
        Paragraph const & paragraph() const;
+       /// the paragraph we're in in any case.
+       /// This method will give the containing paragraph if
+       /// in not in text mode (ex: in mathed).
+       Paragraph const & innerParagraph() const;
        ///
-       LyXText * text();
+       Text * text();
        ///
-       LyXText const * text() const;
+       Text const * text() const;
        /// the containing inset or the cell, respectively
        Inset * realInset() const;
        ///
        Inset * innerInsetOfType(int code) const;
        ///
-       LyXText * innerText();
+       Text * innerText();
        ///
-       LyXText const * innerText() const;
+       Text const * innerText() const;
 
        //
        // elementary moving