- return result;
-}
-
-
-void InsetERT::Write(ostream & os) const
-{
- os << "ERT\n";
- WriteParagraphData(os);
-}
-
-
-int InsetERT::ascent_closed(Painter & pain, LyXFont const & f) const
-{
- int width, ascent, descent;
- LyXFont font(LyXFont::ALL_SANE);
- font.setSize(f.size());
- font.decSize();
- font.decSize();
- pain.buttonText(0, 0, _("ERT"), font, false, width, ascent, descent);
- return ascent;
-}
-
-
-int InsetERT::descent_closed(Painter & pain, LyXFont const & f) const
-{
- int width, ascent, descent;
- LyXFont font(LyXFont::ALL_SANE);
- font.setSize(f.size());
- font.decSize();
- font.decSize();
- pain.buttonText(0, 0, _("ERT"), font, false, width, ascent, descent);
- return descent;
-}
-
-
-int InsetERT::width_closed(Painter & pain, LyXFont const & f) const
-{
- int width, ascent, descent;
- LyXFont font(LyXFont::ALL_SANE);
- font.setSize(f.size());
- font.decSize();
- font.decSize();
- pain.buttonText(TEXT_TO_INSET_OFFSET, 0, _("ERT"), font, false,
- width, ascent, descent);
- return width + (2*TEXT_TO_INSET_OFFSET);
-}
-
-
-int InsetERT::ascent(Painter & pain, LyXFont const & font) const
-{
- if (closed)
- return ascent_closed(pain, font);
- else
- return InsetText::ascent(pain, font);
-}
-
-
-int InsetERT::descent(Painter & pain, LyXFont const & font) const
-{