]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetspecialchar.h
index d8ec503700e640e19cbb4a2dfad97d7d790151a7..4c97fd779c95c31a8df5452532a3c7e5f6f13a6c 100644 (file)
@@ -21,7 +21,7 @@
 struct LaTeXFeatures;
 
 ///  Used to insert special chars
-class InsetSpecialChar : public Inset {
+class InsetSpecialChar : public InsetOld {
 public:
 
        /// The different kinds of special chars we support
@@ -46,9 +46,9 @@ public:
        ///
        Kind kind() const;
        ///
-       void dimension(BufferView *, LyXFont const &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
-       void draw(BufferView *, LyXFont const &, int, float &) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
        void write(Buffer const *, std::ostream &) const;
        /// Will not be used when lyxf3
@@ -63,9 +63,9 @@ public:
        ///
        int docbook(Buffer const *, std::ostream &, bool mixcont) const;
        ///
-       virtual Inset * clone(Buffer const &, bool same_id = false) const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       Inset::Code lyxCode() const { return Inset::SPECIALCHAR_CODE; }
+       InsetOld::Code lyxCode() const { return InsetOld::SPECIALCHAR_CODE; }
        /// We don't need \begin_inset and \end_inset
        bool directWrite() const { return true; }
        ///