2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-1999 The LyX Team
10 * ====================================================== */
12 #ifndef INSET_QUOTES_H
13 #define INSET_QUOTES_H
28 Used for the various quotes. German, English, French, all either
30 class InsetQuotes: public Inset {
62 /** The constructor works like this:
64 \item fls <- french single quote left
65 \item grd <- german double quote right
69 InsetQuotes(string const & str = "eld");
70 /// Create the right quote inset after character c
71 InsetQuotes(char c, BufferParams const & params);
74 int ascent(Painter &, LyXFont const &) const;
76 int descent(Painter &, LyXFont const &) const;
78 int width(Painter &, LyXFont const &) const;
80 void draw(Painter &, LyXFont const &, int baseline, float & x) const;
82 LyXFont ConvertFont(LyXFont font);
84 void Write(ostream &) const;
86 void Read(LyXLex & lex);
88 int Latex(ostream &, signed char fragile) const;
89 #ifndef USE_OSTREAM_ONLY
91 int Latex(string & file, signed char fragile) const;
93 int Linuxdoc(string & file) const;
95 int DocBook(string & file) const;
98 int Linuxdoc(ostream &) const;
100 int DocBook(ostream &) const;
103 void Validate(LaTeXFeatures &) const;
105 Inset * Clone() const;
107 Inset::Code LyxCode() const;
110 quote_language language;
116 /** The parameters of the constructor are the language, the
117 side and the multiplicity of the quote.
119 InsetQuotes(quote_language l, quote_side s, quote_times t);
121 void ParseString(string const &);
123 string DispString() const;