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);
}
-string const InsetRef::getScreenLabel() const
+void InsetRef::edit(BufferView *, bool)
+{
+}
+
+
+string const InsetRef::getScreenLabel(Buffer const *) const
{
string temp;
for (int i = 0; !types[i].latex_name.empty(); ++ i)
if (getOptions().empty())
os << escape(getCommand());
else {
- InsetCommandParams p( getCmdName(), getContents(), "" );
+ InsetCommandParams p(getCmdName(), getContents(), "");
os << escape(p.getCommand());
}
return 0;
}
-int InsetRef::docBook(Buffer const *, ostream & os) const
+int InsetRef::docbook(Buffer const *, ostream & os) const
{
if (getOptions().empty()) {
- os << "<xref linkend=\"" << getContents() << "\"/>";
+ os << "<xref linkend=\"" << getContents() << "\">";
} else {
os << "<link linkend=\"" << getContents()
<< "\">" << getOptions() << "</link>";
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[] = {