]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / Inset.cpp
index 4d19fa4b05e6b8c3f5b75ac676f5e5a7836ae8dd..fe5b1a7f26bbca89a724415f5765b22efca11391 100644 (file)
 #include "DispatchResult.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
+#include "LyX.h" // quitting
+#include "MetricsInfo.h"
 #include "Text.h"
 #include "TextClass.h"
-#include "MetricsInfo.h"
-#include "MetricsInfo.h"
 
 #include "frontends/Painter.h"
 #include "frontends/Application.h"
@@ -43,8 +43,6 @@ using namespace std;
 
 namespace lyx {
 
-extern bool quitting;
-
 class InsetName {
 public:
        InsetName(string const & n, InsetCode c) : name(n), code(c) {}
@@ -125,6 +123,18 @@ docstring Inset::name() const
 }
 
 
+docstring Inset::toolTip(BufferView const &, int, int) const
+{
+       return docstring();
+}
+
+
+docstring Inset::contextMenu(BufferView const &, int, int) const
+{
+       return docstring();
+}
+
+
 Dimension const Inset::dimension(BufferView const & bv) const
 {
        return bv.coordCache().getInsets().dim(this);
@@ -201,7 +211,7 @@ bool Inset::getStatus(Cursor &, FuncRequest const & cmd,
 }
 
 
-void Inset::edit(Cursor &, bool)
+void Inset::edit(Cursor &, bool, EntryDirection)
 {
        LYXERR(Debug::INSETS, "edit left/right");
 }