#include "support/std_ostream.h"
-using lyx::docstring;
+
+namespace lyx {
using std::string;
using std::ostream;
}
-int InsetIndex::docbook(Buffer const &, ostream & os,
+int InsetIndex::docbook(Buffer const &, odocstream & os,
OutputParams const &) const
{
- os << "<indexterm><primary>" << sgml::escapeString(getContents())
+ os << "<indexterm><primary>"
+ << sgml::escapeString(getParam("name"))
<< "</primary></indexterm>";
return 0;
}
{
return InsetBase::INDEX_PRINT_CODE;
}
+
+
+} // namespace lyx