* text.C:
* buffer.[Ch]: use improved inset_iterator
+ * buffer.C:
+ * paragraph.[Ch]: write one paragraph at a time
+
2002-08-20 Dekel Tsur <dekelts@tau.ac.il>
* BufferView_pimpl.C (dispatch): Insert insetbibtex with "plain"
// this will write out all the paragraphs
// using recursive descent.
- paragraphs.begin()->writeFile(this, ofs, params, depth);
+ ParagraphList::iterator pit = paragraphs.begin();
+ ParagraphList::iterator pend = paragraphs.end();
+ for (; pit != pend; ++pit)
+ pit->write(this, ofs, params, depth);
// Write marker that shows file is complete
ofs << "\n\\the_end" << endl;
void InsetText::writeParagraphData(Buffer const * buf, ostream & os) const
{
- paragraphs.begin()->writeFile(buf, os, buf->params, 0);
+ ParagraphList::iterator it = paragraphs.begin();
+ ParagraphList::iterator end = paragraphs.end();
+ for (; it != end; ++it) {
+ it->write(buf, os, buf->params, 0);
+ }
}
}
-void Paragraph::writeFile(Buffer const * buf, ostream & os,
+void Paragraph::write(Buffer const * buf, ostream & os,
BufferParams const & bparams,
depth_type dth) const
{
break;
}
}
-
- // now write the next paragraph
- if (next_)
- next_->writeFile(buf, os, bparams, dth);
}
bool label);
///
- void writeFile(Buffer const *, std::ostream &, BufferParams const &,
+ void write(Buffer const *, std::ostream &, BufferParams const &,
depth_type) const;
///
void validate(LaTeXFeatures &) const;