]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.C
Rename ascii to plaintext and LatexRunParams to OutputParams.
[lyx.git] / src / insets / insetlabel.C
index b5b16cf8aee856ac179c057df416514a0bfb9eb1..16978b739845e99c8e579be621d4c868f9a107e7 100644 (file)
@@ -66,10 +66,9 @@ InsetLabel::priv_dispatch(FuncRequest const & cmd,
 
        switch (cmd.action) {
 
-       case LFUN_INSET_EDIT:
+       case LFUN_MOUSE_RELEASE:
                InsetCommandMailer("label", *this).showDialog(bv);
-               return DispatchResult(true);
-               break;
+               return DispatchResult(true, true);
 
        case LFUN_INSET_MODIFY: {
                InsetCommandParams p;
@@ -85,7 +84,7 @@ InsetLabel::priv_dispatch(FuncRequest const & cmd,
 
                setParams(p);
                bv->updateInset(this);
-               return DispatchResult(true);
+               return DispatchResult(true, true);
        }
 
        default:
@@ -95,15 +94,15 @@ InsetLabel::priv_dispatch(FuncRequest const & cmd,
 
 
 int InsetLabel::latex(Buffer const &, ostream & os,
-                     LatexRunParams const &) const
+                     OutputParams const &) const
 {
        os << escape(getCommand());
        return 0;
 }
 
 
-int InsetLabel::ascii(Buffer const &, ostream & os,
-                     LatexRunParams const &) const
+int InsetLabel::plaintext(Buffer const &, ostream & os,
+                     OutputParams const &) const
 {
        os << '<' << getContents()  << '>';
        return 0;
@@ -111,7 +110,7 @@ int InsetLabel::ascii(Buffer const &, ostream & os,
 
 
 int InsetLabel::linuxdoc(Buffer const &, ostream & os,
-                        LatexRunParams const &) const
+                        OutputParams const &) const
 {
        os << "<label id=\"" << getContents() << "\" >";
        return 0;
@@ -119,7 +118,7 @@ int InsetLabel::linuxdoc(Buffer const &, ostream & os,
 
 
 int InsetLabel::docbook(Buffer const &, ostream & os,
-                       LatexRunParams const &) const
+                       OutputParams const &) const
 {
        os << "<anchor id=\"" << getContents() << "\">";
        return 0;