Change const getCurrentChange();
/// return the lyxtext we are using
- LyXText * getLyXText() const;
+ LyXText * getLyXText();
+
+ /// return the lyxtext we are using
+ LyXText const * getLyXText() const;
/// simple replacing. Use the font of the first selected character
void replaceSelectionWithString(std::string const & str);
int offset_ref() const;
/// access to anchor
lyx::pit_type anchor_ref() const;
-
+
/// access to full cursor
LCursor & cursor();
/// access to full cursor
///
LyXText * text() const;
///
- void setCursor(ParIterator const & par, lyx::pos_type pos);
+ void setCursor(DocIterator const &);
/* Sets the selection. When \c backwards == false, set anchor
* to \c cur and cursor to \c cur + \c length. When \c
* backwards == true, set anchor to \c cur and cursor to \c
private:
///
- struct Pimpl;
+ class Pimpl;
///
- friend struct BufferView::Pimpl;
+ friend class BufferView::Pimpl;
///
Pimpl * pimpl_;
};