]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
Use home made code for the bool facet.
[lyx.git] / src / Buffer.h
index 90c700aa3702c011fb5eb8ddcc032444e7630573..2ce9ae6508337687ba2c2b9a3be86312b2d6235d 100644 (file)
@@ -12,9 +12,6 @@
 #ifndef BUFFER_H
 #define BUFFER_H
 
-#include "ErrorList.h"
-#include "InsetList.h"
-
 #include "DocIterator.h"
 
 #include "support/FileName.h"
@@ -37,13 +34,14 @@ namespace lyx {
 
 class BufferParams;
 class ErrorItem;
+class ErrorList;
 class FuncRequest;
-class InsetBase;
+class Inset;
 class InsetText;
-class LyXFont;
+class Font;
 class Lexer;
 class LyXRC;
-class LyXText;
+class Text;
 class LyXVC;
 class LaTeXFeatures;
 class Language;
@@ -62,7 +60,7 @@ class Undo;
 /** The buffer object.
  * 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
+ * The buffer object owns the Text (wrapped in an InsetText), which
  * contains the individual paragraphs of the document.
  *
  *
@@ -122,7 +120,7 @@ public:
        ///
        void insertStringAsLines(ParagraphList & plist,
                pit_type &, pos_type &,
-               LyXFont const &, docstring const &, bool);
+               Font const &, docstring const &, bool);
        ///
        ParIterator getParFromID(int id) const;
        /// do we have a paragraph with this id?
@@ -349,10 +347,10 @@ public:
        void fully_loaded(bool);
 
        /// Our main text (inside the top InsetText)
-       LyXText & text() const;
+       Text & text() const;
 
        /// Our top InsetText!
-       InsetBase & inset() const;
+       Inset & inset() const;
 
        //
        // Macro handling
@@ -374,7 +372,7 @@ public:
        StableDocIterator getAnchor() const { return anchor_; }
        ///
        void changeRefsIfUnique(docstring const & from, docstring const & to,
-               InsetBase::Code code);
+               Inset::Code code);
 /// get source code (latex/docbook) for some paragraphs, or all paragraphs
 /// including preamble
        void getSourceCode(odocstream & os, pit_type par_begin, pit_type par_end, bool full_source);
@@ -395,7 +393,7 @@ private:
            \return \c false if method fails.
        */
        ReadStatus readFile(Lexer &, support::FileName const & filename,
-                           bool fromString = false);
+                           bool fromString = false);
 
        /// Use the Pimpl idiom to hide the internals.
        class Impl;
@@ -410,9 +408,6 @@ private:
        /// A cache for the bibfiles (including bibfiles of loaded child
        /// documents), needed for appropriate update of natbib labels.
        mutable std::vector<support::FileName> bibfilesCache_;
-
-       /// Container for all sort of Buffer dependant errors.
-       std::map<std::string, ErrorList> errorLists_;
 };