]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRef.cpp
simplify GuiToc / TocWidget interaction. Much can still be simplified...
[lyx.git] / src / mathed / InsetMathRef.cpp
index 48b74a8aa8ee0a5a82707c58bf5cdfe82db96c13..f17acde308ce9a8003ef40c2ca0cb17660d9e2a0 100644 (file)
 #include "LaTeXFeatures.h"
 #include "Buffer.h"
 #include "Cursor.h"
-#include "debug.h"
+#include "support/debug.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
-#include "gettext.h"
+#include "support/gettext.h"
 #include "MathData.h"
 #include "MathFactory.h"
 #include "MathSupport.h"
 
 #include "insets/InsetCommand.h"
 
+#include <ostream>
 
-namespace lyx {
-
-using std::string;
-using std::endl;
+using namespace std;
 
+namespace lyx {
 
 InsetMathRef::InsetMathRef()
        : CommandInset(from_ascii("ref"))
@@ -79,14 +78,14 @@ void InsetMathRef::doDispatch(Cursor & cur, FuncRequest & cmd)
 
        case LFUN_MOUSE_RELEASE:
                if (cmd.button() == mouse_button::button3) {
-                       lyxerr << "trying to goto ref '" << to_utf8(asString(cell(0))) << "'" << endl;
+                       LYXERR0("trying to goto ref '" << to_utf8(asString(cell(0))) << "'");
                        cur.bv().dispatch(FuncRequest(LFUN_LABEL_GOTO, asString(cell(0))));
                        break;
                }
                if (cmd.button() == mouse_button::button1) {
                        // Eventually trigger dialog with button 3, not 1
                        string const data = createDialogStr("ref");
-                       cur.bv().showInsetDialog("ref", data, this);
+                       cur.bv().showDialog("ref", data, this);
                        break;
                }
                cur.undispatched();