#ifndef BUFFER_VIEW_H
#define BUFFER_VIEW_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include "LString.h"
#include "undo.h"
#include <boost/utility.hpp>
+class Change;
class LyXView;
class LyXText;
class TeXErrors;
class Painter;
class UpdatableInset;
class WordLangTuple;
+class Encoding;
/**
* A buffer view encapsulates a view onto a particular
void restorePosition(unsigned int i);
/// does the given bookmark have a saved position ?
bool isSavedPosition(unsigned int i);
+
+ /// return the current change at the cursor
+ Change const getCurrentChange();
/**
* This holds the mapping between buffer paragraphs and screen rows.
/// unlock the currently locked inset
void insetUnlock();
+ /// return the current encoding at the cursor
+ Encoding const * getEncoding() const;
+
/// return the parent language of the given inset
Language const * getParentLanguage(Inset * inset) const;
/// Scroll the view by a number of pixels
void scrollDocView(int);
- /// height of a normal line in pixels (zoom factor considered)
- int defaultHeight() const;
/// return the pixel width of the document view
int workWidth() const;
/// return the pixel height of the document view