2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 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
70 InsetQuotes(string const & str = "eld");
71 /// Create the right quote inset after character c
72 InsetQuotes(char c, BufferParams const & params);
75 int ascent(Painter &, LyXFont const &) const;
77 int descent(Painter &, LyXFont const &) const;
79 int width(Painter &, LyXFont const &) const;
81 void draw(BufferView *, LyXFont const &, int baseline, float & x) const;
83 LyXFont ConvertFont(LyXFont font);
85 void Write(Buffer const *, std::ostream &) const;
87 void Read(Buffer const *, LyXLex & lex);
89 int Latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const;
91 int Ascii(Buffer const *, std::ostream &) const;
93 int Linuxdoc(Buffer const *, std::ostream &) const;
95 int DocBook(Buffer const *, std::ostream &) const;
97 void Validate(LaTeXFeatures &) const;
99 Inset * Clone() const;
101 Inset::Code LyxCode() const;
104 quote_language language;
110 /** The parameters of the constructor are the language, the
111 side and the multiplicity of the quote.
113 InsetQuotes(quote_language l, quote_side s, quote_times t);
115 void ParseString(string const &);
117 string DispString() const;