2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1997 Asger Alstrup
9 * ======================================================*/
11 #ifndef INSET_SPECIALCHAR_H
12 #define INSET_SPECIALCHAR_H
23 /// Used to insert special chars
24 class InsetSpecialChar: public Inset {
27 /// The different kinds of special chars we support
29 /// Optional hyphenation point (\-)
33 /// End of sentence punctuation (\@)
42 InsetSpecialChar(Kind k);
46 int Ascent(LyXFont const & font) const;
48 int Descent(LyXFont const & font) const;
50 int Width(LyXFont const & font) const;
52 void Draw(LyXFont, LyXScreen & scr, int baseline, float & x);
54 void Write(FILE * file);
55 /// Will not be used when lyxf3
56 void Read(LyXLex & lex);
58 int Latex(FILE * file, signed char fragile);
60 int Latex(string & file, signed char fragile);
62 int Linuxdoc(string & file);
64 int DocBook(string & file);
68 Inset::Code LyxCode() const
70 return Inset::NO_CODE;
72 /// We don't need \begin_inset and \end_inset
73 bool DirectWrite() const
78 void Validate(LaTeXFeatures &) const;
80 /// And which kind is this?