]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.h
Enable the external inset to handle unknown templates gracefully.
[lyx.git] / src / insets / insetspecialchar.h
index 09bc4d7d02c613a9056d99e58111e5d08670e7b4..6fe2ecc4ecaeadc6b8e77012fa76888ca77db427 100644 (file)
@@ -36,8 +36,6 @@ public:
                END_OF_SENTENCE,
                /// Menu separator
                MENU_SEPARATOR,
-               /// Protected Separator
-               PROTECTED_SEPARATOR
        };
 
        ///
@@ -48,20 +46,16 @@ public:
        ///
        Kind kind() const;
        ///
-       int ascent(BufferView *, LyXFont const &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
-       int descent(BufferView *, LyXFont const &) const;
-       ///
-       int width(BufferView *, LyXFont const &) 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
        void read(Buffer const *, LyXLex & lex);
        ///
        int latex(Buffer const *, std::ostream &,
-                 bool fragile, bool free_spc) const;
+                 LatexRunParams const &) const;
        ///
        int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
@@ -69,7 +63,7 @@ public:
        ///
        int docbook(Buffer const *, std::ostream &, bool mixcont) const;
        ///
-       virtual Inset * clone(Buffer const &, bool same_id = false) const;
+       virtual Inset * clone() const;
        ///
        Inset::Code lyxCode() const { return Inset::SPECIALCHAR_CODE; }
        /// We don't need \begin_inset and \end_inset