X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetWrap.h;h=4a0c306a6be5470cd1180aee8109111437d9a178;hb=06254d11dfdf670fab3548dc2a2674e7a261262c;hp=7629844c427392f0af28f327af14bdd57a38b55b;hpb=51fbea02a8f7dc1e360a61bdc95d5ac9200cb5f6;p=lyx.git diff --git a/src/insets/InsetWrap.h b/src/insets/InsetWrap.h index 7629844c42..4a0c306a6b 100644 --- a/src/insets/InsetWrap.h +++ b/src/insets/InsetWrap.h @@ -30,8 +30,12 @@ public: /// std::string type; /// + int lines; + /// std::string placement; /// + Length overhang; + /// Length width; }; @@ -51,35 +55,37 @@ public: /// void validate(LaTeXFeatures & features) const; /// - InsetBase::Code lyxCode() const { return InsetBase::WRAP_CODE; } + InsetCode lyxCode() const { return WRAP_CODE; } + /// + bool isMacroScope(Buffer const &) const { return true; } /// 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(InsetCode) 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 getInsetName() const { return name_; } + virtual docstring name() const { return name_; } private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// InsetWrapParams params_; @@ -93,7 +99,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_; } ///