]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.C
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetlabel.C
index 2c7e2b013e3cafcd6b7b973ac91b2ff1ec519d17..1554760f81a4fb127833e8ff7db978e902abde85 100644 (file)
@@ -5,7 +5,7 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
@@ -34,11 +34,6 @@ InsetLabel::InsetLabel(InsetCommandParams const & p)
 {}
 
 
-// InsetLabel::InsetLabel(InsetCommandParams const & p, bool)
-//     : InsetCommand(p, false)
-// {}
-
-
 InsetLabel::~InsetLabel()
 {
        InsetCommandMailer("label", *this).hideDialog();
@@ -53,8 +48,6 @@ void InsetLabel::getLabelList(std::vector<string> & list) const
 
 dispatch_result InsetLabel::localDispatch(FuncRequest const & cmd)
 {
-       InsetOld::RESULT result = UNDISPATCHED;
-
        switch (cmd.action) {
 
        case LFUN_INSET_EDIT:
@@ -75,7 +68,7 @@ dispatch_result InsetLabel::localDispatch(FuncRequest const & cmd)
                }
 
                setParams(p);
-               cmd.view()->updateInset();
+               cmd.view()->updateInset(this);
                return DISPATCHED;
        }
 
@@ -85,7 +78,7 @@ dispatch_result InsetLabel::localDispatch(FuncRequest const & cmd)
 }
 
 
-int InsetLabel::latex(Buffer const *, ostream & os,
+int InsetLabel::latex(Buffer const &, ostream & os,
                      LatexRunParams const &) const
 {
        os << escape(getCommand());
@@ -93,21 +86,21 @@ int InsetLabel::latex(Buffer const *, ostream & os,
 }
 
 
-int InsetLabel::ascii(Buffer const *, ostream & os, int) const
+int InsetLabel::ascii(Buffer const &, ostream & os, int) const
 {
        os << '<' << getContents()  << '>';
        return 0;
 }
 
 
-int InsetLabel::linuxdoc(Buffer const *, ostream & os) const
+int InsetLabel::linuxdoc(Buffer const &, ostream & os) const
 {
        os << "<label id=\"" << getContents() << "\" >";
        return 0;
 }
 
 
-int InsetLabel::docbook(Buffer const *, ostream & os, bool) const
+int InsetLabel::docbook(Buffer const &, ostream & os, bool) const
 {
        os << "<anchor id=\"" << getContents() << "\">";
        return 0;