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);
45 int ascent(Painter &, LyXFont const &) const;
47 int descent(Painter &, LyXFont const &) const;
49 int width(Painter &, LyXFont const &) const;
51 void draw(Painter &, LyXFont const &, int baseline, float & x) const;
54 int Ascent(LyXFont const & font) const;
56 int Descent(LyXFont const & font) const;
58 int Width(LyXFont const & font) const;
60 void Draw(LyXFont, LyXScreen & scr, int baseline, float & x);
63 void Write(ostream &);
64 /// Will not be used when lyxf3
65 void Read(LyXLex & lex);
67 int Latex(ostream &, signed char fragile);
69 int Latex(string & file, signed char fragile);
71 int Linuxdoc(string & file);
73 int DocBook(string & file);
75 Inset * Clone() const;
77 Inset::Code LyxCode() const
79 return Inset::NO_CODE;
81 /// We don't need \begin_inset and \end_inset
82 bool DirectWrite() const
87 void Validate(LaTeXFeatures &) const;
89 /// And which kind is this?