]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
* Inset: Prepare for an eventual merge of updateLabels() and addToToc()
[lyx.git] / src / insets / InsetRef.h
index 381978c36d06b6dfe0be2059d6d6f6ca06ee9b6d..f45f731f1028922b65eb3cd96f42db9987c9a44b 100644 (file)
@@ -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(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;
 };