]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.h
reduce number of calls to LyXText::getFont
[lyx.git] / src / buffer.h
index 7e91df0a09f6e40fdbb130956f705ac3dff99ae1..26ae13f928b9d2914202f56bb5a1d8f99331867e 100644 (file)
@@ -49,10 +49,15 @@ class Undo;
 
 
 /** 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:
@@ -85,7 +90,7 @@ 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);
@@ -98,8 +103,8 @@ public:
 
        ///
        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?
@@ -325,7 +330,7 @@ private:
            \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;