X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fcursor_slice.h;h=22218ea713a2ba03e24de4f4953cad13d5167b10;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=3ba4dfb0587ba56d276f79488690535f2f864bc0;hpb=af5acb6dc7e2f77a1f7a69d4f1bbfa25c7b50ea3;p=lyx.git diff --git a/src/cursor_slice.h b/src/cursor_slice.h index 3ba4dfb058..22218ea713 100644 --- a/src/cursor_slice.h +++ b/src/cursor_slice.h @@ -23,6 +23,9 @@ #include #include + +namespace lyx { + class BufferView; class InsetBase; class MathInset; @@ -41,10 +44,6 @@ class CursorSlice { public: /// type for cell number in inset typedef size_t idx_type; - /// type for paragraph numbers positions within a cell - typedef lyx::pit_type pit_type; - /// type for cursor positions within a cell - typedef lyx::pos_type pos_type; /// type for row indices typedef size_t row_type; /// type for col indices @@ -109,8 +108,8 @@ public: /// /// mathed specific stuff /// - /// returns the owning inset if it is a MathInset, else 0 - MathInset * asMathInset() const { return inset_->asMathInset(); } + /// returns the owning inset if it is a InsetMath, else 0 + InsetMath * asInsetMath() const { return inset_->asInsetMath(); } /// returns cell corresponding to this position MathArray & cell() const; @@ -154,4 +153,7 @@ bool operator>(CursorSlice const &, CursorSlice const &); /// test for order bool operator<=(CursorSlice const &, CursorSlice const &); + +} // namespace lyx + #endif