}
-int InsetSpecialChar::latex(odocstream & os,
- OutputParams const & rp) const
+void InsetSpecialChar::latex(otexstream & os,
+ OutputParams const & rp) const
{
switch (kind_) {
case HYPHENATION:
os << "\\nobreakdash-";
break;
}
- return 0;
}
}
+void InsetSpecialChar::forToc(docstring & os, size_t) const
+{
+ odocstringstream ods;
+ plaintext(ods, OutputParams(0));
+ os += ods.str();
+}
+
+
void InsetSpecialChar::validate(LaTeXFeatures & features) const
{
if (kind_ == MENU_SEPARATOR)
bool InsetSpecialChar::isLetter() const
{
- return kind_ == HYPHENATION || kind_ == LIGATURE_BREAK;
+ return kind_ == HYPHENATION || kind_ == LIGATURE_BREAK
+ || kind_ == NOBREAKDASH;
}
// Paragraph::stripLeadingSpaces nukes the characters which
// have this property. I leave the code here, since it should
// eventually be made to work. (JMarc 20020327)
- return kind_ == HYPHENATION || kind_ == MENU_SEPARATOR;
+ return kind_ == HYPHENATION || kind_ == MENU_SEPARATOR
+ || kind_ == SLASH;
#else
return false;
#endif