#define INSETERT_H
#include "InsetCollapsable.h"
-#include "MailInset.h"
namespace lyx {
InsetERT(Buffer const &, CollapseStatus status = Open);
///
~InsetERT();
+ ///
+ static void string2params(std::string const &, CollapseStatus &);
+ ///
+ static std::string params2string(CollapseStatus);
private:
///
InsetCode lyxCode() const { return ERT_CODE; }
///
bool showInsetDialog(BufferView *) const;
///
- bool forceEmptyLayout() const { return true; }
+ virtual bool forceEmptyLayout(idx_type = 0) const { return true; }
///
- bool allowParagraphCustomization(idx_type) const { return false; }
+ virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
/// should paragraph indendation be omitted in any case?
bool neverIndent() const { return true; }
///
};
-class InsetERTMailer : public MailInset {
-public:
- ///
- InsetERTMailer(InsetERT & inset);
- ///
- virtual Inset & inset() const { return inset_; }
- ///
- virtual std::string const & name() const { return name_; }
- ///
- virtual std::string const inset2string(Buffer const &) const;
- ///
- static void string2params(std::string const &,
- InsetCollapsable::CollapseStatus &);
- ///
- static std::string const params2string(InsetCollapsable::CollapseStatus);
-private:
- ///
- static std::string const name_;
- ///
- InsetERT & inset_;
-};
-
-
} // namespace lyx
#endif