1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1998 The LyX Team.
8 *======================================================*/
13 #pragma implementation
21 //#include "lyx_gui_misc.h"
24 InsetERT::InsetERT(Buffer * bf)
25 : InsetCollapsable(bf)
28 LyXFont font(LyXFont::ALL_SANE);
29 font.setLatex (LyXFont::ON);
30 real_current_font = current_font = font;
31 LyXFont labelfont(LyXFont::ALL_SANE);
34 labelfont.setColor(LColor::ert);
35 setLabelFont(labelfont);
36 setAutoCollapse(false);
40 Inset * InsetERT::Clone() const
42 InsetERT * result = new InsetERT(buffer);
47 void InsetERT::Write(ostream & os) const
50 WriteParagraphData(os);
53 bool InsetERT::InsertInset(BufferView *, Inset *)
59 void InsetERT::SetFont(BufferView *, LyXFont const &, bool)
61 WriteAlert(_("Impossible Operation!"),
62 _("Not permitted to change font-types inside ERT-insets!"),