]> git.lyx.org Git - lyx.git/blobdiff - src/cursor_slice.h
hopefully fix tex2lyx linking.
[lyx.git] / src / cursor_slice.h
index 3ba4dfb0587ba56d276f79488690535f2f864bc0..22218ea713a2ba03e24de4f4953cad13d5167b10 100644 (file)
@@ -23,6 +23,9 @@
 #include <cstddef>
 #include <iosfwd>
 
+
+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