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
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
49 InsetSpecialChar(Kind k);
51 int ascent(Painter &, LyXFont const &) const;
53 int descent(Painter &, LyXFont const &) const;
55 int width(Painter &, LyXFont const &) const;
57 void draw(Painter &, LyXFont const &, int baseline, float & x) const;
59 void Write(std::ostream &) const;
60 /// Will not be used when lyxf3
61 void Read(LyXLex & lex);
63 int Latex(std::ostream &, signed char fragile, bool free_spc) const;
65 int Linuxdoc(std::ostream &) const;
67 int DocBook(std::ostream &) const;
69 Inset * Clone() const;
71 Inset::Code LyxCode() const
73 return Inset::SPECIALCHAR_CODE;
75 /// We don't need \begin_inset and \end_inset
76 bool DirectWrite() const
81 void Validate(LaTeXFeatures &) const;
83 /// And which kind is this?