X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.h;h=b2261ff69f638f0d131307924e0a8ce35c391662;hb=cd3d0bc0b26f4d92fdfbfaac4adefebcf51f11ff;hp=04c44ce087790a004a7efbb4c24f7d2e615b7c20;hpb=271b807e8bb524834b4c7663b8a89ed789ba6606;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index 04c44ce087..b2261ff69f 100644 --- a/src/BufferView.h +++ b/src/BufferView.h @@ -10,10 +10,6 @@ #ifndef BUFFER_VIEW_H #define BUFFER_VIEW_H -#ifdef __GNUG__ -#pragma interface -#endif - #include "LString.h" #include "undo.h" @@ -21,6 +17,7 @@ #include +class Change; class LyXView; class LyXText; class TeXErrors; @@ -30,6 +27,7 @@ class Language; class Painter; class UpdatableInset; class WordLangTuple; +class Encoding; /** * A buffer view encapsulates a view onto a particular @@ -106,6 +104,9 @@ public: 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. @@ -124,6 +125,9 @@ public: /// 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; @@ -189,8 +193,6 @@ public: /// 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