X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView_pimpl.h;h=e011a08990783a5bcca3d6c504d0e3e83dc12e17;hb=498f06d43a0f2000c3f704db1ea39fda3c819fe6;hp=9a77eba226e0e2ab2c203f0bf4d2e319f8e1dddc;hpb=ebef7baa265f097b3372ed6239495255c6b64e49;p=lyx.git diff --git a/src/BufferView_pimpl.h b/src/BufferView_pimpl.h index 9a77eba226..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; @@ -61,7 +59,7 @@ struct BufferView::Pimpl : public boost::signals::trackable { /// void scrollDocView(int value); /** - * Wheel mouse scroll, move by multiples of text->defaultHeight(). + * Wheel mouse scroll, move by multiples of text->defaultRowHeight(). */ void scroll(int lines); /// @@ -74,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 *); /// @@ -103,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;