]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLabel.cpp
following rev. 18724 boost/signal is not needed.
[lyx.git] / src / insets / InsetLabel.cpp
index 9243f16db1d7ed581cd6085eec4d61a37e80b12a..95fb3e6bb5af59525152f8c3a44a5e8995a2ff24 100644 (file)
@@ -17,7 +17,7 @@
 #include "DispatchResult.h"
 #include "FuncRequest.h"
 #include "InsetList.h"
-#include "LyXText.h"
+#include "Text.h"
 #include "Paragraph.h"
 #include "ParIterator.h"
 #include "sgml.h"
@@ -41,9 +41,9 @@ InsetLabel::InsetLabel(InsetCommandParams const & p)
 {}
 
 
-std::auto_ptr<InsetBase> InsetLabel::doClone() const
+std::auto_ptr<Inset> InsetLabel::doClone() const
 {
-       return std::auto_ptr<InsetBase>(new InsetLabel(params()));
+       return std::auto_ptr<Inset>(new InsetLabel(params()));
 }
 
 
@@ -59,7 +59,7 @@ docstring const InsetLabel::getScreenLabel(Buffer const &) const
 }
 
 
-void InsetLabel::doDispatch(LCursor & cur, FuncRequest & cmd)
+void InsetLabel::doDispatch(Cursor & cur, FuncRequest & cmd)
 {
        switch (cmd.action) {
 
@@ -73,7 +73,7 @@ void InsetLabel::doDispatch(LCursor & cur, FuncRequest & cmd)
                }
                if (p["name"] != params()["name"])
                        cur.bv().buffer()->changeRefsIfUnique(params()["name"],
-                                       p["name"], InsetBase::REF_CODE);
+                                       p["name"], Inset::REF_CODE);
                setParams(p);
                break;
        }
@@ -86,7 +86,7 @@ void InsetLabel::doDispatch(LCursor & cur, FuncRequest & cmd)
 
 
 int InsetLabel::latex(Buffer const &, odocstream & os,
-                      OutputParams const &) const
+                     OutputParams const &) const
 {
        os << escape(getCommand());
        return 0;
@@ -94,7 +94,7 @@ int InsetLabel::latex(Buffer const &, odocstream & os,
 
 
 int InsetLabel::plaintext(Buffer const &, odocstream & os,
-                          OutputParams const &) const
+                         OutputParams const &) const
 {
        docstring const str = getParam("name");
        os << '<' << str << '>';
@@ -103,11 +103,11 @@ int InsetLabel::plaintext(Buffer const &, odocstream & os,
 
 
 int InsetLabel::docbook(Buffer const & buf, odocstream & os,
-                        OutputParams const & runparams) const
+                       OutputParams const & runparams) const
 {
        os << "<!-- anchor id=\""
-           << sgml::cleanID(buf, runparams, getParam("name"))
-           << "\" -->";
+          << sgml::cleanID(buf, runparams, getParam("name"))
+          << "\" -->";
        return 0;
 }