///
EDITABLE editable() const { return IS_EDITABLE; }
///
- Code lyxCode() const { return REF_CODE; }
+ InsetCode lyxCode() const { return REF_CODE; }
///
- bool display() const { return false; }
+ DisplayType display() const { return Inline; }
///
int latex(Buffer const &, odocstream &, OutputParams const &) const;
///
OutputParams const &) const;
///
void validate(LaTeXFeatures & features) const;
+ ///
+ static CommandInfo const * findInfo(std::string const &);
+ ///
+ static std::string defaultCommand() { return "ref"; };
+ ///
+ static bool isCompatibleCommand(std::string const & s);
protected:
+ ///
InsetRef(InsetRef const &);
///
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
private:
- virtual std::auto_ptr<InsetBase> doClone() const {
- return std::auto_ptr<InsetBase>(new InsetRef(*this));
- }
+ ///
+ Inset * clone() const { return new InsetRef(*this); }
///
bool isLatex;
};