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(Painter &, LyXFont const &) const;
46 int descent(Painter &, LyXFont const &) const;
48 int width(Painter &, LyXFont const &) const;
50 void draw(Painter &, LyXFont const &, int baseline, float & x) const;
52 void Write(ostream &) const;
53 /// Will not be used when lyxf3
54 void Read(LyXLex & lex);
56 int Latex(ostream &, signed char fragile) const;
58 int Latex(string & file, signed char fragile) const;
60 int Linuxdoc(string & file) const;
62 int DocBook(string & file) const;
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?