InsetRef::InsetRef(Buffer * buf, InsetCommandParams const & p)
- : InsetCommand(buf, p, "ref"), isLatex(buf->isLatex())
+ : InsetCommand(buf, p, "ref")
{}
InsetRef::InsetRef(InsetRef const & ir)
- : InsetCommand(ir), isLatex(ir.isLatex)
+ : InsetCommand(ir)
{}
}
}
label += ref;
-
- if (!isLatex && !getParam("name").empty()) {
+
+ if (!buffer().isLatex() && !getParam("name").empty()) {
label += "||";
label += getParam("name");
}
void updateBuffer(ParIterator const & it, UpdateType);
///
void addToToc(DocIterator const &);
+ ///
+ bool forceLTR() const { return true; }
//@}
/// \name Static public methods obligated for InsetCommand derived classes
Inset * clone() const { return new InsetRef(*this); }
//@}
- ///
- bool isLatex;
- /// Force inset into LTR environment if surroundings are RTL
- bool forceLTR() const { return true; }
///
mutable docstring screen_label_;
///