1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
1999-11-15 12:01:38 +00:00
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2000-03-09 03:36:48 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
1999-11-15 12:01:38 +00:00
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-11-04 01:40:20 +00:00
|
|
|
#ifndef LYXCURSOR_H
|
|
|
|
#define LYXCURSOR_H
|
|
|
|
|
|
|
|
#include "lyxparagraph.h"
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
struct Row;
|
|
|
|
|
2000-05-22 13:20:51 +00:00
|
|
|
/** All these variables should be explained. Matthias?
|
1999-09-27 18:44:28 +00:00
|
|
|
*/
|
|
|
|
struct LyXCursor {
|
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
LyXParagraph * par;
|
|
|
|
///
|
|
|
|
LyXParagraph::size_type pos;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
int x;
|
|
|
|
///
|
|
|
|
int x_fix;
|
|
|
|
///
|
2000-04-26 13:57:28 +00:00
|
|
|
unsigned long y;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-11-04 01:40:20 +00:00
|
|
|
Row * row;
|
2000-05-04 08:14:34 +00:00
|
|
|
///
|
|
|
|
inline bool operator==(const LyXCursor &a) const
|
|
|
|
{ return (a.par == par) && (a.pos == pos); }
|
|
|
|
inline bool operator!=(const LyXCursor &a) const
|
|
|
|
{ return (a.par != par) || (a.pos != pos); }
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|