///
std::string type;
///
+ int lines;
+ ///
std::string placement;
///
+ Length overhang;
+ ///
Length width;
};
///
~InsetWrap();
///
- void write(Buffer const & buf, std::ostream & os) const;
+ void write(std::ostream & os) const;
///
- void read(Buffer const & buf, Lexer & lex);
+ void read(Lexer & lex);
///
void validate(LaTeXFeatures & features) const;
///
- InsetBase::Code lyxCode() const { return InsetBase::WRAP_CODE; }
+ InsetCode lyxCode() const { return WRAP_CODE; }
///
- int latex(Buffer const &, odocstream &,
- OutputParams const &) const;
+ bool isMacroScope() const { return true; }
///
- int plaintext(Buffer const &, odocstream &,
- OutputParams const &) const;
+ int latex(odocstream &, OutputParams const &) const;
///
- int docbook(Buffer const &, odocstream &,
- OutputParams const &) const;
+ int plaintext(odocstream &, OutputParams const &) const;
///
- virtual docstring const editMessage() const;
+ int docbook(odocstream &, OutputParams const &) const;
///
- bool insetAllowed(InsetBase::Code) const;
+ docstring editMessage() 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
+ void updateLabels(ParIterator const &);
protected:
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
+ ///
+ docstring name() const { return name_; }
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ Inset * clone() const;
///
InsetWrapParams params_;
+ ///
+ docstring name_;
};
///
InsetWrapMailer(InsetWrap & inset);
///
- virtual InsetBase & inset() const { return inset_; }
+ virtual Inset & inset() const { return inset_; }
///
virtual std::string const & name() const { return name_; }
///