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
25 Used for the various quotes. German, English, French, all either
27 class InsetQuotes : public Inset {
59 /** The constructor works like this:
61 \item fls <- french single quote left
62 \item grd <- german double quote right
67 InsetQuotes(string const & str = "eld");
68 /// Create the right quote inset after character c
69 InsetQuotes(char c, BufferParams const & params);
71 Inset * clone(Buffer const &, bool same_id = false) const;
74 void dimension(BufferView *, LyXFont const &, Dimension &) const;
76 void draw(BufferView *, LyXFont const &, int, float &) const;
79 LyXFont const convertFont(LyXFont const & font) const;
82 void write(Buffer const *, std::ostream &) const;
84 void read(Buffer const *, LyXLex & lex);
86 int latex(Buffer const *, std::ostream &,
87 bool fragile, bool free_spc) const;
89 int ascii(Buffer const *, std::ostream &, int linelen) const;
91 int linuxdoc(Buffer const *, std::ostream &) const;
93 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
95 void validate(LaTeXFeatures &) const;
97 Inset::Code lyxCode() const;
98 // should this inset be handled like a normal charater
99 bool isChar() const { return true; }
103 quote_language language_;
109 /** The parameters of the constructor are the language, the
110 side and the multiplicity of the quote.
112 InsetQuotes(quote_language l, quote_side s, quote_times t);
114 void parseString(string const &);
116 string const dispString(Language const *) const;