]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetWrap.h
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetWrap.h
index 93f875de1d987dfcea88e446f25823c49f9b1577..a23944590c4eb3562e3ddac9da3d2284bc755ae3 100644 (file)
@@ -30,8 +30,12 @@ public:
        ///
        std::string type;
        ///
+       int lines;
+       ///
        std::string placement;
        ///
+       Length overhang;
+       ///
        Length width;
 };
 
@@ -54,32 +58,32 @@ public:
        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(Inset::Code) const;
        ///
-       void addToToc(TocList &, Buffer const &) const;
-       ///
        bool showInsetDialog(BufferView *) const;
        ///
        InsetWrapParams const & params() const { return params_; }
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+       // Update the counters of this inset and of its contents
+       virtual void updateLabels(Buffer const &, ParIterator const &);
 protected:
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       virtual docstring insetName() const { return name_; }
+       virtual docstring name() const { return name_; }
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 
        ///
        InsetWrapParams params_;