/** Quotes.
Used for the various quotes. German, English, French, all either
double or single **/
-class InsetQuotes : public InsetOld {
+class InsetQuotes : public Inset {
public:
///
enum quote_language {
\item etc.
\end{itemize}
*/
- explicit
- InsetQuotes(std::string const & str = "eld");
+ explicit InsetQuotes(std::string const & str = "eld");
/// Create the right quote inset after character c
InsetQuotes(char_type c, BufferParams const & params);
/// Direct access to inner/outer quotation marks
InsetQuotes(char_type c, quote_language l, quote_times t);
///
- bool metrics(MetricsInfo &, Dimension &) const;
+ docstring name() const;
///
- void draw(PainterInfo & pi, int x, int y) const;
-#if 0
+ void metrics(MetricsInfo &, Dimension &) const;
///
- LyXFont const convertFont(LyXFont const & font) const;
-#endif
+ void draw(PainterInfo & pi, int x, int y) const;
///
void write(Buffer const &, std::ostream &) const;
///
///
void validate(LaTeXFeatures &) const;
///
- InsetBase::Code lyxCode() const;
- // should this inset be handled like a normal character
+ InsetCode lyxCode() const { return QUOTE_CODE; }
+ /// should this inset be handled like a normal character
bool isChar() const { return true; }
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual Inset * clone() const;
///
quote_language language_;