#include <boost/scoped_ptr.hpp>
#include <boost/signals/trackable.hpp>
-#ifdef __GNUG__
-#pragma interface
-#endif
+class Change;
class LyXView;
class WorkArea;
class LyXScreen;
int xpos, int ypos, int width, int height);
///
Painter & painter() const;
- /// return the work area for this bview
- WorkArea & workarea() const;
/// return the screen for this bview
LyXScreen & screen() const;
///
void updateScrollbar();
///
void scrollDocView(int value);
- /// wheel mouse scroll
- int scroll(long time);
+ /**
+ * Wheel mouse scroll, move by multiples of text->defaultRowHeight().
+ */
+ void scroll(int lines);
///
void workAreaKeyPress(LyXKeySymPtr key, key_modifier::state state);
///
void cursorToggle();
///
bool available() const;
+ /// get the change at the cursor position
+ Change const getCurrentChange();
///
void beforeChange(LyXText *);
///
///
bool dispatch(FuncRequest const & ev);
private:
+ /// track changes for the document
+ void trackChanges();
+
///
friend class BufferView;
Inset * getInsetByCode(Inset::Code code);
///
void MenuInsertLyXFile(string const & filen);
+ /// our workarea
+ WorkArea & workarea() const;
};
#endif // BUFFERVIEW_PIMPL_H