2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1998 The LyX Team.
9 *======================================================
11 // The pristine updatable inset: Text
21 #include "insettext.h"
25 /** A colapsable text inset
27 To write full ert (including styles and other insets) in a given
30 class InsetERT : public InsetText {
35 // InsetERT(InsetERT const &, Buffer *);
39 InsetERT * Clone() const;
41 // void Read(LyXLex &);
43 void Write(ostream &) const;
45 int ascent(Painter &, LyXFont const &) const;
47 int descent(Painter &, LyXFont const &) const;
49 int width(Painter &, LyXFont const & f) const;
51 void draw(Painter & pain, const LyXFont &, int , float &) const;
53 //LString EditMessage() const;
55 void InsetButtonRelease(BufferView *, int, int, int);
57 void InsetButtonPress(BufferView *, int, int, int);
59 void InsetMotionNotify(BufferView *, int, int, int);
61 void Edit(BufferView *, int, int, unsigned int);
63 void InsetUnlock(BufferView *);
65 bool InsertInset(Inset *);
67 void SetFont(LyXFont const &, bool toggleall);
71 int ascent_closed(Painter &, LyXFont const &) const;
73 int descent_closed(Painter &, LyXFont const &) const;
75 int width_closed(Painter &, LyXFont const & f) const;
77 void draw_closed(Painter & pain, const LyXFont &, int , float &) const;