]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetref.C
index d104146ff150c2add54752bc0c4b2a8d895aca82..fd7074e5bfc88c51f16e99b6636fc19115042697 100644 (file)
@@ -48,7 +48,7 @@ void InsetRef::doDispatch(LCursor & cur, FuncRequest & cmd)
        case LFUN_MOUSE_PRESS:
                // Eventually trigger dialog with button 3 not 1
                if (cmd.button() == mouse_button::button3)
-                       cur.bv().owner()->dispatch(FuncRequest(LFUN_REF_GOTO, getContents()));
+                       cur.bv().owner()->dispatch(FuncRequest(LFUN_LABEL_GOTO, getContents()));
                else
                        InsetCommandMailer("ref", *this).showDialog(&cur.bv());
                return;
@@ -127,6 +127,13 @@ int InsetRef::docbook(Buffer const & buf, ostream & os,
 }
 
 
+int InsetRef::textString(Buffer const & buf, ostream & os,
+                      OutputParams const & op) const
+{
+       return plaintext(buf, os, op);
+}
+
+
 void InsetRef::validate(LaTeXFeatures & features) const
 {
        if (getCmdName() == "vref" || getCmdName() == "vpageref")