X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetref.C;h=b6fccf4831454812d9da9976dabb845714e76d86;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=5ce084749fd26556d8dec77fdb015bc7323ae2ee;hpb=2470d9297d3f2c303f555c8f235d022b19396679;p=lyx.git
diff --git a/src/insets/insetref.C b/src/insets/insetref.C
index 5ce084749f..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;
@@ -88,7 +88,7 @@ int InsetRef::linuxdoc(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[] = {