2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998 The LyX Team.
9 *======================================================
11 // The pristine updatable inset: Text
21 #include "insetcollapsable.h"
23 /** A collapsable text inset for LaTeX insertions.
25 To write full ert (including styles and other insets) in a given
28 class InsetERT : public InsetCollapsable {
33 InsetERT(string const & contents, bool collapsed);
35 void read(Buffer const * buf, LyXLex & lex);
37 void write(Buffer const * buf, std::ostream & os) const;
39 string const editMessage() const;
41 bool insertInset(BufferView *, Inset *);
43 bool insetAllowed(Inset::Code) const { return false; }
45 void setFont(BufferView *, LyXFont const &,
46 bool toggleall = false, bool selectall = false);
48 void edit(BufferView *, int, int, unsigned int);
50 void edit(BufferView * bv, bool front = true);
52 void insetButtonRelease(BufferView * bv, int x, int y, int button);
54 int latex(Buffer const *, std::ostream &, bool fragile,
57 int ascii(Buffer const *,
58 std::ostream &, int linelen = 0) const;
60 int linuxdoc(Buffer const *, std::ostream &) const;
62 int docBook(Buffer const *, std::ostream &) const;
64 UpdatableInset::RESULT localDispatch(BufferView *, kb_action,
70 string const get_new_label() const;
72 void setButtonLabel();