2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-1999 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
69 InsetQuotes(string const & str = "eld");
70 /// Create the right quote inset after character c
71 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;
84 int Ascent(LyXFont const & font) const;
86 int Descent(LyXFont const & font) const;
88 int Width(LyXFont const & font) const;
90 void Draw(LyXFont font, LyXScreen & scr, int baseline, float & x);
93 LyXFont ConvertFont(LyXFont font);
95 void Write(ostream &);
97 void Read(LyXLex & lex);
99 int Latex(ostream &, signed char fragile);
101 int Latex(string & file, signed char fragile);
103 int Linuxdoc(string & file);
105 int DocBook(string & file);
107 void Validate(LaTeXFeatures &) const;
109 Inset * Clone() const;
111 Inset::Code LyxCode() const;
114 quote_language language;
120 /** The parameters of the constructor are the language, the
121 side and the multiplicity of the quote.
123 InsetQuotes(quote_language l, quote_side s, quote_times t);
125 void ParseString(string const &);
127 string DispString() const;