X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView_pimpl.h;h=e011a08990783a5bcca3d6c504d0e3e83dc12e17;hb=498f06d43a0f2000c3f704db1ea39fda3c819fe6;hp=369df9fc5f3ce381428f8abf2a10f16c3ea30afe;hpb=036147ebfa7a79474d4f5b9011722ee0bbce6e07;p=lyx.git diff --git a/src/BufferView_pimpl.h b/src/BufferView_pimpl.h index 369df9fc5f..e011a08990 100644 --- a/src/BufferView_pimpl.h +++ b/src/BufferView_pimpl.h @@ -19,10 +19,8 @@ #include #include -#ifdef __GNUG__ -#pragma interface -#endif +class Change; class LyXView; class WorkArea; class LyXScreen; @@ -60,8 +58,10 @@ struct BufferView::Pimpl : public boost::signals::trackable { 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); /// @@ -72,6 +72,8 @@ struct BufferView::Pimpl : public boost::signals::trackable { void cursorToggle(); /// bool available() const; + /// get the change at the cursor position + Change const getCurrentChange(); /// void beforeChange(LyXText *); /// @@ -101,6 +103,9 @@ struct BufferView::Pimpl : public boost::signals::trackable { /// bool dispatch(FuncRequest const & ev); private: + /// track changes for the document + void trackChanges(); + /// friend class BufferView;