]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.h
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insetspecialchar.h
index 1a35435a91dff0f8a321b0a1df588ea1eb1d9dd1..f8d5a20152e21b81e5020f8ea3e49be500417752 100644 (file)
@@ -1,15 +1,15 @@
 // -*- C++ -*-
 /* This file is part of*
- * ======================================================
+ * ====================================================== 
  *
  *           LyX, The Document Processor
  *      
- *         Copyright (C) 1997 Asger Alstrup
+ *         Copyright 1997 Asger Alstrup
  *
- *======================================================*/
+ * ====================================================== */
 
-#ifndef _INSET_SPECIALCHAR_H
-#define _INSET_SPECIALCHAR_H
+#ifndef INSET_SPECIALCHAR_H
+#define INSET_SPECIALCHAR_H
 
 #ifdef __GNUG__
 #pragma interface
@@ -21,7 +21,7 @@
 struct LaTeXFeatures;
 
 ///  Used to insert special chars
-class InsetSpecialChar: public Inset {
+class InsetSpecialChar : public Inset {
 public:
 
        /// The different kinds of special chars we support
@@ -33,41 +33,42 @@ public:
                /// End of sentence punctuation (\@)
                END_OF_SENTENCE,
                /// Menu separator
-               MENU_SEPARATOR
+               MENU_SEPARATOR,
+               /// Protected Separator
+               PROTECTED_SEPARATOR
        };
 
        ///
-       InsetSpecialChar();
+       InsetSpecialChar() {}
        ///
+       explicit
        InsetSpecialChar(Kind k);
        ///
-       ~InsetSpecialChar();
+       int ascent(Painter &, LyXFont const &) const;
        ///
-       int Ascent(LyXFont const &font) const;
+       int descent(Painter &, LyXFont const &) const;
        ///
-       int Descent(LyXFont const &font) const;
+       int width(Painter &, LyXFont const &) const;
        ///
-       int Width(LyXFont const &font) const;
+       void draw(Painter &, LyXFont const &, int baseline, float & x) const;
        ///
-       void Draw(LyXFont, LyXScreen &scr, int baseline, float &x);
-       ///
-       void Write(FILE *file);
+       void Write(std::ostream &) const;
        /// Will not be used when lyxf3
-       void Read(LyXLex &lex);
+       void Read(LyXLex & lex);
        /// 
-       int Latex(FILE *file, signed char fragile);
+       int Latex(std::ostream &, bool fragile, bool free_spc) const;
        ///
-       int Latex(LString &file, signed char fragile);
+       int Ascii(std::ostream &) const;
        ///
-       int Linuxdoc(LString &file);
+       int Linuxdoc(std::ostream &) const;
        ///
-       int DocBook(LString &file);
+       int DocBook(std::ostream &) const;
        ///
-       Inset* Clone();
+       Inset * Clone() const;
        ///  
        Inset::Code LyxCode() const
        {
-               return Inset::NO_CODE;
+               return Inset::SPECIALCHAR_CODE;
        }
        /// We don't need \begin_inset and \end_inset
        bool DirectWrite() const