]> 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 b2f027dd035cde3c3ffdbaaab3044e404f34ff02..a23944590c4eb3562e3ddac9da3d2284bc755ae3 100644 (file)
@@ -30,8 +30,12 @@ public:
        ///
        std::string type;
        ///
+       int lines;
+       ///
        std::string placement;
        ///
+       Length overhang;
+       ///
        Length width;
 };
 
@@ -51,36 +55,40 @@ 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;
        ///
        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 name() const { return name_; }
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 
        ///
        InsetWrapParams params_;
+       ///
+       docstring name_;
 };
 
 
@@ -89,7 +97,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_; }
        ///