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(Painter &, LyXFont const &, int baseline, float & x) const;
83 LyXFont ConvertFont(LyXFont font);
85 void Write(std::ostream &) const;
87 void Read(LyXLex & lex);
89 int Latex(std::ostream &, bool fragile, bool free_spc) const;
91 int Linuxdoc(std::ostream &) const;
93 int DocBook(std::ostream &) const;
95 void Validate(LaTeXFeatures &) const;
97 Inset * Clone() const;
99 Inset::Code LyxCode() const;
102 quote_language language;
108 /** The parameters of the constructor are the language, the
109 side and the multiplicity of the quote.
111 InsetQuotes(quote_language l, quote_side s, quote_times t);
113 void ParseString(string const &);
115 string DispString() const;