// -*- C++ -*-
/* This file is part of
* ======================================================
- *
+ *
* LyX, The Document Processor
*
* Copyright 1995-2001 The LyX Team.
#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 updateInsetInInset(BufferView *, Inset *);
///
- unsigned int insetInInsetY();
+ int insetInInsetY() const;
///
UpdatableInset * getLockingInset() const;
///
///
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 &);
int getActCell() const { return actcell; }
///
void setFont(BufferView *, LyXFont const &, bool toggleall = false,
- bool selectall = false);
+ bool selectall = false);
///
int getMaxWidth(BufferView *, UpdatableInset const *) const;
///
void toggleSelection(BufferView *, bool kill_selection);
///
bool searchForward(BufferView *, string const &,
- bool const & = true, bool const & = false);
+ bool = true, bool = false);
bool searchBackward(BufferView *, string const &,
- bool const & = true, bool const & = false);
+ bool = true, bool = false);
// this should return true if we have a "normal" cell, otherwise true.
// "normal" means without width set!
bool forceDefaultParagraphs(Inset const * in) const;
-
+
//
// Public structures and variables
///
}
///
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;
///
int & srow, int & erow) const;
///
string selectNextWordInt(BufferView *, float & value) const;
+ ///
+ bool insertAsciiString(BufferView *, string const & buf, bool usePaste);
//
// Private structures and variables