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 (\@)
41 /// Protected Separator
48 InsetSpecialChar(Kind k);
50 int ascent(Painter &, LyXFont const &) const;
52 int descent(Painter &, LyXFont const &) const;
54 int width(Painter &, LyXFont const &) const;
56 void draw(Painter &, LyXFont const &, int baseline, float & x) const;
58 void Write(ostream &) const;
59 /// Will not be used when lyxf3
60 void Read(LyXLex & lex);
62 int Latex(ostream &, signed char fragile) const;
64 int Latex(string & file, signed char fragile) const;
66 int Linuxdoc(string & file) const;
68 int DocBook(string & file) 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?