4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jean-Marc Lasgouttes
9 * Full author contact details are available in file CREDITS
12 #ifndef INSET_QUOTES_H
13 #define INSET_QUOTES_H
26 Used for the various quotes. German, English, French, all either
28 class InsetQuotes : public Inset {
60 /** The constructor works like this:
62 \item fls <- french single quote left
63 \item grd <- german double quote right
68 InsetQuotes(string const & str = "eld");
69 /// Create the right quote inset after character c
70 InsetQuotes(char c, BufferParams const & params);
73 int ascent(BufferView *, LyXFont const &) const;
75 int descent(BufferView *, LyXFont const &) const;
77 int width(BufferView *, LyXFont const &) const;
79 void draw(BufferView *, LyXFont const &, int, float &, bool) const;
82 LyXFont const convertFont(LyXFont const & font) const;
85 void write(Buffer const *, std::ostream &) const;
87 void read(Buffer const *, LyXLex & lex);
89 int latex(Buffer const *, std::ostream &,
90 bool fragile, bool free_spc) const;
92 int ascii(Buffer const *, std::ostream &, int linelen) const;
94 int linuxdoc(Buffer const *, std::ostream &) const;
96 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
98 void validate(LaTeXFeatures &) const;
100 virtual Inset * clone(Buffer const &, bool same_id = false) const;
102 Inset::Code lyxCode() const;
103 // should this inset be handled like a normal charater
104 bool isChar() const { return true; }
108 quote_language language_;
114 /** The parameters of the constructor are the language, the
115 side and the multiplicity of the quote.
117 InsetQuotes(quote_language l, quote_side s, quote_times t);
119 void parseString(string const &);
121 string const dispString(Language const *) const;