]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettabular.h
move inset related stuff from src/graphics to src/inset/
[lyx.git] / src / insets / insettabular.h
index c0f97e46b20061867856e4f9ee8f575a02a697cd..7e6fbd2dccb059e09e136a156db1080a4bbd3d05 100644 (file)
@@ -1,7 +1,7 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
  *
  *           Copyright 1995-2001 The LyX Team.
@@ -45,9 +45,6 @@
 #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;
@@ -100,7 +101,7 @@ public:
        ///
        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);
        ///
@@ -117,7 +118,7 @@ public:
        ///
        bool updateInsetInInset(BufferView *, Inset *);
        ///
-       unsigned int insetInInsetY();
+       int insetInInsetY() const;
        ///
        UpdatableInset * getLockingInset() const;
        ///
@@ -131,13 +132,11 @@ public:
        ///
        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 &);
@@ -166,7 +165,7 @@ public:
        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;
        ///
@@ -218,14 +217,14 @@ public:
        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
        ///
@@ -287,11 +286,11 @@ private:
        }
        ///
        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;
        ///
@@ -311,6 +310,8 @@ private:
                          int & srow, int & erow) const;
        ///
        string selectNextWordInt(BufferView *, float & value) const;
+       ///
+       bool insertAsciiString(BufferView *, string const & buf, bool usePaste);
 
        //
        // Private structures and variables