]> git.lyx.org Git - features.git/blobdiff - src/cursor_slice.C
some integer type changes for inset unification
[features.git] / src / cursor_slice.C
index deec39303e9a296ce2b03282ea084ad2389377ff..25e5f3f141468856e16d88a9e8d24cb96f5d0d82 100644 (file)
@@ -3,7 +3,10 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
+ * \author Lars Gullik Bjønnes
+ * \author Matthias Ettrich
  * \author André Pönitz
+ * \author Jürgen Vigna
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -22,17 +25,53 @@ using std::endl;
 
 
 CursorSlice::CursorSlice()
-       : inset_(0), idx_(0), par_(0), pos_(0)
+       : inset_(0), idx_(0), par_(0), pos_(0), boundary_(false)
 {}
 
 
 CursorSlice::CursorSlice(InsetBase * p)
-       : inset_(p), idx_(0), par_(0), pos_(0)
+       : inset_(p), idx_(0), par_(0), pos_(0), boundary_(false)
 {
        ///BOOST_ASSERT(inset_);
 }
 
 
+void CursorSlice::par(lyx::paroffset_type par)
+{
+       par_ = par;
+}
+
+
+lyx::paroffset_type CursorSlice::par() const
+{
+       return par_;
+}
+
+
+void CursorSlice::pos(lyx::pos_type pos)
+{
+       pos_ = pos;
+}
+
+
+lyx::pos_type CursorSlice::pos() const
+{
+       return pos_;
+}
+
+
+void CursorSlice::boundary(bool boundary)
+{
+       boundary_ = boundary;
+}
+
+
+bool CursorSlice::boundary() const
+{
+       return boundary_;
+}
+
+
 MathInset * CursorSlice::asMathInset() const
 {
        return static_cast<MathInset *>(const_cast<InsetBase *>(inset_));