]> git.lyx.org Git - lyx.git/blobdiff - src/pariterator.h
Allows editing when the Prefs dialog is opened; fix bug 3140:
[lyx.git] / src / pariterator.h
index 304faaf5992b5d2cc44d1497c0313bd503949a9f..9f4884184e1046c91e6816abb89f295af4e07b8e 100644 (file)
@@ -22,6 +22,9 @@
 #include <vector>
 
 
+namespace lyx {
+
+
 
 class InsetBase;
 class LyXText;
@@ -43,7 +46,7 @@ public:
 
 
        ///
-       ParIterator(InsetBase &, lyx::pit_type pit);
+       ParIterator(InsetBase &, pit_type pit);
        ///
        ParIterator(ParIterator const &);
        ///
@@ -62,15 +65,18 @@ public:
        ///
        Paragraph * operator->() const;
        /// This gives us the top-most parent paragraph
-       lyx::pit_type outerPar() const;
+       pit_type outerPar() const;
        ///
-       lyx::pit_type pit() const;
+       pit_type pit() const;
        ///
+       /// return the paragraph this cursor is in
+       pit_type & pit() { return DocIterator::pit(); }
+
        ParagraphList & plist() const;
 };
 
 
-DocIterator makeDocIterator(ParIterator const &, lyx::pos_type);
+DocIterator makeDocIterator(ParIterator const &, pos_type);
 
 ParIterator par_iterator_begin(InsetBase & inset);
 
@@ -89,6 +95,8 @@ class ParConstIterator : public std::iterator<std::forward_iterator_tag,
                         public DocIterator
 {
 public:
+       ///
+       ParConstIterator(): DocIterator() {}
        ///
        ParConstIterator(ParConstIterator const &);
        ///
@@ -118,4 +126,7 @@ ParConstIterator par_const_iterator_begin(InsetBase const & inset);
 ParConstIterator par_const_iterator_end(InsetBase const & inset);
 
 
+
+} // namespace lyx
+
 #endif