2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1995 Matthias Ettrich
9 *======================================================*/
11 #ifndef _INSET_LATEX_H
12 #define _INSET_LATEX_H
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 {
32 InsetLatex(string const & string);
36 int Ascent(LyXFont const &font) const;
38 int Descent(LyXFont const &font) const;
40 int Width(LyXFont const &font) const;
42 void Draw(LyXFont font, LyXScreen &scr, int baseline, float &x);
44 void Write(FILE *file);
46 void Read(LyXLex &lex);
48 int Latex(FILE *file, signed char fragile);
50 int Latex(string &file, signed char fragile);
52 int Linuxdoc(string &file);
54 int DocBook(string &file);
56 bool Deletable() const;
60 Inset::Code LyxCode() const;