#ifndef BUFFER_H
#define BUFFER_H
-#include "ErrorList.h"
-#include "InsetList.h"
-
#include "DocIterator.h"
#include "support/FileName.h"
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;
/** 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.
*
*
///
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?
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
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);
\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;
/// 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_;
};