]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.C
ws changes only
[lyx.git] / src / insets / insetref.C
index 56bde45fb579f2a63aabd7e8c3f8547532721240..d2c1dfacac7f0b40888925b04005f629bc0217ae 100644 (file)
@@ -9,22 +9,25 @@
  */
 #include <config.h>
 
-
 #include "insetref.h"
+
 #include "buffer.h"
+#include "BufferView.h"
 #include "funcrequest.h"
-#include "debug.h"
 #include "gettext.h"
 #include "LaTeXFeatures.h"
+
 #include "frontends/LyXView.h"
-#include "frontends/Dialogs.h"
-#include "BufferView.h"
+
 #include "support/lstrings.h"
 
-using namespace lyx::support;
 
+using lyx::support::escape;
+
+using std::string;
 using std::ostream;
 
+
 InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf)
        : InsetCommand(p), isLatex(buf.isLatex())
 {}
@@ -60,7 +63,7 @@ dispatch_result InsetRef::localDispatch(FuncRequest const & cmd)
 }
 
 
-string const InsetRef::getScreenLabel(Buffer const *) const
+string const InsetRef::getScreenLabel(Buffer const &) const
 {
        string temp;
        for (int i = 0; !types[i].latex_name.empty(); ++ i)
@@ -79,7 +82,7 @@ string const InsetRef::getScreenLabel(Buffer const *) const
 }
 
 
-int InsetRef::latex(Buffer const *, ostream & os,
+int InsetRef::latex(Buffer const &, ostream & os,
                    LatexRunParams const &) const
 {
        if (getOptions().empty())
@@ -92,14 +95,14 @@ int InsetRef::latex(Buffer const *, ostream & os,
 }
 
 
-int InsetRef::ascii(Buffer const *, ostream & os, int) const
+int InsetRef::ascii(Buffer const &, ostream & os, int) const
 {
        os << '[' << getContents() << ']';
        return 0;
 }
 
 
-int InsetRef::linuxdoc(Buffer const *, ostream & os) const
+int InsetRef::linuxdoc(Buffer const &, ostream & os) const
 {
        os << "<ref id=\"" << getContents()
           << "\" name=\"" << getOptions() << "\" >";
@@ -107,7 +110,7 @@ int InsetRef::linuxdoc(Buffer const *, ostream & os) const
 }
 
 
-int InsetRef::docbook(Buffer const *, ostream & os, bool) const
+int InsetRef::docbook(Buffer const &, ostream & os, bool) const
 {
        if (getOptions().empty()) {
                os << "<xref linkend=\"" << getContents() << "\">";