]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspecialchar.C
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insetspecialchar.C
index fa28dcc865c7fbfb9d8a67b82a468f70025d2fac..8caa469bfebcb8ef3c215c006d2fd9843b1d9c83 100644 (file)
@@ -177,7 +177,7 @@ void InsetSpecialChar::Read(LyXLex & lex)
 }
 
 
-int InsetSpecialChar::Latex(ostream & os, signed char /*fragile*/,
+int InsetSpecialChar::Latex(ostream & os, bool /*fragile*/,
                            bool free_space) const
 {
        switch (kind) {
@@ -190,12 +190,11 @@ int InsetSpecialChar::Latex(ostream & os, signed char /*fragile*/,
        return 0;
 }
 
-
-int InsetSpecialChar::Linuxdoc(ostream & os) const
+int InsetSpecialChar::Ascii(ostream & os) const
 {
        switch (kind) {
-       case HYPHENATION:         os << "";     break;
-       case END_OF_SENTENCE:     os << "";     break;
+       case HYPHENATION:                       break;
+       case END_OF_SENTENCE:     os << ".";    break;
        case LDOTS:               os << "...";  break;
        case MENU_SEPARATOR:      os << "->";   break;
        case PROTECTED_SEPARATOR: os << " ";   break;
@@ -204,16 +203,15 @@ int InsetSpecialChar::Linuxdoc(ostream & os) const
 }
 
 
+int InsetSpecialChar::Linuxdoc(ostream & os) const
+{
+       return Ascii(os);
+}
+
+
 int InsetSpecialChar::DocBook(ostream & os) const
 {
-       switch (kind) {
-       case HYPHENATION:         os << "";     break;
-       case END_OF_SENTENCE:     os << "";     break;
-       case LDOTS:               os << "...";  break;
-       case MENU_SEPARATOR:      os << "->";   break;
-       case PROTECTED_SEPARATOR: os << " ";   break;
-       }
-       return 0;
+       return Ascii(os);
 }