]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetWrap.h
* the old cursor is stored before dispatch and then used after moving
[lyx.git] / src / insets / InsetWrap.h
index 7629844c427392f0af28f327af14bdd57a38b55b..d8f5acae931da6dc6f78566c0cdca06022196049 100644 (file)
@@ -51,22 +51,20 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::WRAP_CODE; }
+       Inset::Code lyxCode() const { return Inset::WRAP_CODE; }
        ///
        int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+                 OutputParams const &) const;
        ///
        int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+                     OutputParams const &) const;
        ///
        int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+                   OutputParams const &) const;
        ///
        virtual docstring const editMessage() const;
        ///
-       bool insetAllowed(InsetBase::Code) const;
-       ///
-       void addToToc(TocList &, Buffer const &) const;
+       bool insetAllowed(Inset::Code) const;
        ///
        bool showInsetDialog(BufferView *) const;
        ///
@@ -77,9 +75,9 @@ protected:
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       virtual docstring getInsetName() const { return name_; }
+       virtual docstring name() const { return name_; }
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
 
        ///
        InsetWrapParams params_;
@@ -93,7 +91,7 @@ public:
        ///
        InsetWrapMailer(InsetWrap & inset);
        ///
-       virtual InsetBase & inset() const { return inset_; }
+       virtual Inset & inset() const { return inset_; }
        ///
        virtual std::string const & name() const { return name_; }
        ///