/** The buffer object.
- This is the buffer object. It contains all the informations about
- a document loaded into LyX. I am not sure if the class is complete or
- minimal, probably not.
- \author Lars Gullik Bjønnes
+ * This is the buffer object. It contains all the informations about
+ * a document loaded into LyX.
+ * The buffer object owns the LyXText (wrapped in an InsetText), which
+ * contains the individual paragraphs of the document.
+ *
+ *
+ * I am not sure if the class is complete or
+ * minimal, probably not.
+ * \author Lars Gullik Bjønnes
*/
class Buffer {
public:
/// load a new file
bool readFile(std::string const & filename);
- bool readFile(std::string const & filename, lyx::par_type pit);
+ bool readFile(std::string const & filename, lyx::pit_type pit);
/// read the header, returns number of unknown tokens
int readHeader(LyXLex & lex);
///
void insertStringAsLines(ParagraphList & plist,
- lyx::par_type &, lyx::pos_type &,
- LyXFont const &, std::string const &);
+ lyx::pit_type &, lyx::pos_type &,
+ LyXFont const &, std::string const &, bool);
///
ParIterator getParFromID(int id) const;
/// do we have a paragraph with this id?
\return \c false if method fails.
*/
bool readFile(LyXLex &, std::string const & filename,
- lyx::par_type pit);
+ lyx::pit_type pit);
bool do_writeFile(std::ostream & ofs) const;