]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.h
reformatting and remove using delc
[lyx.git] / src / insets / insetspecialchar.h
index e75fcd71071bf1d97f6a0b5abad142bd9d23b03d..33315256d9f88ef0933bf2047bce042a7e753a4f 100644 (file)
@@ -34,10 +34,6 @@ public:
                END_OF_SENTENCE,
                /// Menu separator
                MENU_SEPARATOR,
-#if 0
-               /// Newline
-               NEWLINE,
-#endif
                /// Protected Separator
                PROTECTED_SEPARATOR
        };
@@ -45,27 +41,31 @@ public:
        ///
        InsetSpecialChar() {}
        ///
+       explicit
        InsetSpecialChar(Kind k);
        ///
-       int ascent(Painter &, LyXFont const &) const;
+       int ascent(BufferView *, LyXFont const &) const;
        ///
-       int descent(Painter &, LyXFont const &) const;
+       int descent(BufferView *, LyXFont const &) const;
        ///
-       int width(Painter &, LyXFont const &) const;
+       int width(BufferView *, LyXFont const &) const;
        ///
-       void draw(Painter &, LyXFont const &, int baseline, float & x) const;
+       void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(std::ostream &) const;
+       void Write(Buffer const *, std::ostream &) const;
        /// Will not be used when lyxf3
-       void Read(LyXLex & lex);
+       void Read(Buffer const *, LyXLex & lex);
        /// 
-       int Latex(std::ostream &, signed char fragile, bool free_spc) const;
+       int Latex(Buffer const *, std::ostream &,
+                 bool fragile, bool free_spc) const;
+       ///
+       int Ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(std::ostream &) const;
+       int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(std::ostream &) const;
+       int DocBook(Buffer const *, std::ostream &) const;
        ///
-       Inset * Clone() const;
+       Inset * Clone(Buffer const &) const;
        ///  
        Inset::Code LyxCode() const
        {