]> git.lyx.org Git - lyx.git/blob - src/insets/insetert.h
7da1ef6319c1648daff30ea1da693a2774f8a526
[lyx.git] / src / insets / insetert.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1998 The LyX Team.
8  *
9  *======================================================
10  */
11 // The pristine updatable inset: Text
12
13
14 #ifndef INSETERT_H
15 #define INSETERT_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "insetcollapsable.h"
22
23 using std::ostream;
24
25 class Painter;
26
27 /** A colapsable text inset
28   
29   To write full ert (including styles and other insets) in a given
30   space. 
31 */
32 class InsetERT : public InsetCollapsable {
33 public:
34     ///
35     InsetERT(Buffer *);
36     ///
37     ~InsetERT() {}
38     ///
39     Inset * Clone() const;
40     ///
41     void Write(ostream &) const;
42     ///
43     const char * EditMessage() const { return _("Opened ERT Inset");}
44     ///
45     bool InsertInset(BufferView *, Inset *);
46     ///
47     void SetFont(BufferView *, LyXFont const &, bool toggleall = false);
48     ///
49     void Edit(BufferView *, int, int, unsigned int);
50     ///
51 };
52
53 #endif