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 colapsable text inset
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 write(Buffer const * buf, std::ostream & os) const;
37 string const editMessage() const;
39 bool insertInset(BufferView *, Inset *);
41 bool insetAllowed(Inset::Code) const { return false; }
43 void setFont(BufferView *, LyXFont const &,
44 bool toggleall = false, bool selectall = false);
46 void edit(BufferView *, int, int, unsigned int);
48 void edit(BufferView * bv, bool front = true);
50 int latex(Buffer const *, std::ostream &, bool fragile,
53 int ascii(Buffer const *,
54 std::ostream &, int linelen = 0) const;
56 int linuxdoc(Buffer const *, std::ostream &) const;
58 int docBook(Buffer const *, std::ostream &) const;
60 UpdatableInset::RESULT localDispatch(BufferView *, kb_action,