X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetQuotes.h;h=118768bdcd35b21fa7567ae92fc675843b251bed;hb=0362c6aae73c293d1c20277c12d362acfe0b2ef6;hp=9d52b0b945da41f6658a84fd921d83fcb5c8baa4;hpb=c8d00ed1272cd489041bed2115081008b6a26489;p=lyx.git diff --git a/src/insets/InsetQuotes.h b/src/insets/InsetQuotes.h index 9d52b0b945..118768bdcd 100644 --- a/src/insets/InsetQuotes.h +++ b/src/insets/InsetQuotes.h @@ -28,7 +28,7 @@ class LaTeXFeatures; /** 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 { @@ -67,24 +67,21 @@ public: \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 read(Buffer const &, LyXLex & lex); + void read(Buffer const &, Lexer & lex); /// int latex(Buffer const &, odocstream &, OutputParams const &) const; /// @@ -98,12 +95,12 @@ public: /// 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 doClone() const; + virtual Inset * clone() const; /// quote_language language_;