]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphList.C
remove noload/don't typeset
[lyx.git] / src / ParagraphList.C
index 923cc78fd026b6a3ce17157dfad15a5d8a91c55d..131380d6442e9b75a26101667389b369b4c3a4f9 100644 (file)
@@ -67,7 +67,8 @@ ParagraphList::iterator::operator--(int)
 bool operator==(ParagraphList::iterator const & i1,
                ParagraphList::iterator const & i2)
 {
-       return &(*const_cast<ParagraphList::iterator&>(i1)) == &(*const_cast<ParagraphList::iterator&>(i2));
+       return &(*const_cast<ParagraphList::iterator&>(i1))
+           == &(*const_cast<ParagraphList::iterator&>(i2));
 }
 
 
@@ -94,7 +95,7 @@ void ParagraphList::clear()
 }
 
 
-ParagraphList::iterator ParagraphList::begin() 
+ParagraphList::iterator ParagraphList::begin()
 {
        return iterator(parlist);
 }
@@ -124,6 +125,21 @@ void ParagraphList::set(Paragraph * p)
 }
 
 
+void ParagraphList::push_back(Paragraph * p)
+{
+       if (!parlist) {
+               parlist = p;
+               return;
+       }
+
+       Paragraph * pos = parlist;
+       while (pos->next())
+               pos = pos->next();
+       pos->next(p);
+       p->previous(pos);
+}
+
+
 int ParagraphList::size() const
 {
        // When we switch to a std::container this will be O(1)