X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetWrap.h;h=4a0c306a6be5470cd1180aee8109111437d9a178;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=d8f5acae931da6dc6f78566c0cdca06022196049;hpb=d3e30f8d9b68d51141290c7f4888040e9cfbaffa;p=lyx.git diff --git a/src/insets/InsetWrap.h b/src/insets/InsetWrap.h index d8f5acae93..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,7 +55,9 @@ public: /// void validate(LaTeXFeatures & features) const; /// - Inset::Code lyxCode() const { return Inset::WRAP_CODE; } + InsetCode lyxCode() const { return WRAP_CODE; } + /// + bool isMacroScope(Buffer const &) const { return true; } /// int latex(Buffer const &, odocstream &, OutputParams const &) const; @@ -64,20 +70,22 @@ public: /// virtual docstring const editMessage() const; /// - bool insetAllowed(Inset::Code) 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 name() const { return name_; } private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// InsetWrapParams params_;