]> git.lyx.org Git - lyx.git/blob - src/insets/insetert.h
Added copy constructor to inset.h and used it in most insets which permit
[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 /** A colapsable text inset
24   
25   To write full ert (including styles and other insets) in a given
26   space. 
27 */
28 class InsetERT : public InsetCollapsable {
29 public:
30         ///
31         InsetERT();
32         ///
33         InsetERT(string const & contents, bool collapsed);
34         ///
35         void write(Buffer const * buf, std::ostream & os) const;
36         ///
37         string const editMessage() const;
38         ///
39         bool insertInset(BufferView *, Inset *);
40         ///
41         bool insetAllowed(Inset::Code) const { return false; }
42         ///
43         void setFont(BufferView *, LyXFont const &,
44                              bool toggleall = false, bool selectall = false);
45         ///
46         void edit(BufferView *, int, int, unsigned int);
47         ///
48         void edit(BufferView * bv, bool front = true);
49         ///
50         int latex(Buffer const *, std::ostream &, bool fragile,
51                           bool free_spc) const;
52         ///
53         int ascii(Buffer const *,
54                           std::ostream &, int linelen = 0) const;
55         ///
56         int linuxdoc(Buffer const *, std::ostream &) const;
57         ///
58         int docBook(Buffer const *, std::ostream &) const;
59         ///
60         UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
61                                              string const &);
62 private:
63         ///
64         void init();
65 };
66
67 #endif