2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1995 Matthias Ettrich
9 * ====================================================== */
21 /** Latex. Used to insert non-deletable LaTeX-Code automatically
23 Behaves as LaTeXDels, but cannot be deleted with the normal
24 delete/backspace operations. This is used when you insert a LaTeX
25 figure (done as "\input "), but you still have to type the filename
26 yourself after the inset. */
27 class InsetLatex : public Inset {
33 InsetLatex(string const & string);
37 int Ascent(LyXFont const & font) const;
39 int Descent(LyXFont const & font) const;
41 int Width(LyXFont const & font) const;
43 void Draw(LyXFont font, LyXScreen & scr, int baseline, float & x);
45 void Write(FILE * file);
47 void Read(LyXLex & lex);
49 int Latex(FILE * file, signed char fragile, bool free_spc);
51 int Latex(string & file, signed char fragile, bool free_spc);
53 int Linuxdoc(string & file);
55 int DocBook(string & file);
57 bool Deletable() const;
59 Inset * Clone() const;
61 Inset::Code LyxCode() const;