]> git.lyx.org Git - lyx.git/blobdiff - src/dociterator.C
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / dociterator.C
index 4955cbf910951b472f91095859244187c19755d4..47e7526e5e00d0af03eaa4357c73f84ac0bd3f4d 100644 (file)
@@ -26,6 +26,9 @@
 #include <boost/assert.hpp>
 #include <boost/current_function.hpp>
 
+
+namespace lyx {
+
 using std::endl;
 
 
@@ -181,13 +184,13 @@ Row const & DocIterator::textRow() const
 }
 
 
-DocIterator::pit_type DocIterator::lastpit() const
+pit_type DocIterator::lastpit() const
 {
        return inMathed() ? 0 : text()->paragraphs().size() - 1;
 }
 
 
-DocIterator::pos_type DocIterator::lastpos() const
+pos_type DocIterator::lastpos() const
 {
        return inMathed() ? cell().size() : paragraph().size();
 }
@@ -592,3 +595,6 @@ bool operator==(StableDocIterator const & dit1, StableDocIterator const & dit2)
 {
        return dit1.data_ == dit2.data_;
 }
+
+
+} // namespace lyx