class InsetERT : public InsetCollapsable {
public:
///
- InsetERT(BufferParams const &, CollapseStatus status = Open);
-#if 0
- ///
- InsetERT(BufferParams const &,
- Language const *, std::string const & contents, CollapseStatus status);
-#endif
+ InsetERT(Buffer const &, CollapseStatus status = Open);
///
~InsetERT();
+private:
///
InsetCode lyxCode() const { return ERT_CODE; }
///
docstring name() const { return from_ascii("ERT"); }
///
- void write(Buffer const & buf, std::ostream & os) const;
+ void write(std::ostream & os) const;
///
- virtual docstring const editMessage() const;
+ docstring editMessage() const;
///
bool insetAllowed(InsetCode code) const;
///
- int latex(Buffer const &, odocstream &,
- OutputParams const &) const;
+ int latex(odocstream &, OutputParams const &) const;
///
- int plaintext(Buffer const &, odocstream &,
- OutputParams const &) const;
+ int plaintext(odocstream &, OutputParams const &) const;
///
- int docbook(Buffer const &, odocstream &,
- OutputParams const &) const;
+ int docbook(odocstream &, OutputParams const &) const;
///
void validate(LaTeXFeatures &) const {}
///
///
bool showInsetDialog(BufferView *) const;
///
- bool forceDefaultParagraphs(idx_type) const { return true; }
- /// should paragraph indendation be ommitted in any case?
- bool neverIndent(Buffer const &) const { return true; }
-protected:
- InsetERT(InsetERT const &);
+ virtual bool forceEmptyLayout(idx_type = 0) const { return true; }
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
+ /// should paragraph indendation be omitted in any case?
+ bool neverIndent() const { return true; }
+ ///
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
///
bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
-
-private:
- virtual Inset * clone() const;
///
- void init();
+ Inset * clone() const { return new InsetERT(*this); }
///
void setButtonLabel();
///