X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetref.C;h=b6fccf4831454812d9da9976dabb845714e76d86;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=8910dcb4b8593dd09769957511bbf5fb39dda8d6;hpb=5f2e3c4c43f8e1736a2b7654595dfe6c175b4b3b;p=lyx.git diff --git a/src/insets/insetref.C b/src/insets/insetref.C index 8910dcb4b8..b6fccf4831 100644 --- a/src/insets/insetref.C +++ b/src/insets/insetref.C @@ -25,11 +25,11 @@ InsetRef::InsetRef(InsetCommandParams const & p, Buffer const & buf, bool) void InsetRef::edit(BufferView * bv, int, int, unsigned int button) { // Eventually trigger dialog with button 3 not 1 - if (button == 3 ) + if (button == 3) bv->owner()->getLyXFunc()-> dispatch(LFUN_REF_GOTO, getContents()); - else if (button == 1 ) - bv->owner()->getDialogs()->showRef( this ); + else if (button == 1) + bv->owner()->getDialogs()->showRef(this); } @@ -63,7 +63,7 @@ int InsetRef::latex(Buffer const *, ostream & os, if (getOptions().empty()) os << escape(getCommand()); else { - InsetCommandParams p( getCmdName(), getContents(), "" ); + InsetCommandParams p(getCmdName(), getContents(), ""); os << escape(p.getCommand()); } return 0; @@ -85,10 +85,10 @@ int InsetRef::linuxdoc(Buffer const *, ostream & os) const } -int InsetRef::docBook(Buffer const *, ostream & os) const +int InsetRef::docbook(Buffer const *, ostream & os) const { if (getOptions().empty()) { - os << ""; + os << ""; } else { os << "" << getOptions() << ""; @@ -101,9 +101,9 @@ int InsetRef::docBook(Buffer const *, ostream & os) const void InsetRef::validate(LaTeXFeatures & features) const { if (getCmdName() == "vref" || getCmdName() == "vpageref") - features.varioref = true; + features.require("varioref"); else if (getCmdName() == "prettyref") - features.prettyref = true; + features.require("prettyref"); } InsetRef::type_info InsetRef::types[] = {