]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/ref_inset.C
more IU
[lyx.git] / src / mathed / ref_inset.C
index aec962e78f82d3da9e29f4168c7e414a75c6713c..2e749924bb3a2e854d5c54a8fed146620bcaf913 100644 (file)
@@ -62,18 +62,18 @@ RefInset::priv_dispatch(FuncRequest const & cmd,
                if (cmd.getArg(0) == "ref") {
                        MathArray ar;
                        if (!createMathInset_fromDialogStr(cmd.argument, ar))
-                               return DispatchResult(UNDISPATCHED);
+                               return DispatchResult(false);
 
                        *this = *ar[0].nucleus()->asRefInset();
 
-                       return DispatchResult(DISPATCHED);
+                       return DispatchResult(true, true);
                }
                break;
        case LFUN_MOUSE_RELEASE:
                if (cmd.button() == mouse_button::button3) {
                        lyxerr << "trying to goto ref" << cell(0) << endl;
                        cmd.view()->dispatch(FuncRequest(LFUN_REF_GOTO, asString(cell(0))));
-                       return DispatchResult(DISPATCHED);
+                       return DispatchResult(true, true);
                }
                if (cmd.button() == mouse_button::button1) {
                        // Eventually trigger dialog with button 3
@@ -81,18 +81,18 @@ RefInset::priv_dispatch(FuncRequest const & cmd,
                        string const data = createDialogStr("ref");
                        cmd.view()->owner()->getDialogs().
                                show("ref", data, this);
-                       return DispatchResult(DISPATCHED);
+                       return DispatchResult(true, true);
                }
                break;
        case LFUN_MOUSE_PRESS:
        case LFUN_MOUSE_MOTION:
                // eat other mouse commands
-               return DispatchResult(DISPATCHED);
+               return DispatchResult(true, true);
        default:
                return CommandInset::priv_dispatch(cmd, idx, pos);
        }
        // not our business
-       return DispatchResult(UNDISPATCHED);
+       return DispatchResult(false);
 }
 
 
@@ -123,14 +123,14 @@ void RefInset::validate(LaTeXFeatures & features) const
 }
 
 
-int RefInset::ascii(std::ostream & os, LatexRunParams const &) const
+int RefInset::plaintext(std::ostream & os, OutputParams const &) const
 {
        os << '[' << asString(cell(0)) << ']';
        return 0;
 }
 
 
-int RefInset::linuxdoc(std::ostream & os, LatexRunParams const &) const
+int RefInset::linuxdoc(std::ostream & os, OutputParams const &) const
 {
        os << "<ref id=\"" << asString(cell(0))
           << "\" name=\"" << asString(cell(1)) << "\" >";
@@ -138,7 +138,7 @@ int RefInset::linuxdoc(std::ostream & os, LatexRunParams const &) const
 }
 
 
-int RefInset::docbook(std::ostream & os, LatexRunParams const &) const
+int RefInset::docbook(std::ostream & os, OutputParams const &) const
 {
        if (cell(1).empty()) {
                os << "<xref linkend=\"" << asString(cell(0)) << "\">";