X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxcursor.C;h=b653075525477e25ca1cbc26bdffa5af3519df18;hb=2523638092e2024bac408eee98ad2094bc4e4089;hp=acdad00eeceed2843ec68bcff6096dab078a9daf;hpb=2889b5fd3e8987d0c265ff4726a7fb6c6cb6c034;p=lyx.git diff --git a/src/lyxcursor.C b/src/lyxcursor.C index acdad00eec..b653075525 100644 --- a/src/lyxcursor.C +++ b/src/lyxcursor.C @@ -1,47 +1,51 @@ -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. +/** + * \file lyxcursor.C + * Copyright 1995-2001 the LyX Team + * Read the file COPYING * - * ====================================================== */ + * \author Matthias Ettrich + */ + +#include + +#ifdef __GNUG__ +#pragma implementation +#endif #include "lyxcursor.h" -void LyXCursor::par(LyXParagraph * p) -{ - par_ = p; -} +LyXCursor::LyXCursor() + : par_(0), pos_(0), boundary_(false), + x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0) +{} -LyXParagraph * LyXCursor::par() +void LyXCursor::par(Paragraph * p) { - return par_; + par_ = p; } -LyXParagraph * LyXCursor::par() const +Paragraph * LyXCursor::par() const { return par_; } -void LyXCursor::pos(LyXParagraph::size_type p) +void LyXCursor::pos(lyx::pos_type p) { pos_ = p; } -LyXParagraph::size_type LyXCursor::pos() const +lyx::pos_type LyXCursor::pos() const { return pos_; } -void LyXCursor::boundary(bool b) +void LyXCursor::boundary(bool b) { boundary_ = b; } @@ -64,6 +68,17 @@ int LyXCursor::x() const } +void LyXCursor::ix(int n) +{ + ix_ = n; +} + +int LyXCursor::ix() const +{ + return ix_; +} + + void LyXCursor::x_fix(int i) { x_fix_ = i; @@ -76,31 +91,49 @@ int LyXCursor::x_fix() const } -void LyXCursor::y(unsigned long i) +void LyXCursor::y(int i) { y_ = i; } -unsigned long LyXCursor::y() const +int LyXCursor::y() const { return y_; } +void LyXCursor::iy(int i) +{ + iy_ = i; +} + + +int LyXCursor::iy() const +{ + return iy_; +} + + void LyXCursor::row(Row * r) { row_ = r; } -Row * LyXCursor::row() +Row * LyXCursor::row() const { return row_; } -Row * LyXCursor::row() const +void LyXCursor::irow(Row * r) { - return row_; + irow_ = r; +} + + +Row * LyXCursor::irow() const +{ + return irow_; }