]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetindex.C
index 7190d23b76ee01135b91576c987d3c7080a8721e..c175cf1ffd14cb5e05d7aafff22049ef7542ac57 100644 (file)
@@ -20,8 +20,8 @@
 
 #include "support/std_ostream.h"
 
-using lyx::docstring;
-using lyx::odocstream;
+
+namespace lyx {
 
 using std::string;
 using std::ostream;
@@ -46,9 +46,8 @@ docstring const InsetIndex::getScreenLabel(Buffer const &) const
 int InsetIndex::docbook(Buffer const &, odocstream & os,
                        OutputParams const &) const
 {
-        // FIXME UNICODE
        os << "<indexterm><primary>"
-           << lyx::from_ascii(sgml::escapeString(getContents()))
+           << sgml::escapeString(getParam("name"))
           << "</primary></indexterm>";
        return 0;
 }
@@ -87,3 +86,6 @@ InsetBase::Code InsetPrintIndex::lyxCode() const
 {
        return InsetBase::INDEX_PRINT_CODE;
 }
+
+
+} // namespace lyx