]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.h
Some more changes for updating text-insets.
[lyx.git] / src / insets / insetspecialchar.h
index 327dc9efbee8af9e56ba025d7d13628b3baae0c0..cb696cd97e280ff18b4cdd4db15dd9a44b442894 100644 (file)
@@ -34,10 +34,6 @@ public:
                END_OF_SENTENCE,
                /// Menu separator
                MENU_SEPARATOR,
-#if 0
-               /// Newline
-               NEWLINE,
-#endif
                /// Protected Separator
                PROTECTED_SEPARATOR
        };
@@ -45,6 +41,7 @@ public:
        ///
        InsetSpecialChar() {}
        ///
+       explicit
        InsetSpecialChar(Kind k);
        ///
        int ascent(Painter &, LyXFont const &) const;
@@ -53,26 +50,19 @@ public:
        ///
        int width(Painter &, LyXFont const &) const;
        ///
-       void draw(Painter &, LyXFont const &, int baseline, float & x) const;
+       void draw(BufferView *, LyXFont const &, int, float &, bool) const;
        ///
-       void Write(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(ostream &, signed char fragile, bool free_spc) const;
-#ifndef USE_OSTREAM_ONLY
-       ///
-       int Latex(string & file, signed char fragile, bool free_spc) const;
+       int Latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const;
        ///
-       int Linuxdoc(string & file) const;
+       int Ascii(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(string & file) const;
-#else
+       int Linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int Linuxdoc(ostream &) const;
-       ///
-       int DocBook(ostream &) const;
-#endif
+       int DocBook(Buffer const *, std::ostream &) const;
        ///
        Inset * Clone() const;
        ///