]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRef.C
Support lgathered and rgathered math environments
[lyx.git] / src / mathed / InsetMathRef.C
index 606a1f5c799e9525d4d4371b17e5a163368f36bc..ac9f9726cbc8bf6ec95719102f145ae5fc76522d 100644 (file)
 #include "outputparams.h"
 #include "sgml.h"
 
-#include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-
 using std::string;
 using std::auto_ptr;
 using std::endl;
 
 
-
 RefInset::RefInset()
        : CommandInset("ref")
 {}
@@ -73,8 +69,7 @@ void RefInset::doDispatch(LCursor & cur, FuncRequest & cmd)
 
        case LFUN_INSET_DIALOG_UPDATE: {
                string const data = createDialogStr("ref");
-               if (cur.bv().owner()->getDialogs().visible("ref"))
-                       cur.bv().owner()->getDialogs().update("ref", data);
+               cur.bv().updateDialog("ref", data);
                break;
        }
 
@@ -87,7 +82,7 @@ void RefInset::doDispatch(LCursor & cur, FuncRequest & cmd)
                if (cmd.button() == mouse_button::button1) {
                        // Eventually trigger dialog with button 3, not 1
                        string const data = createDialogStr("ref");
-                       cur.bv().owner()->getDialogs().show("ref", data, this);
+                       cur.bv().showInsetDialog("ref", data, this);
                        break;
                }
                cur.undispatched();