X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetRef.h;h=f45f731f1028922b65eb3cd96f42db9987c9a44b;hb=c3a8b3a566e9e90f9ade72acbc723232d721d0b1;hp=3d2e5c4a23f2679098093824d0e4ac3e6ee6d5c4;hpb=c8d00ed1272cd489041bed2115081008b6a26489;p=lyx.git diff --git a/src/insets/InsetRef.h b/src/insets/InsetRef.h index 3d2e5c4a23..f45f731f10 100644 --- a/src/insets/InsetRef.h +++ b/src/insets/InsetRef.h @@ -43,9 +43,9 @@ public: /// 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; /// @@ -53,19 +53,24 @@ public: /// int docbook(Buffer const &, odocstream &, OutputParams const &) const; /// the string that is passed to the TOC - virtual int textString(Buffer const &, odocstream &, - OutputParams const &) const; + void textString(Buffer const &, odocstream &) 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(LCursor & cur, FuncRequest & cmd); + virtual void doDispatch(Cursor & cur, FuncRequest & cmd); private: - virtual std::auto_ptr doClone() const { - return std::auto_ptr(new InsetRef(*this)); - } + /// + Inset * clone() const { return new InsetRef(*this); } /// bool isLatex; };