2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team
10 * ====================================================== */
12 #ifndef INSET_QUOTES_H
13 #define INSET_QUOTES_H
29 Used for the various quotes. German, English, French, all either
31 class InsetQuotes : public Inset {
63 /** The constructor works like this:
65 \item fls <- french single quote left
66 \item grd <- german double quote right
71 InsetQuotes(string const & str = "eld");
72 /// Create the right quote inset after character c
73 InsetQuotes(char c, BufferParams const & params);
76 int ascent(BufferView *, LyXFont const &) const;
78 int descent(BufferView *, LyXFont const &) const;
80 int width(BufferView *, LyXFont const &) const;
82 void draw(BufferView *, LyXFont const &, int, float &, bool) const;
85 LyXFont const convertFont(LyXFont const & font) const;
88 void write(Buffer const *, std::ostream &) const;
90 void read(Buffer const *, LyXLex & lex);
92 int latex(Buffer const *, std::ostream &,
93 bool fragile, bool free_spc) const;
95 int ascii(Buffer const *, std::ostream &, int linelen) const;
97 int linuxdoc(Buffer const *, std::ostream &) const;
99 int docBook(Buffer const *, std::ostream &) const;
101 void validate(LaTeXFeatures &) const;
103 virtual Inset * clone(Buffer const &, bool same_id = false) const;
105 Inset::Code lyxCode() const;
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;