#include "BufferView.h"
#include "DispatchResult.h"
#include "FuncRequest.h"
-#include "InsetList.h"
#include "Text.h"
-#include "Paragraph.h"
-#include "ParIterator.h"
#include "sgml.h"
#include "support/lstrings.h"
#include "support/lyxalgo.h"
-#include "support/std_ostream.h"
namespace lyx {
-using support::escape;
-
-using std::string;
-using std::ostream;
-using std::vector;
-
InsetLabel::InsetLabel(InsetCommandParams const & p)
: InsetCommand(p, "label")
{}
-std::auto_ptr<Inset> InsetLabel::doClone() const
+Inset * InsetLabel::clone() const
{
- return std::auto_ptr<Inset>(new InsetLabel(params()));
+ return new InsetLabel(params());
}
break;
}
if (p["name"] != params()["name"])
- cur.bv().buffer()->changeRefsIfUnique(params()["name"],
+ cur.bv().buffer().changeRefsIfUnique(params()["name"],
p["name"], Inset::REF_CODE);
setParams(p);
break;
int InsetLabel::latex(Buffer const &, odocstream & os,
OutputParams const &) const
{
- os << escape(getCommand());
+ os << support::escape(getCommand());
return 0;
}