2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1997 Asger Alstrup
9 * ====================================================== */
11 #ifndef INSET_SPECIALCHAR_H
12 #define INSET_SPECIALCHAR_H
25 /// Used to insert special chars
26 class InsetSpecialChar : public Inset {
29 /// The different kinds of special chars we support
31 /// Optional hyphenation point (\-)
35 /// End of sentence punctuation (\@)
43 /// Protected Separator
50 InsetSpecialChar(Kind k);
52 int ascent(Painter &, LyXFont const &) const;
54 int descent(Painter &, LyXFont const &) const;
56 int width(Painter &, LyXFont const &) const;
58 void draw(Painter &, LyXFont const &, int baseline, float & x) const;
60 void Write(ostream &) const;
61 /// Will not be used when lyxf3
62 void Read(LyXLex & lex);
64 int Latex(ostream &, signed char fragile, bool free_spc) const;
66 int Linuxdoc(ostream &) const;
68 int DocBook(ostream &) const;
70 Inset * Clone() const;
72 Inset::Code LyxCode() const
74 return Inset::SPECIALCHAR_CODE;
76 /// We don't need \begin_inset and \end_inset
77 bool DirectWrite() const
82 void Validate(LaTeXFeatures &) const;
84 /// And which kind is this?