#ifndef INSETTABULAR_H
#define INSETTABULAR_H
-#include <sigc++/signal_system.h>
-#include <boost/smart_ptr.hpp>
-
#ifdef __GNUG__
#pragma interface
#endif
#include "lyxcursor.h"
#include "FuncStatus.h"
+#include <boost/scoped_ptr.hpp>
+
+#include <sigc++/signal_system.h>
+
class LyXLex;
class Painter;
class BufferView;
///
string const editMessage() const;
///
- void edit(BufferView *, int x, int y, unsigned int);
+ void edit(BufferView *, int x, int y, mouse_button::state);
///
void edit(BufferView * bv, bool front = true);
///
///
bool display() const { return tabular->IsLongTabular(); }
///
- bool insetButtonRelease(BufferView *, int, int, int);
- ///
- void insetButtonPress(BufferView *, int, int, int);
+ bool insetButtonRelease(BufferView *, int, int, mouse_button::state);
///
- void insetMotionNotify(BufferView *, int, int, int);
+ void insetButtonPress(BufferView *, int, int, mouse_button::state);
///
- void insetKeyPress(XKeyEvent *);
+ void insetMotionNotify(BufferView *, int, int, mouse_button::state);
///
UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
string const &);
}
///
bool activateCellInset(BufferView *, int x = 0, int y = 0,
- int button = 0,
+ mouse_button::state button = mouse_button::none,
bool behind = false);
///
bool activateCellInsetAbs(BufferView *, int x = 0, int y = 0,
- int button = 0);
+ mouse_button::state button = mouse_button::none);
///
bool insetHit(BufferView * bv, int x, int y) const;
///