]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpecialChar.cpp
Remove all BufferParam arguments in InsetXXX methods (since insets know about their...
[lyx.git] / src / insets / InsetSpecialChar.cpp
index 85db15d45273aaf9868c1996e16f23c9434835f1..205e1f9f1dd5b93884d880f807bf14ea7628cadc 100644 (file)
@@ -5,7 +5,7 @@
  *
  * \author Asger Alstrup Nielsen
  * \author Jean-Marc Lasgouttes
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -15,6 +15,7 @@
 #include "InsetSpecialChar.h"
 
 #include "Dimension.h"
+#include "Font.h"
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
@@ -220,7 +221,10 @@ int InsetSpecialChar::latex(odocstream & os,
                os << "\\ldots{}";
                break;
        case MENU_SEPARATOR:
-               os << "\\lyxarrow{}";
+               if (rp.local_font->isRightToLeft())
+                       os << "\\lyxarrow*{}";
+               else
+                       os << "\\lyxarrow{}";
                break;
        case SLASH:
                os << "\\slash{}";
@@ -287,6 +291,32 @@ int InsetSpecialChar::docbook(odocstream & os, OutputParams const &) const
 }
 
 
+docstring InsetSpecialChar::xhtml(odocstream & os, OutputParams const &) const
+{
+       switch (kind_) {
+       case HYPHENATION:
+       case LIGATURE_BREAK:
+               break;
+       case END_OF_SENTENCE:
+               os << '.';
+               break;
+       case LDOTS:
+               os << "&hellip;";
+               break;
+       case MENU_SEPARATOR:
+               os << "&rArr;";
+               break;
+       case SLASH:
+               os << "&frasl;";
+               break;
+       case NOBREAKDASH:
+               os << '-';
+               break;
+       }
+       return docstring();
+}
+
+
 void InsetSpecialChar::tocString(odocstream & os) const
 {
        plaintext(os, OutputParams(0));