-void InsetERT::write(Buffer const & buf, ostream & os) const
-{
- os << "ERT" << "\n";
- InsetCollapsable::write(buf, os);
-}
-
-
-void InsetERT::read(Buffer const & buf, Lexer & lex)
-{
- InsetCollapsable::read(buf, lex);
-
- // Force default font
- // This avoids paragraphs in buffer language that would have a
- // foreign language after a document langauge change, and it ensures
- // that all new text in ERT gets the "latex" language, since new text
- // inherits the language from the last position of the existing text.
- // As a side effect this makes us also robust against bugs in LyX
- // that might lead to font changes in ERT in .lyx files.
- resetParagraphsFont();
-}
-
-
-docstring const InsetERT::editMessage() const
-{
- return _("Opened ERT Inset");
-}
-
-
-int InsetERT::latex(Buffer const & buf, odocstream & os,
- OutputParams const & op) const
-{
- return InsetCollapsable::latex(buf, os, op);
-}
-
-
-int InsetERT::plaintext(Buffer const &, odocstream &,
- OutputParams const &) const
-{
- return 0; // do not output TeX code
-}
-
-
-int InsetERT::docbook(Buffer const &, odocstream & os,
- OutputParams const &) const