X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathRef.cpp;h=64c474f12e3fe1af19a505dad21332c10318af2f;hb=988f372843941436021a45c5d8848c514f23887c;hp=9945694a68f1b8a55b16328bb725b3fdc68d6f83;hpb=31059d1741933d95403e7f07ed033cae482f778b;p=lyx.git diff --git a/src/mathed/InsetMathRef.cpp b/src/mathed/InsetMathRef.cpp index 9945694a68..64c474f12e 100644 --- a/src/mathed/InsetMathRef.cpp +++ b/src/mathed/InsetMathRef.cpp @@ -32,33 +32,32 @@ namespace lyx { using std::string; -using std::auto_ptr; using std::endl; -RefInset::RefInset() +InsetMathRef::InsetMathRef() : CommandInset(from_ascii("ref")) {} -RefInset::RefInset(docstring const & data) +InsetMathRef::InsetMathRef(docstring const & data) : CommandInset(data) {} -auto_ptr RefInset::doClone() const +Inset * InsetMathRef::clone() const { - return auto_ptr(new RefInset(*this)); + return new InsetMathRef(*this); } -void RefInset::infoize(odocstream & os) const +void InsetMathRef::infoize(odocstream & os) const { os << "Ref: " << cell(0); } -void RefInset::doDispatch(Cursor & cur, FuncRequest & cmd) +void InsetMathRef::doDispatch(Cursor & cur, FuncRequest & cmd) { switch (cmd.action) { case LFUN_INSET_MODIFY: @@ -105,7 +104,7 @@ void RefInset::doDispatch(Cursor & cur, FuncRequest & cmd) } -bool RefInset::getStatus(Cursor & cur, FuncRequest const & cmd, +bool InsetMathRef::getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const { switch (cmd.action) { @@ -123,7 +122,7 @@ bool RefInset::getStatus(Cursor & cur, FuncRequest const & cmd, } -docstring const RefInset::screenLabel() const +docstring const InsetMathRef::screenLabel() const { docstring str; for (int i = 0; !types[i].latex_name.empty(); ++i) { @@ -142,7 +141,7 @@ docstring const RefInset::screenLabel() const } -void RefInset::validate(LaTeXFeatures & features) const +void InsetMathRef::validate(LaTeXFeatures & features) const { if (commandname() == "vref" || commandname() == "vpageref") features.require("varioref"); @@ -151,8 +150,8 @@ void RefInset::validate(LaTeXFeatures & features) const } -int RefInset::docbook(Buffer const & buf, odocstream & os, - OutputParams const & runparams) const +int InsetMathRef::docbook(Buffer const & buf, odocstream & os, + OutputParams const & runparams) const { if (cell(1).empty()) { os << "