#ifndef BUFFER_H
#define BUFFER_H
+#include "insets/InsetCode.h"
+
#include "support/FileName.h"
-#include "support/limited_stack.h"
-#include "support/types.h"
#include "support/docstring.h"
#include "support/docstream.h"
+#include "support/types.h"
#include <iosfwd>
#include <string>
///
bool isMultiLingual() const;
- /// Does this mean that this is buffer local?
- limited_stack<Undo> & undostack();
- limited_stack<Undo> const & undostack() const;
-
- /// Does this mean that this is buffer local?
- limited_stack<Undo> & redostack();
- limited_stack<Undo> const & redostack() const;
-
///
BufferParams & params();
BufferParams const & params() const;
/// Replace the inset contents for insets which InsetCode is equal
/// to the passed \p inset_code.
- /// FIXME: we pass InsetCode as an int in order to avoid the inclusion
- /// of "Inset.h". It would be better to put InsetCode in its own
- /// header.
void changeRefsIfUnique(docstring const & from, docstring const & to,
- int inset_code);
+ InsetCode code);
/// get source code (latex/docbook) for some paragraphs, or all paragraphs
/// including preamble
EmbeddedFiles & embeddedFiles();
EmbeddedFiles const & embeddedFiles() const;
//@}
+
+ Undo & undo();
/// This function is called when the buffer is changed.
void changed() const;