]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLabel.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetLabel.h
index ba1fe4a533019badc817ac015211620e6e3acc87..afbfda9d552becc761afb2c727ae0d8c82240851 100644 (file)
@@ -26,7 +26,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::LABEL_CODE; }
+       InsetCode lyxCode() const { return LABEL_CODE; }
        /// Appends \c list with this label
        void getLabelList(Buffer const &, std::vector<docstring> & list) const;
        ///
@@ -35,10 +35,17 @@ public:
        int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
        ///
        int docbook(Buffer const &, odocstream &, OutputParams const &) const;
+       ///
+       static CommandInfo const * findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "label"; };
+       ///
+       static bool isCompatibleCommand(std::string const & s) 
+               { return s == "label"; }
 protected:
-       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };