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);
44 int Ascent(LyXFont const & font) const;
46 int Descent(LyXFont const & font) const;
48 int Width(LyXFont const & font) const;
50 void Draw(LyXFont, LyXScreen & scr, int baseline, float & x);
52 void Write(ostream &);
53 /// Will not be used when lyxf3
54 void Read(LyXLex & lex);
56 int Latex(ostream &, signed char fragile);
58 int Latex(string & file, signed char fragile);
60 int Linuxdoc(string & file);
62 int DocBook(string & file);
64 Inset * Clone() const;
66 Inset::Code LyxCode() const
68 return Inset::NO_CODE;
70 /// We don't need \begin_inset and \end_inset
71 bool DirectWrite() const
76 void Validate(LaTeXFeatures &) const;
78 /// And which kind is this?