mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
1eba5295d8
transverse also inset if they are on it's way, Page up/down for InsetText fixed (cleanly now as I finally understood the algorithm ;) This fixes some non reported bugs, some in Michaels list, some reported on the mailing list and #314 on our buglist. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4008 a592a061-630c-0410-9148-cb99ea01b6c8
142 lines
1.4 KiB
C
142 lines
1.4 KiB
C
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 1995-2001 The LyX Team.
|
|
*
|
|
* ====================================================== */
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "lyxcursor.h"
|
|
|
|
|
|
LyXCursor::LyXCursor()
|
|
: par_(0), pos_(0), boundary_(false),
|
|
x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0)
|
|
{}
|
|
|
|
|
|
void LyXCursor::par(Paragraph * p)
|
|
{
|
|
par_ = p;
|
|
}
|
|
|
|
|
|
Paragraph * LyXCursor::par() const
|
|
{
|
|
return par_;
|
|
}
|
|
|
|
|
|
void LyXCursor::pos(lyx::pos_type p)
|
|
{
|
|
pos_ = p;
|
|
}
|
|
|
|
|
|
lyx::pos_type LyXCursor::pos() const
|
|
{
|
|
return pos_;
|
|
}
|
|
|
|
|
|
void LyXCursor::boundary(bool b)
|
|
{
|
|
boundary_ = b;
|
|
}
|
|
|
|
|
|
bool LyXCursor::boundary() const
|
|
{
|
|
return boundary_;
|
|
}
|
|
|
|
|
|
void LyXCursor::x(int n)
|
|
{
|
|
x_ = n;
|
|
}
|
|
|
|
int LyXCursor::x() const
|
|
{
|
|
return x_;
|
|
}
|
|
|
|
|
|
void LyXCursor::ix(int n)
|
|
{
|
|
ix_ = n;
|
|
}
|
|
|
|
int LyXCursor::ix() const
|
|
{
|
|
return ix_;
|
|
}
|
|
|
|
|
|
void LyXCursor::x_fix(int i)
|
|
{
|
|
x_fix_ = i;
|
|
}
|
|
|
|
|
|
int LyXCursor::x_fix() const
|
|
{
|
|
return x_fix_;
|
|
}
|
|
|
|
|
|
void LyXCursor::y(int i)
|
|
{
|
|
y_ = i;
|
|
}
|
|
|
|
|
|
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() const
|
|
{
|
|
return row_;
|
|
}
|
|
|
|
|
|
void LyXCursor::irow(Row * r)
|
|
{
|
|
irow_ = r;
|
|
}
|
|
|
|
|
|
Row * LyXCursor::irow() const
|
|
{
|
|
return irow_;
|
|
}
|